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>
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;