bdinfo: nios2: Use the generic bd command
[platform/kernel/u-boot.git] / cmd / bdinfo.c
index 761bcc1..a8f25cc 100644 (file)
@@ -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)