diff options
author | Anson Huang <anson.huang@nxp.com> | 2019-01-14 03:54:59 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2019-01-15 18:03:40 +0300 |
commit | 6d45a4028c8a6bc0a1e92438283ef7d4ed6ffe71 (patch) | |
tree | 05f1710067648f1d2d4ed96ec0238a133cb88958 /arch/arm/mach-imx/cpuidle.h | |
parent | 23b2441b90026ff56b3a4dd9af33a39730cffa21 (diff) | |
download | linux-6d45a4028c8a6bc0a1e92438283ef7d4ed6ffe71.tar.xz |
ARM: imx: add i.MX7ULP cpuidle support
This patch adds cpuidle support for i.MX7ULP, 3 cpuidle
states supported as below:
1. WFI, just ARM wfi;
2. WAIT mode, mapped to SoC's partial stop mode #3;
3. STOP mode, mapped to SoC's partial stop mode #1.
In WAIT mode, system clock and bus clock will be enabled;
In STOP mode, system clock and bus clock will be disabled.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.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 f9140128ba05..7694c8f810a4 100644 --- a/arch/arm/mach-imx/cpuidle.h +++ b/arch/arm/mach-imx/cpuidle.h @@ -15,6 +15,7 @@ extern int imx5_cpuidle_init(void); extern int imx6q_cpuidle_init(void); extern int imx6sl_cpuidle_init(void); extern int imx6sx_cpuidle_init(void); +extern int imx7ulp_cpuidle_init(void); #else static inline int imx5_cpuidle_init(void) { @@ -32,4 +33,8 @@ static inline int imx6sx_cpuidle_init(void) { return 0; } +static inline int imx7ulp_cpuidle_init(void) +{ + return 0; +} #endif |