summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mm-imx3.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2012-02-02 20:02:32 -0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-03-02 08:47:49 +0100
commit3ac804e31199c55440a423c76068d693b37fd50b (patch)
tree8ba4f2130b8f52853ba8a7cbbf19b5e0e7c6b467 /arch/arm/mach-imx/mm-imx3.c
parentd65b4e98d7ea3038b767b70fe8be959b2913f16d (diff)
downloadblackbird-op-linux-3ac804e31199c55440a423c76068d693b37fd50b.tar.gz
blackbird-op-linux-3ac804e31199c55440a423c76068d693b37fd50b.zip
ARM: mx3: Let mx31 and mx35 enter in LPM mode in WFI
The LPM field of register CCMR is used to select the mode that the processor will run when it goes to WFI. When mx31 enters in WFI mode the LPM field is at its reset value of 0, which configures the mx31 to enter in "wait mode". On mx35, the LPM field on mx35 is also at 0 after reset, which corresponds to "run mode" instead of "wait mode". Instead of relying on the reset value of LPM to set the low power mode for WFI, configure mx31 and mx35 to run in "wait mode" Reported-by: Benoit Thebaudeau <benoit.thebaudeau@advansee.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mm-imx3.c')
-rw-r--r--arch/arm/mach-imx/mm-imx3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c
index 31807d2a8b7b..905aafc1352c 100644
--- a/arch/arm/mach-imx/mm-imx3.c
+++ b/arch/arm/mach-imx/mm-imx3.c
@@ -34,6 +34,8 @@ static void imx3_idle(void)
{
unsigned long reg = 0;
+ mx3_cpu_lp_set(MX3_WAIT);
+
if (!need_resched())
__asm__ __volatile__(
/* disable I and D cache */
OpenPOWER on IntegriCloud