ARM: pxa: prevent PXA270 occasional reboot freezes
authorSergei Ianovich <ynvich@gmail.com>
Tue, 10 Dec 2013 04:39:15 +0000 (08:39 +0400)
committerOlof Johansson <olof@lixom.net>
Thu, 12 Dec 2013 00:35:16 +0000 (16:35 -0800)
commitff88b4724fde18056a4c539f7327389aec0f4c2d
tree1b80c7a934808607e0050ec1a11f09b60de22e34
parent506cac15ac86f204b83e3cfccde73eeb4e7c5f34
ARM: pxa: prevent PXA270 occasional reboot freezes

Erratum 71 of PXA270M Processor Family Specification Update
(April 19, 2010) explains that watchdog reset time is just
8us insead of 10ms in EMTS.

If SDRAM is not reset, it causes memory bus congestion and
the device hangs. We put SDRAM in selfresh mode before watchdog
reset, removing potential freezes.

Without this patch PXA270-based ICP DAS LP-8x4x hangs after up to 40
reboots. With this patch it has successfully rebooted 500 times.

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>
Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-pxa/reset.c