aboutsummaryrefslogtreecommitdiff
path: root/cmd/bdinfo.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-10 14:16:29 -0600
committerTom Rini <trini@konsulko.com>2020-06-25 13:24:11 -0400
commitdf529b5a77876481725642bf4aa83869ffc7f492 (patch)
tree762ca403bc75ea10a0dfd943f89991affc0c8c6f /cmd/bdinfo.c
parent1af9756db8f04ea5c3243929a157058d32e293bf (diff)
downloadu-boot-df529b5a77876481725642bf4aa83869ffc7f492.zip
u-boot-df529b5a77876481725642bf4aa83869ffc7f492.tar.gz
u-boot-df529b5a77876481725642bf4aa83869ffc7f492.tar.bz2
bdinfo: mips: Use the generic bd command
MIPS currently has a few extra things which are generally useful. Add them to the generic function and move MIPS over to use it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'cmd/bdinfo.c')
-rw-r--r--cmd/bdinfo.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 83fea50..761bcc1 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -301,15 +301,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
#elif defined(CONFIG_MIPS)
-int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
- print_std_bdinfo(gd->bd);
- print_num("relocaddr", gd->relocaddr);
- print_num("reloc off", gd->reloc_off);
- print_cpu_word_size();
-
- return 0;
-}
+#define USE_GENERIC
#elif defined(CONFIG_ARM)
@@ -487,6 +479,9 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
print_std_bdinfo(gd->bd);
+ print_num("relocaddr", gd->relocaddr);
+ print_num("reloc off", gd->reloc_off);
+ print_cpu_word_size();
return 0;
}