summaryrefslogtreecommitdiff
path: root/include/fsl_wdog.h
diff options
context:
space:
mode:
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>2015-12-20 21:09:58 +0300
committerStefano Babic <sbabic@denx.de>2016-01-07 17:54:53 +0100
commit587c3f8ebe356b558f1876414885c1b4a31294ab (patch)
tree6194dc359a4751eceeb4eae8df9d73c9ce9cab83 /include/fsl_wdog.h
parent88f91d1375aaf4d21d77a2f2daa351dea9132a58 (diff)
imx_watchdog: always set minimal timeout in reset_cpu
The problem is that timeout bits in WCR register were leaved unchanged. So previously set timeout value was applied and therefore 'reset' command takes any value up to two minutes, depending on previous watchdog settings, instead of minimal 0.5 seconds. Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Diffstat (limited to 'include/fsl_wdog.h')
-rw-r--r--include/fsl_wdog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsl_wdog.h b/include/fsl_wdog.h
index d15a70cedb..f698d4d64e 100644
--- a/include/fsl_wdog.h
+++ b/include/fsl_wdog.h
@@ -16,3 +16,4 @@ struct watchdog_regs {
#define WCR_WDT 0x08
#define WCR_SRS 0x10
#define SET_WCR_WT(x) (x << 8)
+#define WCR_WT_MSK SET_WCR_WT(0xFF)