diff options
author | Ley Foon Tan <ley.foon.tan@intel.com> | 2019-03-22 01:24:00 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-04-17 22:20:17 +0200 |
commit | b6f7ee5d1f980ffa63e22749e2deae6caa57227e (patch) | |
tree | be6a1701360ae56a7e85ae9a3d0aac194ac45101 /arch/arm/mach-socfpga/spl_s10.c | |
parent | c5de2b7eae68ac27da78c32cdf0845126a0d1a77 (diff) |
ddr: altera: stratix10: Move SDRAM size check to SDRAM driver
Move SDRAM size check to SDRAM driver. sdram_calculate_size()
is called in SDRAM initialization already, avoid calling
twice in size check function.
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/arm/mach-socfpga/spl_s10.c')
-rw-r--r-- | arch/arm/mach-socfpga/spl_s10.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c index a3db20a819..a141ffe82a 100644 --- a/arch/arm/mach-socfpga/spl_s10.c +++ b/arch/arm/mach-socfpga/spl_s10.c @@ -181,17 +181,6 @@ void board_init_f(ulong dummy) hang(); } - gd->ram_size = sdram_calculate_size(); - printf("DDR: %d MiB\n", (int)(gd->ram_size >> 20)); - - /* Sanity check ensure correct SDRAM size specified */ - debug("DDR: Running SDRAM size sanity check\n"); - if (get_ram_size(0, gd->ram_size) != gd->ram_size) { - puts("DDR: SDRAM size check failed!\n"); - hang(); - } - debug("DDR: SDRAM size check passed!\n"); - mbox_init(); #ifdef CONFIG_CADENCE_QSPI |