All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Gallagher <greg@embeddedgreg.com>
To: u-boot@lists.denx.de
Subject: [PATCH 3/3] ARM: at91: spl: add spl_early_init for sama52d platforms
Date: Thu, 21 Jan 2021 11:55:36 -0500	[thread overview]
Message-ID: <20210121165537.1752664-3-greg@embeddedgreg.com> (raw)
In-Reply-To: <20210121165537.1752664-1-greg@embeddedgreg.com>

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

  parent reply	other threads:[~2021-01-21 16:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-21 16:55 [PATCH 1/3] board: Atmel: Add SAMA5D27 giant board Greg Gallagher
2021-01-21 16:55 ` [PATCH 2/3] configs: sama5d27_som1_ek: Set FDT filename based on defconfig Greg Gallagher
2021-01-21 16:55 ` Greg Gallagher [this message]
2021-01-25 18:32 ` [PATCH 1/3] board: Atmel: Add SAMA5D27 giant board Eugen.Hristev at microchip.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210121165537.1752664-3-greg@embeddedgreg.com \
    --to=greg@embeddedgreg.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.