]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita11ad96ad393444ecb5d0c91940dff77ee8cff1b
treed8bd3492313c8b9e51c97cc72293ef9a71de3f29
parentcda1d5780ae091596fa4a45c2f1f9794c8e84e36
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