]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 4824/1: pxa: clear RDH bit after any reset
authorDmitry Krivoschekov <dmitry.krivoschekov@gmail.com>
Fri, 8 Feb 2008 14:02:03 +0000 (15:02 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 Feb 2008 22:43:14 +0000 (22:43 +0000)
commit91a061eeffbe3dbf82281188208efa0d2dac9a55
tree7ab271f7d98e79b368ec70744a5a20b896c38c8c
parent092f9c737e75c07ad4b0a93712a7a50b26d4234e
[ARM] 4824/1: pxa: clear RDH bit after any reset

According to PXA300/310 and PXA320 Developer manuals,
the ASCR[RDH] "bit needs to be cleared as part of the software
initialization coming out of any reset and coming out of D3".
The latter requirement is addressed by commit
"8b52b7a245fde32", as for the former (coming out of any reset),
the kernel relies on boot loaders and assumes that RDH bit
is cleared there. Though, not all bootloaders follow the rule
so we have to clear the bit in kernel.

We clear the RDH bit in pxa3xx_init() function since
it is always invoked after any reset. We also preserve D1S, D2S
and D3S bits from being cleared in case we invoke pxa3xx_init()
function not from normal hardware reset (e.g. kexec scenario),
so these bits can be properly referenced later.

Signed-off-by: Dmitry Krivoschekov <dmitry.krivoschekov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/pxa3xx.c