mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user