watchdog: cadence: Add expire_now method
authorMichal Simek <michal.simek@xilinx.com>
Mon, 28 Jun 2021 11:44:16 +0000 (13:44 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 1 Jul 2021 07:25:06 +0000 (09:25 +0200)
commit76bf8f3e44813bb6f5e57860dbfe51aa27ea5e91
tree9fae152d7e5cf609ab149cd1ad38a4392db3040a
parent6e257c69fb6fc72f345586bb8309371b09757618
watchdog: cadence: Add expire_now method

It is working in a way that only minimal timeout is setup to reach
expiration just right after it is setup.
Please make sure that PMUFW is compiled with ENABLE_EM flag.

On U-Boot prompt you can test it like:
ZynqMP> wdt dev watchdog@fd4d0000
ZynqMP> wdt list
watchdog@fd4d0000 (cdns_wdt)
ZynqMP> wdt dev
dev: watchdog@fd4d0000
ZynqMP> wdt expire
(And reset should happen here)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/watchdog/cdns_wdt.c