summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorJim Liu <jim.t90615@gmail.com>2022-09-13 14:19:24 +0800
committerStefan Roese <sr@denx.de>2022-10-24 11:06:24 +0200
commit0ab55cb6f713abeb0b0f0cc1af2d2d16353b5ee0 (patch)
treeb224fa4de39eb5a7034edc7a65022a4edb2266ce /drivers/watchdog
parent7723828c97bc107d2fba976fc50403ac8747f1bc (diff)
wdt: nuvoton: add expire function for generic reset
Add expire_now function for generic sysreset request Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/npcm_wdt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/watchdog/npcm_wdt.c b/drivers/watchdog/npcm_wdt.c
index 256020f5d3..e56aa0ebe1 100644
--- a/drivers/watchdog/npcm_wdt.c
+++ b/drivers/watchdog/npcm_wdt.c
@@ -75,6 +75,11 @@ static int npcm_wdt_reset(struct udevice *dev)
return 0;
}
+static int npcm_wdt_expire_now(struct udevice *dev, ulong flags)
+{
+ return npcm_wdt_reset(dev);
+}
+
static int npcm_wdt_of_to_plat(struct udevice *dev)
{
struct npcm_wdt_priv *priv = dev_get_priv(dev);
@@ -87,6 +92,7 @@ static int npcm_wdt_of_to_plat(struct udevice *dev)
}
static const struct wdt_ops npcm_wdt_ops = {
+ .expire_now = npcm_wdt_expire_now,
.start = npcm_wdt_start,
.reset = npcm_wdt_reset,
.stop = npcm_wdt_stop,