diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2016-08-29 18:41:12 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-08-29 17:39:28 +0300 |
commit | 547e8f526959ded88b93dbdbbb6c8549138fefa8 (patch) | |
tree | 9b272a64fc144c92bac86382e418b8518d0bbcdf /arch/arm/mach-imx/mach-imx6ul.c | |
parent | 6ae44aa651d0d82097cb5379be94e86beade9c7b (diff) | |
download | linux-547e8f526959ded88b93dbdbbb6c8549138fefa8.tar.xz |
ARM: imx: add cpuidle support for i.mx6ul
This patch enables cpuidle driver for i.MX6UL, it
reuses i.MX6SX's cpuidle driver, 3 levels of cpuidle
supported:
1. ARM WFI;
2. SOC in WAIT mode;
3. SOC in WAIT mode + ARM power off.
As i.MX6UL has cortex-A7 CORE with an internal L2
cache, so flushing it before powering down ARM platform
is necessary, flush_cache_all() in last step of cpu_suspend
has very small overhead, just call it to avoid cache
type check for different platforms.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6ul.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6ul.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index 5d9bfab279dd..08308a127ff7 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -16,6 +16,7 @@ #include <asm/mach/map.h> #include "common.h" +#include "cpuidle.h" static void __init imx6ul_enet_clk_init(void) { @@ -79,6 +80,8 @@ static void __init imx6ul_init_irq(void) static void __init imx6ul_init_late(void) { + imx6sx_cpuidle_init(); + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0); } |