]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: add test of wdt-uclass' watchdog_reset()
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 19 Aug 2021 09:57:06 +0000 (11:57 +0200)
committerStefan Roese <sr@denx.de>
Tue, 31 Aug 2021 10:04:03 +0000 (12:04 +0200)
commit4171c574721f3790b416b57d6a536cf3238d5849
tree65e05e48d9fb186811ec45cc896d6ae04731fe5d
parenta9346b93b4c19003a8b14393811e1eb6063f0ed4
sandbox: add test of wdt-uclass' watchdog_reset()

Check that the watchdog_reset() implementation in wdt-uclass behaves
as expected:

- resets all activated watchdog devices
- leaves unactivated/stopped devices alone
- that the rate-limiting works, with a per-device threshold

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
arch/sandbox/dts/test.dts
test/dm/wdt.c