diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 14:16:45 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-25 13:24:12 -0400 |
commit | 9e24e10b7bfe1fc7ca3971dbb5c8e3e781dd6db3 (patch) | |
tree | 35bca5ec371ad55cf61a82f62be37a9ed7fbd6ad /cmd/bdinfo.c | |
parent | d67de00eb6d62b52d0ccafb2d80c290079a6f0f6 (diff) | |
download | u-boot-9e24e10b7bfe1fc7ca3971dbb5c8e3e781dd6db3.tar.gz |
bdinfo: Drop print_std_bdinfo()
Everything in this function is standard now so it serves no purpose. Move
it into the generic do_bdinfo() function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd/bdinfo.c')
-rw-r--r-- | cmd/bdinfo.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f4f1ba711e..77a0cf14e0 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -148,15 +148,6 @@ static void print_baudrate(void) #endif } -static void print_std_bdinfo(const bd_t *bd) -{ - print_bi_boot_params(bd); - print_bi_mem(bd); - print_bi_flash(bd); - print_eth_ip_addr(); - print_baudrate(); -} - void __weak board_detail(void) { /* Please define board_detail() for your PPC platform */ @@ -171,8 +162,12 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #endif if (IS_ENABLED(CONFIG_ARM)) print_num("arch_number", bd->bi_arch_number); + print_bi_boot_params(bd); print_bi_dram(bd); - print_std_bdinfo(bd); + print_bi_mem(bd); + print_bi_flash(bd); + print_eth_ip_addr(); + print_baudrate(); print_num("relocaddr", gd->relocaddr); print_num("reloc off", gd->reloc_off); print_cpu_word_size(); |