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>
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;
}