diff options
| author | Marek Vasut <[email protected]> | 2022-04-25 18:33:51 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-28 09:26:44 -0400 |
| commit | 891ec35a7a428c0c08c95ed5686bc1cd10e0c4dd (patch) | |
| tree | 04d572f3a51fb61113e2abca81f6c73112a2cb2f /test/cmd | |
| parent | 876276f5de92cbaa4a55706606451354650cc730 (diff) | |
test: dm: pinmux: Get LED2 udevice in the pinmux test
The UT reinitializes the pin controller state, get LED2 udevice
to trigger its probe and configure the pin controller pin state
as it is expected by the test.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Steven Lawrance <[email protected]>
Diffstat (limited to 'test/cmd')
| -rw-r--r-- | test/cmd/pinmux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cmd/pinmux.c b/test/cmd/pinmux.c index de3bb0d2f97..df40bb77435 100644 --- a/test/cmd/pinmux.c +++ b/test/cmd/pinmux.c @@ -7,12 +7,17 @@ #include <common.h> #include <command.h> +#include <dm.h> #include <dm/test.h> #include <test/test.h> #include <test/ut.h> static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts) { + struct udevice *dev; + + ut_assertok(uclass_get_device(UCLASS_LED, 2, &dev)); + /* Test that 'pinmux status <pinname>' displays the selected pin. */ console_record_reset(); run_command("pinmux status a5", 0); |
