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

@@ -105,7 +105,8 @@ static void print_serial(struct udevice *dev)
if (ret)
return;
lprint_num_l("serial addr", info.addr);
lprint_str("serial", dev->name);
lprint_num_l(" addr", info.addr);
lprint_num_l(" width", info.reg_width);
lprint_num_l(" shift", info.reg_shift);
lprint_num_l(" offset", info.reg_offset);