Commit ea11b401 authored by Andrew Bradford's avatar Andrew Bradford Committed by Tom Rini

meminfo cmd: Enable printing >=4GiB SDRAM sizes

gd->ram_size is stored as phys_size_t type which can be bigger than an
unsigned long on some architectures.  When using unsigned long type,
SDRAM of 4GiB or larger will not print the correct size, but using
phys_size_t will.
Signed-off-by: 's avatarAndrew Bradford <andrew.bradford@kodakalaris.com>
parent 3bc37b6d
......@@ -1325,7 +1325,7 @@ U_BOOT_CMD(
#endif
#ifdef CONFIG_CMD_MEMINFO
__weak void board_show_dram(ulong size)
__weak void board_show_dram(phys_size_t size)
{
puts("DRAM: ");
print_size(size, "\n");
......
......@@ -274,7 +274,7 @@ __weak int arch_reserve_stacks(void);
*
* @param size Size of DRAM (which should be displayed along with other info)
*/
void board_show_dram(ulong size);
void board_show_dram(phys_size_t size);
/**
* arch_fixup_fdt() - Write arch-specific information to fdt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment