public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: at91: spl: add spl_early_init for sama52d platforms
@ 2021-01-11  7:10 Greg Gallagher
  2021-01-11  7:10 ` [PATCH 2/2] board: atmel: Add SAMA5D27 giant board Greg Gallagher
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Gallagher @ 2021-01-11  7:10 UTC (permalink / raw)
  To: u-boot

The dm root node is needed early in the spl to allow the timer to be
used.  This change calls spl_early_init to initialize the dm root node.

Signed-off-by: Greg Gallagher <greg@embeddedgreg.com>
---

 arch/arm/mach-at91/spl_atmel.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c
index 23588e79f9..217ed12e31 100644
--- a/arch/arm/mach-at91/spl_atmel.c
+++ b/arch/arm/mach-at91/spl_atmel.c
@@ -103,6 +103,13 @@ void board_init_f(ulong dummy)
 {
 	int ret;
 
+	if (IS_ENABLED(CONFIG_OF_CONTROL)) {
+		ret = spl_early_init();
+		if (ret) {
+			debug("spl_early_init() failed: %d\n", ret);
+			hang();
+		}
+	}
 	switch_to_main_crystal_osc();
 
 #ifdef CONFIG_SAMA5D2
-- 
2.25.1

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

end of thread, other threads:[~2021-01-15 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-11  7:10 [PATCH 1/2] ARM: at91: spl: add spl_early_init for sama52d platforms Greg Gallagher
2021-01-11  7:10 ` [PATCH 2/2] board: atmel: Add SAMA5D27 giant board Greg Gallagher
2021-01-15  7:55   ` Eugen.Hristev at microchip.com
2021-01-15 14:29     ` Greg Gallagher

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