ARM: OMAP2xxx: PM: clean up some crufty powerstate programming code
authorPaul Walmsley <paul@pwsan.com>
Sat, 26 Jan 2013 07:58:14 +0000 (00:58 -0700)
committerPaul Walmsley <paul@pwsan.com>
Tue, 29 Jan 2013 21:59:57 +0000 (14:59 -0700)
commitf653b29825817a929a606726f03a04fcd0b2b566
tree0f70038dcebbc4a0fb1ac95fd247cf9a3617fa7b
parent53e1cb469e6cf353aa581e6b0a36cca359ecee25
ARM: OMAP2xxx: PM: clean up some crufty powerstate programming code

Don't attempt to put clockdomains to sleep; this should be handled by the
clock framework.  It should be enough to program the next-power-state,
and then let the code in omap_pm_clkdms_setup() deal with the rest.

Start out by programming the MPU and CORE powerdomains to stay ON.
Then control the MPU and CORE powerdomain states directly in
omap2_enter_full_retention() and omap2_enter_mpu_retention().  Not the
most optimal way to do it, but certainly is the most conservative until
OMAP2xxx PM is working again.

Get rid of the open-coded PM_PWSTCTRL_MPU writes in
omap2_enter_mpu_retention(); use the powerdomain code instead.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm24xx.c