summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/cpuidle-imx6sl.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2015-04-25 16:59:19 +0200
committerShawn Guo <shawn.guo@linaro.org>2015-06-03 08:44:31 +0200
commit8fb76a07e2cb08b9f278a6415af4f784bb635a6e (patch)
treeb7dd4ba95fb99dcd7fa406120f5d24f179d69ae9 /arch/arm/mach-imx/cpuidle-imx6sl.c
parentARM: imx5: let pm code map CCM block on its own (diff)
downloadlinux-8fb76a07e2cb08b9f278a6415af4f784bb635a6e.tar.xz
linux-8fb76a07e2cb08b9f278a6415af4f784bb635a6e.zip
ARM: imx6: set initial power mode in pm function
Rather than setting initial low-power mode in every single i.MX6 clock initialization function, we should really do that in pm code. Let's move imx6q_set_lpm(WAIT_CLOCKED) call into imx6_pm_common_init(). While at it, let's rename the function to imx6_set_lpm() since it's actually common for all i.MX6 SoCs. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/cpuidle-imx6sl.c')
-rw-r--r--arch/arm/mach-imx/cpuidle-imx6sl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/cpuidle-imx6sl.c b/arch/arm/mach-imx/cpuidle-imx6sl.c
index 5742a9fd1ef2..8d866fb674a8 100644
--- a/arch/arm/mach-imx/cpuidle-imx6sl.c
+++ b/arch/arm/mach-imx/cpuidle-imx6sl.c
@@ -16,7 +16,7 @@
static int imx6sl_enter_wait(struct cpuidle_device *dev,
struct cpuidle_driver *drv, int index)
{
- imx6q_set_lpm(WAIT_UNCLOCKED);
+ imx6_set_lpm(WAIT_UNCLOCKED);
/*
* Software workaround for ERR005311, see function
* description for details.
@@ -24,7 +24,7 @@ static int imx6sl_enter_wait(struct cpuidle_device *dev,
imx6sl_set_wait_clk(true);
cpu_do_idle();
imx6sl_set_wait_clk(false);
- imx6q_set_lpm(WAIT_CLOCKED);
+ imx6_set_lpm(WAIT_CLOCKED);
return index;
}