Commit 297b653b authored by Marek Vasut's avatar Marek Vasut

ARM: socfpga: Pull DRAM size from DT

Pull the DRAM size from DT instead of hardcoding it into U-Boot.
Signed-off-by: Marek Vasut's avatarMarek Vasut <>
Cc: Chin Liang See <>
Cc: Dinh Nguyen <>
parent 07252f6f
......@@ -40,7 +40,9 @@ struct bsel bsel_str[] = {
int dram_init(void)
gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
if (fdtdec_setup_memory_size() != 0)
return -EINVAL;
return 0;
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