From: Marek Vasut Date: Sat, 7 Oct 2023 21:40:59 +0000 (+0200) Subject: cmd: bdinfo: Implement support for printing memory layout via bdinfo -m X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=f1774a80307c357ab26f8ee42c5b082a902393b6;p=u-boot.git 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 Signed-off-by: Marek Vasut --- diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 2c0d5e9c01..c720ee6f9b 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; }