bdinfo: Show the serial device

Show the name of the serial device with the 'bdinfo' command.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-22 04:49:14 -06:00
parent 03cd5e055b
commit 82732edd5a
2 changed files with 5 additions and 2 deletions

View File

@@ -201,7 +201,9 @@ static int bdinfo_test_all(struct unit_test_state *uts)
ut_assertnonnull(gd->cur_serial_dev);
ut_assertok(serial_getinfo(gd->cur_serial_dev, &info));
ut_assertok(test_num_l(uts, "serial addr", info.addr));
ut_assert_nextline("serial = %s",
gd->cur_serial_dev->name);
ut_assertok(test_num_l(uts, " addr", info.addr));
ut_assertok(test_num_l(uts, " width", info.reg_width));
ut_assertok(test_num_l(uts, " shift", info.reg_shift));
ut_assertok(test_num_l(uts, " offset", info.reg_offset));