diff options
author | Tero Kristo <t-kristo@ti.com> | 2020-07-20 11:10:45 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-04 23:30:02 -0400 |
commit | 9996cea75f5a77db5a6055342130d27a36830ef8 (patch) | |
tree | c6383ae1612af79f00904cfba809323495740f23 /cmd | |
parent | cc6b87ecaa96325577a8fafabc0d5972b816bc6c (diff) |
lmb/bdinfo: dump lmb info via bdinfo
Dump lmb status from the bdinfo command. This is useful for seeing the
reserved memory regions from the u-boot cmdline.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bdinfo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 8b2c105e77..2a6dd6c67a 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -9,6 +9,7 @@ #include <common.h> #include <command.h> #include <env.h> +#include <lmb.h> #include <net.h> #include <vsprintf.h> #include <asm/cache.h> @@ -96,6 +97,12 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #if CONFIG_IS_ENABLED(MULTI_DTB_FIT) bdinfo_print_num("multi_dtb_fit", (ulong)gd->multi_dtb_fit); #endif + if (gd->fdt_blob) { + struct lmb lmb; + + lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob); + lmb_dump_all_force(&lmb); + } arch_print_bdinfo(); |