Fill initial ram top with DDR base addr value from DT as not filling
it here always assumes it as zero while calculating relocation
offset and hence lead to failures in somecases. This will assumed
as zero if CONFIG_SYS_SDRAM_BASE is not defined.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
}
gd->ram_size = (phys_size_t)(res.end - res.start + 1);
+ gd->ram_top = (unsigned long)res.start;
debug("%s: Initial DRAM size %llx\n", __func__, (u64)gd->ram_size);
return 0;