From 587c3f8ebe356b558f1876414885c1b4a31294ab Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Sun, 20 Dec 2015 21:09:58 +0300 Subject: 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 --- include/fsl_wdog.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fsl_wdog.h') diff --git a/include/fsl_wdog.h b/include/fsl_wdog.h index d15a70c..f698d4d 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) -- cgit v1.1