]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: imx: add cpuidle support for i.mx6sl
authorAnson Huang <b20788@freescale.com>
Thu, 9 Jan 2014 08:03:16 +0000 (16:03 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:11 +0000 (21:16 -0600)
commit112898ab9706443a6d0bb6be6615f4c837fce9de
treea1ccb3b483dac6cd53fdee4ed2b540b79c100274
parent3176bd2f18403d010855afce504e86bf351637d9
ARM: imx: add cpuidle support for i.mx6sl

Add cpuidle support for i.MX6SL, currently only support
two cpuidle levels(ARM wfi and WAIT mode), and add software
workaround for WAIT mode errata as below:

ERR005311 CCM: After exit from WAIT mode, unwanted interrupt(s) taken
          during WAIT mode entry process could cause cache memory
          corruption.

Software workaround:
    To prevent this issue from occurring, software should ensure that
the ARM to IPG clock ratio is less than 12:5 (that is < 2.4x), before
entering WAIT mode.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
[shawn.guo: cherry-pick commit 751f7e999afc from upstream]
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/clk-imx6sl.c
arch/arm/mach-imx/common.h
arch/arm/mach-imx/cpuidle-imx6sl.c [new file with mode: 0644]
arch/arm/mach-imx/cpuidle.h
arch/arm/mach-imx/mach-imx6sl.c