]> git.ipfire.org Git - thirdparty/u-boot.git/commit
watchdog: versal: Add support for basic window watchdog
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Thu, 16 Sep 2021 10:27:29 +0000 (04:27 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 17 Sep 2021 11:19:26 +0000 (13:19 +0200)
commit88536bf39d38bea44c04e05411d19f3793907b05
tree113488574d35ede6ce883e6cb6ce121f65d8ca7c
parentfe16dc2d88cbacbedaa9e354fc558ad0128f504e
watchdog: versal: Add support for basic window watchdog

Existing driver uses generic watchdog mode which generates a signal to
PLM firmware, but the signal cannot be used to reset the system.

Change driver to use window watchdog basic mode. This window watchdog mode
generates a signal to PLM firmware which decides what action to take upon
expiry of watchdog.

Timeout value for xlnx_wwdt_start will come in milli seconds from wdt
framework. Make changes to load count value accordingly.

Add checks before loading the timer for min and max possible values.

Fix authour email id of Ashok Reddy Soma to long email id.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
drivers/watchdog/xilinx_wwdt.c