LF-922 watchdog: imx7ulp: Watchdog should continue running for wait/stop mode
When kernel idle, system will enter wait/stop mode, wdog should continue running in this scenario, and the refresh thread can wake up system from wait/stop mode. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
This commit is contained in:
parent
2475b58432
commit
2fa771870d
|
@ -147,7 +147,7 @@ static inline void imx7ulp_wdt_init(void __iomem *base, unsigned int timeout)
|
|||
/* set an initial timeout value in TOVAL */
|
||||
writel(timeout, base + WDOG_TOVAL);
|
||||
/* enable 32bit command sequence and reconfigure */
|
||||
val = BIT(13) | BIT(8) | BIT(5);
|
||||
val = BIT(13) | BIT(8) | BIT(5) | BIT(1) | BIT(0);
|
||||
writel(val, base + WDOG_CS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue