summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-05-15 14:25:14 +0800
committerYe.Li <B37916@freescale.com>2015-05-20 15:22:07 +0800
commit7ae2b544aedaf79c59c54a8cfd917da76eac4d73 (patch)
treefc255b6878a6d4860d26bcd99707c49f7e634b62
parent2da575b34b2dd9337df8e1feb500b1eb59a2b016 (diff)
downloadu-boot-imx-7ae2b544aedaf79c59c54a8cfd917da76eac4d73.zip
u-boot-imx-7ae2b544aedaf79c59c54a8cfd917da76eac4d73.tar.gz
u-boot-imx-7ae2b544aedaf79c59c54a8cfd917da76eac4d73.tar.bz2
MLK-10931 imx: wdog: Turn off internal reset signal for mx7d
Set wdog WCR register SRS bit to turn off internal reset signal WDOG_RESET_B_DEB for mx7d. So that the warm reset is disabled. Signed-off-by: Ye.Li <B37916@freescale.com>
-rw-r--r--drivers/watchdog/imx_watchdog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c
index 1d18d4b..5f3c0fc 100644
--- a/drivers/watchdog/imx_watchdog.c
+++ b/drivers/watchdog/imx_watchdog.c
@@ -55,7 +55,11 @@ void reset_cpu(ulong addr)
{
struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR;
+#if defined(CONFIG_MX7)
+ writew((WCR_WDE | WCR_SRS), &wdog->wcr);
+#else
writew(WCR_WDE, &wdog->wcr);
+#endif
writew(0x5555, &wdog->wsr);
writew(0xaaaa, &wdog->wsr); /* load minimum 1/2 second timeout */
while (1) {