summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-06 01:31:20 -0700
committerSimon Glass <sjg@chromium.org>2015-08-14 03:24:20 -0600
commit715f599f8a0f8a0e60ee483f55eb207ade34ad49 (patch)
tree9f19b5dbf46b406bc65ce11d63192879ede1cb25 /common
parentbbc1b99e8b8a1b87c2d0d959a1fcd1990abe82dd (diff)
downloadu-boot-imx-715f599f8a0f8a0e60ee483f55eb207ade34ad49.zip
u-boot-imx-715f599f8a0f8a0e60ee483f55eb207ade34ad49.tar.gz
u-boot-imx-715f599f8a0f8a0e60ee483f55eb207ade34ad49.tar.bz2
common: Display >=4GiB memory bank size
bd->bi_dram[] has both start address and size defined as 32-bit, which is not the case on some platforms where >=4GiB memory bank is used. Change them to support such memory banks. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index c7cc67c..8cca4de 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -206,7 +206,8 @@ static int show_dram_config(void)
debug("\nRAM Configuration:\n");
for (i = size = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
size += gd->bd->bi_dram[i].size;
- debug("Bank #%d: %08lx ", i, gd->bd->bi_dram[i].start);
+ debug("Bank #%d: %llx ", i,
+ (unsigned long long)(gd->bd->bi_dram[i].start));
#ifdef DEBUG
print_size(gd->bd->bi_dram[i].size, "\n");
#endif