mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
cmd: bdinfo: Implement support for printing ethernet settings via bdinfo -e
Add support for printing ethernet settings only via 'bdinfo -e' . Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
f1774a8030
commit
ea9637c92f
1 changed files with 6 additions and 1 deletions
|
@ -193,10 +193,15 @@ 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, "am")) > 0) {
|
||||
while ((opt = getopt(&gs, argc, argv, "aem")) > 0) {
|
||||
switch (opt) {
|
||||
case 'a':
|
||||
return bdinfo_print_all(bd);
|
||||
case 'e':
|
||||
if (!IS_ENABLED(CONFIG_CMD_NET))
|
||||
return CMD_RET_USAGE;
|
||||
print_eth();
|
||||
return CMD_RET_SUCCESS;
|
||||
case 'm':
|
||||
print_bi_dram(bd);
|
||||
return CMD_RET_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue