ARM: pxa: hx4700: Fix basic suspend/resume
authorPaul Parsons <lost.distance@yahoo.com>
Mon, 11 Jun 2012 14:31:14 +0000 (15:31 +0100)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Sun, 1 Jul 2012 06:40:58 +0000 (14:40 +0800)
commit6416c0409dda00aa66b2a4615044fb59d80f6bb2
treed8bd3492313c8b9e51c97cc72293ef9a71de3f29
parent6887a4131da3adaab011613776d865f4bcfb5678
ARM: pxa: hx4700: Fix basic suspend/resume

Basic suspend/resume is fixed by ensuring that the PGSR registers are
set correctly before sleep mode is entered. In particular four of the
active low resets need to be driven high while in sleep mode, otherwise
the unit resets itself instead of suspending. Another problem was that
the PCFR_GPROD bit is set by the HTC bootloader; this caused GPIO reset
(i.e. the reset button) to fail immediately after returning from sleep
mode.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-pxa/hx4700.c