diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-12-04 22:55:15 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-01-30 21:09:31 +0800 |
commit | e5f9dec8ff5ff3f6254412abed1f68d758f6616b (patch) | |
tree | 05f293a11ec605b1380b2c7bfb0c3895abeddb08 /arch/arm/mach-imx/mach-imx6q.c | |
parent | 12bb344074cfc50482121c76571e3cda07c4bc09 (diff) |
ARM: imx6q: support WAIT mode using cpuidle
Add WAIT mode (ARM core clock gating) support to imx6q cpuidle driver.
As WAIT mode is broken on imx6q TO 1.0 and 1.1, it only enables the
support for revision 1.2 with chicken bit set.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6q.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 27726de3537e..77a3b4bfff20 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c @@ -202,7 +202,12 @@ static void __init imx6q_init_machine(void) static void __init imx6q_init_late(void) { - imx6q_cpuidle_init(); + /* + * WAIT mode is broken on TO 1.0 and 1.1, so there is no point + * to run cpuidle on them. + */ + if (imx6q_revision() > IMX_CHIP_REVISION_1_1) + imx6q_cpuidle_init(); } static void __init imx6q_map_io(void) |