diff options
author | Simon Glass | 2023-08-10 09:53:13 -0600 |
---|---|---|
committer | Stefan Roese | 2023-10-19 07:50:18 +0200 |
commit | bc003cad7f1ee9eb6fd993e82e6f7e6795432ef5 (patch) | |
tree | d84ea955d2baa3ab453e1e6f05b02d67804737ba /test/dm | |
parent | 9a0cf3993f71043ba08c315572c54622de42d447 (diff) |
sandbox: watchdog: Avoid an error on startup
For some time now running sandbox with -T produces an error:
Core: 270 devices, 95 uclasses, devicetree: board
WDT: Not starting wdt-gpio-toggle
wdt_gpio wdt-gpio-level: Request for wdt gpio failed: -16
WDT: Not starting wdt@0
MMC: mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)
Use an unallocated GPIO to avoid this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 1fc45d6483d ("watchdog: add pulse support to gpio watchdog driver")
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'test/dm')
-rw-r--r-- | test/dm/wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/wdt.c b/test/dm/wdt.c index 653d7b1c8b3..2bbebcdbf28 100644 --- a/test/dm/wdt.c +++ b/test/dm/wdt.c @@ -54,7 +54,7 @@ static int dm_test_wdt_gpio_toggle(struct unit_test_state *uts) */ struct udevice *wdt, *gpio; const u64 timeout = 42; - const int offset = 7; + const int offset = 8; int val; ut_assertok(uclass_get_device_by_name(UCLASS_WDT, @@ -115,7 +115,7 @@ static int dm_test_wdt_watchdog_reset(struct unit_test_state *uts) struct udevice *gpio_wdt, *sandbox_wdt; struct udevice *gpio; const u64 timeout = 42; - const int offset = 7; + const int offset = 8; uint reset_count; int val; |