工具/软件:
WWDT 功能在 HS-SE 板上出现问题、并且在 FS 板上工作正常。 验证方法如下:向看门狗添加逻辑 — 馈送功能只向看门狗馈送两次。 在非保险丝板上进行验证后、系统将在两次馈电后触发看门狗重新启动。 但是、在保险丝板上、不会触发重新启动。
drivers/watchdog/rti_wdt.c static int count = 2 ; static int rti_wdt_ping(struct watchdog_device *wdd) { struct rti_wdt_device *wdt = watchdog_get_drvdata(wdd); printk("enter %s, count=%d\n", __func__, count); if(count-- <= 0) return 0; /* put watchdog in service state */ writel_relaxed(WDKEY_SEQ0, wdt->base + RTIWDKEY); /* put watchdog in active state */ writel_relaxed(WDKEY_SEQ1, wdt->base + RTIWDKEY); printk("leave %s, count=%d\n", __func__, count); return 0; }