]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit8aaed5de11a6abd2f1d2fb882e8e22aa65ea6c52
tree9fae152d7e5cf609ab149cd1ad38a4392db3040a
parent05596e44bc53399317a9ac823d3bc29c0d01506f
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