]> git.sur5r.net Git - u-boot/blobdiff - drivers/watchdog/imx_watchdog.c
mtd: nand: mxs_nand: add minimal ECC support
[u-boot] / drivers / watchdog / imx_watchdog.c
index f9f817596ff2f97af29e4d6e2415c2cefef3f13a..3f826d10eb918cb9970ece1ed1e8c7466cbc8500 100644 (file)
@@ -34,12 +34,12 @@ void hw_watchdog_init(void)
 #endif
        timeout = (CONFIG_WATCHDOG_TIMEOUT_MSECS / 500) - 1;
        writew(WCR_WDZST | WCR_WDBG | WCR_WDE | WCR_WDT | WCR_SRS |
-               SET_WCR_WT(timeout), &wdog->wcr);
+               WCR_WDA | SET_WCR_WT(timeout), &wdog->wcr);
        hw_watchdog_reset();
 }
 #endif
 
-void reset_cpu(ulong addr)
+void __attribute__((weak)) reset_cpu(ulong addr)
 {
        struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR;