aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-10-07 23:40:59 +0200
committerTom Rini <trini@konsulko.com>2023-10-16 10:25:02 -0400
commite46492bf551298d370e21c53a0f1cba76393346b (patch)
tree1be279678a7b4557b4f4d091aa71801e39755926
parent4d7e74b012b3ca2cb67d507911f63facba3df984 (diff)
downloadu-boot-e46492bf551298d370e21c53a0f1cba76393346b.zip
u-boot-e46492bf551298d370e21c53a0f1cba76393346b.tar.gz
u-boot-e46492bf551298d370e21c53a0f1cba76393346b.tar.bz2
cmd: bdinfo: Implement support for printing memory layout via bdinfo -m
Add support for printing memory layout only via 'bdinfo -m' . Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
-rw-r--r--cmd/bdinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 2c0d5e9..c720ee6 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -193,10 +193,13 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
return bdinfo_print_all(bd);
getopt_init_state(&gs);
- while ((opt = getopt(&gs, argc, argv, "a")) > 0) {
+ while ((opt = getopt(&gs, argc, argv, "am")) > 0) {
switch (opt) {
case 'a':
return bdinfo_print_all(bd);
+ case 'm':
+ print_bi_dram(bd);
+ return CMD_RET_SUCCESS;
default:
return CMD_RET_USAGE;
}