diff options
author | Anson Huang <b20788@freescale.com> | 2014-12-16 23:24:12 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2015-01-05 08:34:29 -0500 |
commit | 05136f0897b526b9cd090c93b95bbd1b67c18cc5 (patch) | |
tree | a550264eb74fa756155662b4fdd67ed7d147618f /arch/arm/mach-imx/cpuidle.h | |
parent | df096fde0889a7a624fcc9616ff5ebd7446d131e (diff) |
ARM: imx: support arm power off in cpuidle for i.mx6sx
This patch introduces an independent cpuidle driver for
i.MX6SX, and supports arm power off in idle, totally
3 levels of cpuidle are supported as below:
1. ARM WFI;
2. SOC in WAIT mode;
3. SOC in WAIT mode + ARM power off.
ARM power off can save at least 5mW power.
This patch also replaces imx6q_enable_rbc with imx6_enable_rbc.
Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/cpuidle.h')
-rw-r--r-- | arch/arm/mach-imx/cpuidle.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/cpuidle.h b/arch/arm/mach-imx/cpuidle.h index 24e33670417c..f9140128ba05 100644 --- a/arch/arm/mach-imx/cpuidle.h +++ b/arch/arm/mach-imx/cpuidle.h | |||
@@ -14,6 +14,7 @@ | |||
14 | extern int imx5_cpuidle_init(void); | 14 | extern int imx5_cpuidle_init(void); |
15 | extern int imx6q_cpuidle_init(void); | 15 | extern int imx6q_cpuidle_init(void); |
16 | extern int imx6sl_cpuidle_init(void); | 16 | extern int imx6sl_cpuidle_init(void); |
17 | extern int imx6sx_cpuidle_init(void); | ||
17 | #else | 18 | #else |
18 | static inline int imx5_cpuidle_init(void) | 19 | static inline int imx5_cpuidle_init(void) |
19 | { | 20 | { |
@@ -27,4 +28,8 @@ static inline int imx6sl_cpuidle_init(void) | |||
27 | { | 28 | { |
28 | return 0; | 29 | return 0; |
29 | } | 30 | } |
31 | static inline int imx6sx_cpuidle_init(void) | ||
32 | { | ||
33 | return 0; | ||
34 | } | ||
30 | #endif | 35 | #endif |