]> git.sur5r.net Git - u-boot/blobdiff - drivers/watchdog/imx_watchdog.c
dfu: tftp: update: Add dfu_write_from_mem_addr() function
[u-boot] / drivers / watchdog / imx_watchdog.c
index 50e602af127b33eef7ab7320a9a552630b8fdc7b..1d18d4b269f8af94e4f8cae77bdc9a39b5524f8e 100644 (file)
@@ -19,7 +19,7 @@ struct watchdog_regs {
 #define WCR_WDBG       0x02
 #define WCR_WDE                0x04    /* WDOG enable */
 #define WCR_WDT                0x08
-#define WCR_WDW                0x80
+#define WCR_SRS                0x10
 #define SET_WCR_WT(x)  (x << 8)
 
 #ifdef CONFIG_IMX_WATCHDOG
@@ -45,8 +45,8 @@ void hw_watchdog_init(void)
 #define CONFIG_WATCHDOG_TIMEOUT_MSECS 128000
 #endif
        timeout = (CONFIG_WATCHDOG_TIMEOUT_MSECS / 500) - 1;
-       writew(WCR_WDZST | WCR_WDBG | WCR_WDE | WCR_WDT |
-               WCR_WDW | SET_WCR_WT(timeout), &wdog->wcr);
+       writew(WCR_WDZST | WCR_WDBG | WCR_WDE | WCR_WDT | WCR_SRS |
+               SET_WCR_WT(timeout), &wdog->wcr);
        hw_watchdog_reset();
 }
 #endif