summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-09-24 12:28:10 -0400
committerTom Rini <trini@konsulko.com>2015-09-24 12:28:10 -0400
commit1a9c229bf754c89f42b085451ad506693f326427 (patch)
tree288106d7498591ac889fa972d0c24fc5c9b811f9 /drivers/watchdog
parentd0f30211e9823694c1c2c79f471dbe9d498a40fd (diff)
parentf697c2acca9ff02c9b0cf480a4a726ed9626a53a (diff)
downloadu-boot-imx-1a9c229bf754c89f42b085451ad506693f326427.zip
u-boot-imx-1a9c229bf754c89f42b085451ad506693f326427.tar.gz
u-boot-imx-1a9c229bf754c89f42b085451ad506693f326427.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/imx_watchdog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c
index 1d18d4b..9a77a54 100644
--- a/drivers/watchdog/imx_watchdog.c
+++ b/drivers/watchdog/imx_watchdog.c
@@ -55,7 +55,8 @@ void reset_cpu(ulong addr)
{
struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR;
- writew(WCR_WDE, &wdog->wcr);
+ clrsetbits_le16(&wdog->wcr, 0, WCR_WDE);
+
writew(0x5555, &wdog->wsr);
writew(0xaaaa, &wdog->wsr); /* load minimum 1/2 second timeout */
while (1) {