aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass2020-05-10 14:16:30 -0600
committerTom Rini2020-06-25 13:24:11 -0400
commit08c56d19175aad4824b16d4312f8486646a53ed1 (patch)
tree2d2a53bfcba608e765ff1298ab27fa5250e3d922 /cmd
parentdf529b5a77876481725642bf4aa83869ffc7f492 (diff)
bdinfo: nios2: Use the generic bd command
Nios2 currently has some code to output SRAM information which is behind an #ifdef. No nios2 boards define this option, so the code can be removed. Move Nios2 over to use the generic function. 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.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 761bcc18621..a8f25cc2fbf 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -222,24 +222,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
#elif defined(CONFIG_NIOS2)
-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
-
- print_eth_ip_addr();
- print_baudrate();
- print_cpu_word_size();
-
- return 0;
-}
+#define USE_GENERIC
#elif defined(CONFIG_MICROBLAZE)