summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2021-08-19 11:57:06 +0200
committerStefan Roese <sr@denx.de>2021-08-31 12:04:03 +0200
commit4171c574721f3790b416b57d6a536cf3238d5849 (patch)
tree65e05e48d9fb186811ec45cc896d6ae04731fe5d /arch
parenta9346b93b4c19003a8b14393811e1eb6063f0ed4 (diff)
downloadu-boot-4171c574721f3790b416b57d6a536cf3238d5849.tar.gz
u-boot-4171c574721f3790b416b57d6a536cf3238d5849.tar.bz2
u-boot-4171c574721f3790b416b57d6a536cf3238d5849.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/test.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index e91387a81f..1399a14929 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -796,6 +796,7 @@
gpio-wdt {
gpios = <&gpio_a 7 0>;
compatible = "linux,wdt-gpio";
+ hw_margin_ms = <100>;
always-running;
};
@@ -1278,6 +1279,7 @@
wdt0: wdt@0 {
compatible = "sandbox,wdt";
+ hw_margin_ms = <200>;
};
axi: axi@0 {