public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] am33xx: board: Call spl_early_init() to support sdram_init()
@ 2018-01-24  9:14 Faiz Abbas
  2018-01-24 11:06 ` Lokesh Vutla
  2018-01-28 18:54 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Faiz Abbas @ 2018-01-24  9:14 UTC (permalink / raw)
  To: u-boot

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>
---
 arch/arm/mach-omap2/am33xx/board.c | 3 +++
 1 file changed, 3 insertions(+)

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();
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] am33xx: board: Call spl_early_init() to support sdram_init()
  2018-01-24  9:14 [U-Boot] [PATCH] am33xx: board: Call spl_early_init() to support sdram_init() Faiz Abbas
@ 2018-01-24 11:06 ` Lokesh Vutla
  2018-01-28 18:54 ` [U-Boot] " Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Lokesh Vutla @ 2018-01-24 11:06 UTC (permalink / raw)
  To: u-boot



On Wednesday 24 January 2018 02:44 PM, Faiz Abbas wrote:
> 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>

Thanks and regards,
Lokesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] am33xx: board: Call spl_early_init() to support sdram_init()
  2018-01-24  9:14 [U-Boot] [PATCH] am33xx: board: Call spl_early_init() to support sdram_init() Faiz Abbas
  2018-01-24 11:06 ` Lokesh Vutla
@ 2018-01-28 18:54 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2018-01-28 18:54 UTC (permalink / raw)
  To: u-boot

On Wed, Jan 24, 2018 at 02:44:49PM +0530, Faiz Abbas wrote:

> 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>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/8f72ec19/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-28 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-24  9:14 [U-Boot] [PATCH] am33xx: board: Call spl_early_init() to support sdram_init() Faiz Abbas
2018-01-24 11:06 ` Lokesh Vutla
2018-01-28 18:54 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox