summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/am33xx
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2017-04-18 17:27:24 +0530
committerTom Rini <trini@konsulko.com>2017-05-11 22:03:41 -0400
commit86282798b0d115f6eca6828b4f0b3bfdf4752cc9 (patch)
treef173b73070c33fcbc4896af5479c7ccbf3fe8177 /arch/arm/mach-omap2/am33xx
parent15eb1d43bf470b85e9031c2fce7e0ce7b27dd321 (diff)
arch: arm: omap: Declare size of ddr very early
Declare the size of ddr very early in spl, so that this can be used to enable cache. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Ravi Babu <ravibabu@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/am33xx')
-rw-r--r--arch/arm/mach-omap2/am33xx/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c
index 2bfc8649d5..568f36f220 100644
--- a/arch/arm/mach-omap2/am33xx/board.c
+++ b/arch/arm/mach-omap2/am33xx/board.c
@@ -327,6 +327,10 @@ void board_init_f(ulong dummy)
early_system_init();
board_early_init_f();
sdram_init();
+ /* dram_init must store complete ramsize in gd->ram_size */
+ gd->ram_size = get_ram_size(
+ (void *)CONFIG_SYS_SDRAM_BASE,
+ CONFIG_MAX_RAM_BANK_SIZE);
}
#endif