[PATCH v2 09/10] sandbox: add test of wdt_gpio driver

Simon Glass sjg at chromium.org
Tue Jun 22 15:31:52 CEST 2021


On Thu, 27 May 2021 at 16:00, Rasmus Villemoes
<rasmus.villemoes at prevas.dk> wrote:
>
> It seems that no other test has claimed gpio_a:7 yet, so use that.
>
> The only small wrinkle is modifying the existing wdt test to use
> uclass_get_device_by_driver() since we now have two UCLASS_WDT
> instances in play, so it's a little more robust to fetch the device by
> driver and not merely uclass+index.
>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> ---
>  arch/sandbox/dts/test.dts   |  6 ++++++
>  configs/sandbox64_defconfig |  1 +
>  configs/sandbox_defconfig   |  1 +
>  test/dm/wdt.c               | 36 +++++++++++++++++++++++++++++++++++-
>  4 files changed, 43 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

(you could get the device by alias also, I suppose)


More information about the U-Boot mailing list