aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk2010-09-07 21:49:47 +0200
committerWolfgang Denk2010-09-07 21:49:47 +0200
commit1b43b5d7a637b3da97304724c9a7ddfd0d9c0f76 (patch)
tree4612968e971212af3ed5bcbc3b35b46c62b9db1f /common
parent6050c754b0f06c7b2c867cb9fd279498bc89c393 (diff)
parent3594f1987cca0cb0ea3ad64c6364389950ff3d48 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-sh
Diffstat (limited to 'common')
-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 fbe73f1b3d2..d43867f10bc 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