diff options
author | Macpaul Lin <macpaul@andestech.com> | 2011-10-20 00:41:09 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-22 02:54:06 +0400 |
commit | 64d614617f3b74d360717edbf2960cfd84594cf1 (patch) | |
tree | f1836bc4835c90ede2b35a20c55e7d03cf6aa17f /common/cmd_bdinfo.c | |
parent | 72c73ddec3d50776fda2fcd92854f0d9fc9d4a33 (diff) | |
download | u-boot-64d614617f3b74d360717edbf2960cfd84594cf1.tar.xz |
nds32: common bdinfo, bootm, image support
Add support of NDS32 to common commands bdinfo, bootm, and image format.
Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'common/cmd_bdinfo.c')
-rw-r--r-- | common/cmd_bdinfo.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index e84948959a..688b2382a7 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -435,6 +435,31 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return 0; } +#elif defined(CONFIG_NDS32) + +int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +{ + int i; + bd_t *bd = gd->bd; + + print_num("arch_number", bd->bi_arch_number); + print_num("boot_params", (ulong)bd->bi_boot_params); + + for (i = 0; i < CONFIG_NR_DRAM_BANKS; ++i) { + print_num("DRAM bank", i); + print_num("-> start", bd->bi_dram[i].start); + print_num("-> size", bd->bi_dram[i].size); + } + +#if defined(CONFIG_CMD_NET) + print_eth(0); + printf("ip_addr = %pI4\n", &bd->bi_ip_addr); +#endif + printf("baudrate = %d bps\n", bd->bi_baudrate); + + return 0; +} + #else #error "a case for this architecture does not exist!" #endif |