diff options
author | Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> | 2011-11-18 19:21:34 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-01-13 21:16:52 +0100 |
commit | 2be9fdbfcc4d41e3a7f7d6b1b1b21a39ce5aa6e9 (patch) | |
tree | 83117b7797103e721f12f539640b92c069b0083c /common/cmd_bdinfo.c | |
parent | e0f1fd4c82129eab2c607763f3bdb376eda7dd84 (diff) | |
download | u-boot-imx-2be9fdbfcc4d41e3a7f7d6b1b1b21a39ce5aa6e9.zip u-boot-imx-2be9fdbfcc4d41e3a7f7d6b1b1b21a39ce5aa6e9.tar.gz u-boot-imx-2be9fdbfcc4d41e3a7f7d6b1b1b21a39ce5aa6e9.tar.bz2 |
openrisc: Add board info printout to cmd_bdinfo
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Diffstat (limited to 'common/cmd_bdinfo.c')
-rw-r--r-- | common/cmd_bdinfo.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 67cb0da..97f2945 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -475,6 +475,28 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return 0; } +#elif defined(CONFIG_OPENRISC) + +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", bd->bi_baudrate); + + return 0; +} + #else #error "a case for this architecture does not exist!" #endif |