aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2018-01-24 14:44:49 +0530
committerTom Rini <trini@konsulko.com>2018-01-28 12:27:33 -0500
commitb442e16b876f92af82768d6ec86fe71ecea01166 (patch)
tree0e56751de31a11598ad0885dd4cb48556bd69c83 /arch
parent85ab0452fefc8c48b0b4f35200cb2590b4693ab3 (diff)
downloadu-boot-b442e16b876f92af82768d6ec86fe71ecea01166.zip
u-boot-b442e16b876f92af82768d6ec86fe71ecea01166.tar.gz
u-boot-b442e16b876f92af82768d6ec86fe71ecea01166.tar.bz2
am33xx: board: Call spl_early_init() to support sdram_init()
With driver model enabled in SPL, sdram_init() requires device tree and malloc to be initialized. Therefore call spl_early_init() in early_system_init(). Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/am33xx/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c
index ae86b69..ea0caba 100644
--- a/arch/arm/mach-omap2/am33xx/board.c
+++ b/arch/arm/mach-omap2/am33xx/board.c
@@ -353,6 +353,9 @@ void early_system_init(void)
#ifdef CONFIG_TI_I2C_BOARD_DETECT
do_board_detect();
#endif
+#ifdef CONFIG_SPL_BUILD
+ spl_early_init();
+#endif
#if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC)
/* Enable RTC32K clock */
rtc32k_enable();