diff options
author | Ross Parker <rossjparker@gmail.com> | 2016-08-02 08:08:07 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-10-04 12:01:14 +0200 |
commit | 9eeab572113b2978d42cbb32886a1e90434bf07c (patch) | |
tree | 84889d0fd0acbeb07f3600312b8ec070c83cd05e /drivers/watchdog | |
parent | 514a0f4b680bf93dc8fe0e7d3e9097dfee1625b6 (diff) | |
download | u-boot-9eeab572113b2978d42cbb32886a1e90434bf07c.zip u-boot-9eeab572113b2978d42cbb32886a1e90434bf07c.tar.gz u-boot-9eeab572113b2978d42cbb32886a1e90434bf07c.tar.bz2 |
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: Ross Parker <rossjparker@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/imx_watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index 2938d9f..3f826d1 100644 --- a/drivers/watchdog/imx_watchdog.c +++ b/drivers/watchdog/imx_watchdog.c @@ -34,7 +34,7 @@ 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 |