mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
watchdog: sp805_wdt: add expire_now method
Add sp805_wdt_expire_now function. expire_now method is required by U_BOOT_DRIVER. Signed-off-by: Thomas Schaefer <thomas.schaefer@kontron.com> Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
0490cab584
commit
412e25ab5f
1 changed files with 9 additions and 1 deletions
|
@ -87,9 +87,16 @@ static int sp805_wdt_stop(struct udevice *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int sp805_wdt_expire_now(struct udevice *dev, ulong flags)
|
||||||
|
{
|
||||||
|
sp805_wdt_start(dev, 0, flags);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int sp805_wdt_probe(struct udevice *dev)
|
static int sp805_wdt_probe(struct udevice *dev)
|
||||||
{
|
{
|
||||||
debug("%s: Probing wdt%u\n", __func__, dev->seq);
|
debug("%s: Probing wdt%u (sp805-wdt)\n", __func__, dev->seq);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -109,6 +116,7 @@ static const struct wdt_ops sp805_wdt_ops = {
|
||||||
.start = sp805_wdt_start,
|
.start = sp805_wdt_start,
|
||||||
.reset = sp805_wdt_reset,
|
.reset = sp805_wdt_reset,
|
||||||
.stop = sp805_wdt_stop,
|
.stop = sp805_wdt_stop,
|
||||||
|
.expire_now = sp805_wdt_expire_now,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct udevice_id sp805_wdt_ids[] = {
|
static const struct udevice_id sp805_wdt_ids[] = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue