Skip to content
Snippets Groups Projects
Commit 9eeab572 authored by Ross Parker's avatar Ross Parker Committed by Stefano Babic
Browse files

imx_watchdog: Do not assert WDOG_B on watchdog init


Currently the driver asserts WDOG_B by clearing WCR_WDA bit when
enabling the watchdog. Do not clear WCR_WDA.

Signed-off-by: default avatarRoss Parker <rossjparker@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
parent 514a0f4b
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ void hw_watchdog_init(void) ...@@ -34,7 +34,7 @@ void hw_watchdog_init(void)
#endif #endif
timeout = (CONFIG_WATCHDOG_TIMEOUT_MSECS / 500) - 1; timeout = (CONFIG_WATCHDOG_TIMEOUT_MSECS / 500) - 1;
writew(WCR_WDZST | WCR_WDBG | WCR_WDE | WCR_WDT | WCR_SRS | 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(); hw_watchdog_reset();
} }
#endif #endif
......
...@@ -15,5 +15,6 @@ struct watchdog_regs { ...@@ -15,5 +15,6 @@ struct watchdog_regs {
#define WCR_WDE 0x04 #define WCR_WDE 0x04
#define WCR_WDT 0x08 #define WCR_WDT 0x08
#define WCR_SRS 0x10 #define WCR_SRS 0x10
#define WCR_WDA 0x20
#define SET_WCR_WT(x) (x << 8) #define SET_WCR_WT(x) (x << 8)
#define WCR_WT_MSK SET_WCR_WT(0xFF) #define WCR_WT_MSK SET_WCR_WT(0xFF)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment