diff options
author | Tom Rini <trini@konsulko.com> | 2016-08-16 07:58:41 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-16 07:58:41 -0400 |
commit | 793fd86f722f5c5e13290be2074816b001359b76 (patch) | |
tree | 2c9c222cf143745a81c1f38207ef69d8b1c847ce /cmd | |
parent | 177381a9f9e956353deaa56d86bec47e02995ff3 (diff) | |
parent | 27daffe7cec26ec1462245e4e15c36d19d886221 (diff) | |
download | u-boot-imx-793fd86f722f5c5e13290be2074816b001359b76.zip u-boot-imx-793fd86f722f5c5e13290be2074816b001359b76.tar.gz u-boot-imx-793fd86f722f5c5e13290be2074816b001359b76.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bdinfo.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index e0bd15d..ae3027a 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -98,9 +98,11 @@ static inline void print_bi_dram(const bd_t *bd) int i; 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 (bd->bi_dram[i].size) { + print_num("DRAM bank", i); + print_num("-> start", bd->bi_dram[i].start); + print_num("-> size", bd->bi_dram[i].size); + } } #endif } @@ -444,16 +446,6 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) bd_t *bd = gd->bd; print_bi_boot_params(bd); - print_num("bi_memstart", bd->bi_memstart); - print_num("bi_memsize", bd->bi_memsize); - print_num("bi_flashstart", bd->bi_flashstart); - print_num("bi_flashsize", bd->bi_flashsize); - print_num("bi_flashoffset", bd->bi_flashoffset); - print_num("bi_sramstart", bd->bi_sramstart); - print_num("bi_sramsize", bd->bi_sramsize); - print_num("bi_bootflags", bd->bi_bootflags); - print_mhz("cpufreq", bd->bi_intfreq); - print_mhz("busfreq", bd->bi_busfreq); print_bi_dram(bd); |