summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2009-12-15 16:32:09 +0800
committerJustin Waters <justin.waters@timesys.com>2010-03-25 14:01:46 -0400
commit785b22afcea300362d64c3175162d86df9556c40 (patch)
tree4b969d2a21d2ac6217da2507f45ad9992abb25e7
parent7e39329b1fdd2cfb1e89fc7b17ef62067efff8a6 (diff)
ENGR00119063 MX23: fix system halt rather than reboot when watchdog timeout
fixed by setting AUTO_RESTART bit in HW_RTC_PERSISTENT0 register. Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r--drivers/rtc/rtc-stmp3xxx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-stmp3xxx.c b/drivers/rtc/rtc-stmp3xxx.c
index 3f9869de8940..f3d06b204a55 100644
--- a/drivers/rtc/rtc-stmp3xxx.c
+++ b/drivers/rtc/rtc-stmp3xxx.c
@@ -223,6 +223,8 @@ static int stmp3xxx_rtc_probe(struct platform_device *pdev)
BM_RTC_PERSISTENT0_ALARM_WAKE_EN |
BM_RTC_PERSISTENT0_ALARM_WAKE,
REGS_RTC_BASE + HW_RTC_PERSISTENT0_CLR);
+ __raw_writel(BM_RTC_PERSISTENT0_AUTO_RESTART,
+ REGS_RTC_BASE + HW_RTC_PERSISTENT0_SET);
printk(KERN_INFO "STMP3xxx RTC driver v1.0 hardware v%u.%u.%u\n",
(hwversion >> 24),