From 86282798b0d115f6eca6828b4f0b3bfdf4752cc9 Mon Sep 17 00:00:00 2001 From: Lokesh Vutla Date: Tue, 18 Apr 2017 17:27:24 +0530 Subject: 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 Signed-off-by: Ravi Babu --- arch/arm/mach-omap2/hwinit-common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm/mach-omap2/hwinit-common.c') diff --git a/arch/arm/mach-omap2/hwinit-common.c b/arch/arm/mach-omap2/hwinit-common.c index f317293988..cac32748ec 100644 --- a/arch/arm/mach-omap2/hwinit-common.c +++ b/arch/arm/mach-omap2/hwinit-common.c @@ -171,6 +171,7 @@ void board_init_f(ulong dummy) #endif /* For regular u-boot sdram_init() is called from dram_init() */ sdram_init(); + gd->ram_size = omap_sdram_size(); } #endif -- cgit