ARM: mx3: Let mx31 and mx35 enter in LPM mode in WFI
authorFabio Estevam <festevam@gmail.com>
Thu, 2 Feb 2012 22:02:32 +0000 (20:02 -0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 2 Mar 2012 07:47:49 +0000 (08:47 +0100)
commit3ac804e31199c55440a423c76068d693b37fd50b
tree8ba4f2130b8f52853ba8a7cbbf19b5e0e7c6b467
parentd65b4e98d7ea3038b767b70fe8be959b2913f16d
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>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/crmregs-imx31.h
arch/arm/mach-imx/mm-imx3.c
arch/arm/mach-imx/pm-imx3.c [new file with mode: 0644]
arch/arm/plat-mxc/include/mach/common.h