diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-12-22 12:44:38 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2025-12-24 09:16:03 +0100 |
| commit | 00bc1adae41df4b7d668f61b64d4898b4adb342a (patch) | |
| tree | 56d75c3b210c6dd6c83c703c273416f252e33370 /cmd/bdinfo.c | |
| parent | 8c50c8fe57aa6be28d211a63036529f69a13f108 (diff) | |
cmd/bdinfo: LMB and device-tree are not related
The usage of the LMB library and the device-tree source are not related.
Remove the dependency in the bdinfo output and adjust the unit test.
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'cmd/bdinfo.c')
| -rw-r--r-- | cmd/bdinfo.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 20c8c97f0cd..8e2bbfa9c20 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -160,11 +160,12 @@ static int bdinfo_print_all(struct bd_info *bd) #if CONFIG_IS_ENABLED(MULTI_DTB_FIT) bdinfo_print_num_l("multi_dtb_fit", (ulong)gd->multi_dtb_fit); #endif - if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) { + if (IS_ENABLED(CONFIG_LMB)) lmb_dump_all_force(); - if (IS_ENABLED(CONFIG_OF_REAL)) - printf("devicetree = %s\n", fdtdec_get_srcname()); - } + + if (IS_ENABLED(CONFIG_OF_REAL) && gd->fdt_blob) + printf("devicetree = %s\n", fdtdec_get_srcname()); + print_serial(gd->cur_serial_dev); if (IS_ENABLED(CONFIG_CMD_BDINFO_EXTRA)) { |
