aboutsummaryrefslogtreecommitdiff
path: root/cmd/bdinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/bdinfo.c')
-rw-r--r--cmd/bdinfo.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 65c64786c0f..41d396a170a 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -331,25 +331,7 @@ static int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc,
#elif defined(CONFIG_X86)
-int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
- bd_t *bd = gd->bd;
-
- print_bi_boot_params(bd);
-
- print_bi_dram(bd);
-
- print_num("relocaddr", gd->relocaddr);
- print_num("reloc off", gd->reloc_off);
-#if defined(CONFIG_CMD_NET)
- print_eth_ip_addr();
- print_mhz("ethspeed", bd->bi_ethspeed);
-#endif
- print_baudrate();
- print_cpu_word_size();
-
- return 0;
-}
+#define USE_GENERIC
#elif defined(CONFIG_SANDBOX)
@@ -428,6 +410,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
#ifdef USE_GENERIC
int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
+ print_bi_dram(gd->bd);
print_std_bdinfo(gd->bd);
print_num("relocaddr", gd->relocaddr);
print_num("reloc off", gd->reloc_off);