]> 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)
commit5b8df3e7feed0cd9960628698ed3ed93929d4769
treed8bd3492313c8b9e51c97cc72293ef9a71de3f29
parent3b15e0f7495f5dcfda3ad9d09b0aa6894191804f
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