MLK-11204 ARM: imx: set int_mem_clk_lpm bit bit when entering wait mode on 6ul
authorBai Ping <b51503@freescale.com>
Tue, 30 Jun 2015 17:19:14 +0000 (01:19 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:27 +0000 (14:48 -0500)
This bit is used to keep the ARM Platform memory clocks enabled if
an interrupt is pending when entering low power mode. This bit should
always bet set when the CCM_CLPCR_LPM bits are set to 01(WAIT Mode) or
10 (STOP mode) without power gating.

Signed-off-by: Bai Ping <b51503@freescale.com>
(cherry picked from commit 0272868641041c5a9eb1b3476660711bb5cd69e4)

arch/arm/mach-imx/cpuidle-imx6ul.c

index c80e034..fc42b26 100644 (file)
@@ -178,5 +178,8 @@ int __init imx6ul_cpuidle_init(void)
        imx6ul_wfi_in_iram_fn = (void *)fncpy(wfi_iram_base + sizeof(*cpuidle_pm_info),
                &imx6ul_low_power_idle, wfi_code_size);
 #endif
+
+       imx6q_set_int_mem_clk_lpm(true);
+
        return cpuidle_register(&imx6ul_cpuidle_driver, NULL);
 }