public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 3/5] imx8mp_evk: spl: use spl_early_init
Date: Tue, 26 May 2020 20:33:48 -0300	[thread overview]
Message-ID: <20200526233350.25190-3-festevam@gmail.com> (raw)
In-Reply-To: <20200526233350.25190-1-festevam@gmail.com>

From: Peng Fan <peng.fan@nxp.com>

Use spl_early_init to replace spl_init, spl_init will be invoked
in board_init_r, we only need use spl_early_init to setup malloc
and scan early dt.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
Changes since v2:
- None. Rebased against U-Boot master

 board/freescale/imx8mp_evk/spl.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c
index 3b3112077a..6fc3df5aee 100644
--- a/board/freescale/imx8mp_evk/spl.c
+++ b/board/freescale/imx8mp_evk/spl.c
@@ -118,17 +118,17 @@ void board_init_f(ulong dummy)
 
 	board_early_init_f();
 
-	preloader_console_init();
-
-	/* Clear the BSS. */
-	memset(__bss_start, 0, __bss_end - __bss_start);
-
-	ret = spl_init();
+	ret = spl_early_init();
 	if (ret) {
 		debug("spl_init() failed: %d\n", ret);
 		hang();
 	}
 
+	preloader_console_init();
+
+	/* Clear the BSS. */
+	memset(__bss_start, 0, __bss_end - __bss_start);
+
 	enable_tzc380();
 
 	setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
-- 
2.17.1

  parent reply	other threads:[~2020-05-26 23:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-26 23:33 [PATCH v3 1/5] imx8mp_evk: spl: drop useless code Fabio Estevam
2020-05-26 23:33 ` [PATCH v3 2/5] imx8mp_evk: spl: drop timer_init Fabio Estevam
2020-06-08 17:22   ` sbabic at denx.de
2020-05-26 23:33 ` Fabio Estevam [this message]
2020-06-08 17:22   ` [PATCH v3 3/5] imx8mp_evk: spl: use spl_early_init sbabic at denx.de
2020-05-26 23:33 ` [PATCH v3 4/5] imx8mp_evk: spl: no need the code since spl framework could do that Fabio Estevam
2020-06-08 17:22   ` sbabic at denx.de
2020-05-26 23:33 ` [PATCH v3 5/5] imx: imx8mp_evk: fix boot issue Fabio Estevam
2020-06-08 17:23   ` sbabic at denx.de
2020-06-04 12:09 ` [PATCH v3 1/5] imx8mp_evk: spl: drop useless code Fabio Estevam
2020-06-04 12:20   ` Stefano Babic
2020-06-08 17:22 ` sbabic at denx.de

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=20200526233350.25190-3-festevam@gmail.com \
    --to=festevam@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox