mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 20:36:02 +01:00
wdt: nuvoton: add expire function for generic reset
Add expire_now function for generic sysreset request Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
This commit is contained in:
parent
7723828c97
commit
0ab55cb6f7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user