/* This function is called before dram_init_banksize(), so we can't simply return gd->bd->bi_dram.start + gd->bd->bi_dram.size.  */
ulong board_get_usable_ram_top(ulong total_size)
/* This function is called before dram_init_banksize(), so we can't simply return gd->bd->bi_dram.start + gd->bd->bi_dram.size.  */
ulong board_get_usable_ram_top(ulong total_size)
{
	ulong ram_top;
	ram_top = cboot_get_usable_ram_top(total_size);
	if (ram_top > 0)
		return ram_top;
	return CONFIG_SYS_SDRAM_BASE + usable_ram_size_below_4g();
}