]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00278941-3: arm: imx: add necessary flow for standby mode
authorAnson Huang <b20788@freescale.com>
Wed, 11 Sep 2013 14:05:56 +0000 (10:05 -0400)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:43 +0000 (09:55 +0800)
Need to ensure that the ARM:IPG clock ratio is maintained at
12:5 when WFI is executed. This is the fix for the low power mode
issue on i.MX6SL.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-imx/pm-imx6.c

index 1efe20c5f27d1b9473b4ac9016690c1e18e78755..0b1e13e25f2e628d498e9b7d6079f45dcc5e2f28 100644 (file)
@@ -243,8 +243,12 @@ static int imx6_pm_enter(suspend_state_t state)
                imx6_set_lpm(STOP_POWER_ON);
                imx6_set_cache_lpm_in_wait(true);
                imx_gpc_pre_suspend(false);
+               if (cpu_is_imx6sl())
+                       imx6sl_set_wait_clk(true);
                /* Zzz ... */
                cpu_do_idle();
+               if (cpu_is_imx6sl())
+                       imx6sl_set_wait_clk(false);
                imx_gpc_post_resume();
                imx6_set_lpm(WAIT_CLOCKED);
                break;