summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/common.c')
-rw-r--r--arch/arm/mach-pxa/common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/common.c b/arch/arm/mach-pxa/common.c
index 82e81b75d9..69ec0a7c80 100644
--- a/arch/arm/mach-pxa/common.c
+++ b/arch/arm/mach-pxa/common.c
@@ -16,6 +16,7 @@
*/
#include <common.h>
+#include <mach/pxa-regs.h>
#include <asm/io.h>
#define OSMR3 0x40A0000C
@@ -28,6 +29,9 @@
void reset_cpu(ulong addr)
{
+ /* Clear last reset source */
+ RCSR = RCSR_GPR | RCSR_SMR | RCSR_WDR | RCSR_HWR;
+
/* Initialize the watchdog and let it fire */
writel(OWER_WME, OWER);
writel(OSSR_M3, OSSR);