diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 14:16:31 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-25 13:24:11 -0400 |
commit | 271db508cc9c6490f6aee2da2f8707c52738c738 (patch) | |
tree | 46d0c7805bdbb65bdb0e9868bf82585213f9c845 /cmd | |
parent | 08c56d19175aad4824b16d4312f8486646a53ed1 (diff) | |
download | u-boot-271db508cc9c6490f6aee2da2f8707c52738c738.tar.gz |
bdinfo: microblaze: Use the generic bd command
Microblaze prints out ethernet and FDT information. This is useful to
most archs, so move it into the generic code and move microblaze over to
use it.
Note that FDT information is shown for all boards, since they should be
using device tree by now.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bdinfo.c | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index a8f25cc2fb..16e7ad0fa5 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -226,29 +226,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #elif defined(CONFIG_MICROBLAZE) -int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) -{ - bd_t *bd = gd->bd; - - print_bi_dram(bd); - print_bi_flash(bd); -#if defined(CONFIG_SYS_SRAM_BASE) - print_num("sram start ", (ulong)bd->bi_sramstart); - print_num("sram size ", (ulong)bd->bi_sramsize); -#endif -#if defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH) - print_eths(); -#endif - print_baudrate(); - print_num("relocaddr", gd->relocaddr); - print_num("reloc off", gd->reloc_off); - print_num("fdt_blob", (ulong)gd->fdt_blob); - print_num("new_fdt", (ulong)gd->new_fdt); - print_num("fdt_size", (ulong)gd->fdt_size); - print_cpu_word_size(); - - return 0; -} +#define USE_GENERIC #elif defined(CONFIG_M68K) @@ -465,6 +443,12 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) print_num("relocaddr", gd->relocaddr); print_num("reloc off", gd->reloc_off); print_cpu_word_size(); +#if defined(CONFIG_CMD_NET) && !defined(CONFIG_DM_ETH) + print_eths(); +#endif + print_num("fdt_blob", (ulong)gd->fdt_blob); + print_num("new_fdt", (ulong)gd->new_fdt); + print_num("fdt_size", (ulong)gd->fdt_size); return 0; } |