]> git.dujemihanovic.xyz Git - u-boot.git/commit
watchdog: imx: Use immediate reset bits for expire_now
authorRobert Hancock <hancock@sedsystems.ca>
Tue, 6 Aug 2019 17:05:30 +0000 (11:05 -0600)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Nov 2019 16:04:16 +0000 (17:04 +0100)
commitf2929d11a6394fa815741cbdbcc5d616e7bae860
tree86a7f4b59379257270332ae43f653798f5803017
parentceea0c145d0c38badfcfc5443138e94ab094dc4a
watchdog: imx: Use immediate reset bits for expire_now

The expire_now function was previously setting the watchdog timeout to
minimum and waiting for the watchdog to expire. However, this watchdog
also has bits to trigger immediate reset. Use those instead, like the
Linux imx2_wdt driver does.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
drivers/watchdog/imx_watchdog.c