summaryrefslogtreecommitdiff
path: root/common/cmd_bdinfo.c
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2010-07-22 16:05:32 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2010-08-30 17:02:49 +0900
commitebd0d062acdf4dcd26ee0e6a47e16032e1eba75b (patch)
treebe72862be698134a50af50de65d1068252b7c76a /common/cmd_bdinfo.c
parent72d5cdb71ac53e60d8fb15fb50247b30edbbdc05 (diff)
downloadu-boot-imx-ebd0d062acdf4dcd26ee0e6a47e16032e1eba75b.zip
u-boot-imx-ebd0d062acdf4dcd26ee0e6a47e16032e1eba75b.tar.gz
u-boot-imx-ebd0d062acdf4dcd26ee0e6a47e16032e1eba75b.tar.bz2
sh: Add support do_bdinfo function
SH did not support do_bdinfo fuction. This code based avr32 stuff. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'common/cmd_bdinfo.c')
-rw-r--r--common/cmd_bdinfo.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index fbe73f1..d43867f 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -348,6 +348,25 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 0;
}
+#elif defined(CONFIG_SH)
+
+int do_bdinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+ bd_t *bd = gd->bd;
+ print_num ("mem start ", (ulong)bd->bi_memstart);
+ print_lnum ("mem size ", (u64)bd->bi_memsize);
+ print_num ("flash start ", (ulong)bd->bi_flashstart);
+ print_num ("flash size ", (ulong)bd->bi_flashsize);
+ print_num ("flash offset ", (ulong)bd->bi_flashoffset);
+
+#if defined(CONFIG_CMD_NET)
+ print_eth(0);
+ printf ("ip_addr = %pI4\n", &bd->bi_ip_addr);
+#endif
+ printf ("baudrate = %ld bps\n", (ulong)bd->bi_baudrate);
+ return 0;
+}
+
#else
#error "a case for this architecture does not exist!"
#endif