diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2018-06-03 04:33:45 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2018-06-19 03:07:16 +0200 |
commit | e7fa1fb39b118cc8415a946fd2e6bc0f6b6c05c9 (patch) | |
tree | d2c6cc582ef8b49d5a809252aeb3c8bb76397e70 /arch/arm/mach-imx/cpuidle-imx6sx.c | |
parent | ARM: imx: add L2 page power control for GPC (diff) | |
download | linux-e7fa1fb39b118cc8415a946fd2e6bc0f6b6c05c9.tar.xz linux-e7fa1fb39b118cc8415a946fd2e6bc0f6b6c05c9.zip |
ARM: imx: add cpu idle support for i.MX6SLL
i.MX6SLL supports cpu idle with ARM power gated,
it can reuse i.MX6SX's cpu idle driver to support
below 3 states of cpu idle:
state0: WFI;
state1: WAIT mode with ARM power on;
state2: WAIT mode with ARM power off.
L2_PGE in GPC_CNTR needs to be cleared to support
state2 cpu idle.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/cpuidle-imx6sx.c')
-rw-r--r-- | arch/arm/mach-imx/cpuidle-imx6sx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/cpuidle-imx6sx.c b/arch/arm/mach-imx/cpuidle-imx6sx.c index d0f14b761ff7..243a108a940b 100644 --- a/arch/arm/mach-imx/cpuidle-imx6sx.c +++ b/arch/arm/mach-imx/cpuidle-imx6sx.c @@ -103,6 +103,7 @@ int __init imx6sx_cpuidle_init(void) { imx6_set_int_mem_clk_lpm(true); imx6_enable_rbc(false); + imx_gpc_set_l2_mem_power_in_lpm(false); /* * set ARM power up/down timing to the fastest, * sw2iso and sw can be set to one 32K cycle = 31us |