summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-05-15 14:25:14 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-09 14:42:35 +0100
commit4c1248c22476295ac173b2786b70d7d824ae7d19 (patch)
treec367888dac490e433f3b5e61f4842604db3518b6 /drivers
parentc50d7e9f84fc9531c87e797a243b765a3651b23b (diff)
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>
Diffstat (limited to 'drivers')
-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 1d18d4b269f..5f3c0fc6968 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) {