summaryrefslogtreecommitdiff
path: root/drivers/watchdog/sp805_wdt.c
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2020-03-13 17:04:58 +0100
committerStefan Roese <sr@denx.de>2020-04-15 08:54:00 +0200
commit40d7f3c8d111d4e4b6c1df105d5a4cedf5b7d6c1 (patch)
tree21f161d23e0a1179b26d5f80354e06eeae906861 /drivers/watchdog/sp805_wdt.c
parentb4d9452c442769e6dc25649ac02db2d5ed5ea0c8 (diff)
watchdog: honour hw_margin_ms DT property
Some watchdog devices, e.g. external gpio-triggered ones, must be reset more often than once per second, which means that the current rate-limiting logic in watchdog_reset() fails to keep the board alive. gpio-wdt.txt in the linux source tree defines a "hw_margin_ms" property used to specifiy the maximum time allowed between resetting the device. Allow any watchdog device to specify such a property, and then use a reset period of one quarter of that. We keep the current default of resetting once every 1000ms. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/watchdog/sp805_wdt.c')
0 files changed, 0 insertions, 0 deletions