hello,sir
>>..clear the WDZST in WCR can keep watchdog work.
>>is that only thing i need to do if i want keep watchdog work in stop mode?
>yes
about this.I modified the follow source,and tried in the imx6sll evk bsp revA1.
static inline void imx2_wdt_setup(struct watchdog_device *wdog)
{
struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog);
u32 val;
regmap_read(wdev->regmap, IMX2_WDT_WCR, &val);
/* Suspend timer in low power mode, write once-only */
//val |= IMX2_WDT_WCR_WDZST;
val &= ~IMX2_WDT_WCR_WDZST;
i modify the last line code. but it still can not keep watchdog work in stop mode.
my source is base on 4.9.88.2.0.0
the situation is :
i open the watchdog first, then I make system into stop mode. it can not reset in expected timeout . it will keep sleep .
and when i wake up system, it will reset when timeout.
if I just open the watchdog,and not let system into sleep, it will reset when timeout.
pls give me advice.
best regards
zhang