summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-10 14:16:32 -0600
committerTom Rini <trini@konsulko.com>2020-06-25 13:24:11 -0400
commitf41b830f24095a2d4aebd6e559d2153f0ccc07b1 (patch)
treed0b73d8bba2809d33fafd138a4d4d54a28d5d7f0 /cmd
parent271db508cc9c6490f6aee2da2f8707c52738c738 (diff)
downloadu-boot-f41b830f24095a2d4aebd6e559d2153f0ccc07b1.tar.gz
u-boot-f41b830f24095a2d4aebd6e559d2153f0ccc07b1.tar.xz
u-boot-f41b830f24095a2d4aebd6e559d2153f0ccc07b1.zip
bdinfo: sh: Use the generic bd command
This arch has no code that is not already in the generic function. Drop the arch-specific function and change sh over to use the generic one. 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.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 16e7ad0fa5..65c64786c0 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -327,18 +327,7 @@ static int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc,
#elif defined(CONFIG_SH)
-int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
- bd_t *bd = gd->bd;
-
- print_bi_mem(bd);
- print_bi_flash(bd);
- print_eth_ip_addr();
- print_baudrate();
- print_cpu_word_size();
-
- return 0;
-}
+#define USE_GENERIC
#elif defined(CONFIG_X86)