aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan2020-05-26 20:33:48 -0300
committerStefano Babic2020-06-08 10:42:35 +0200
commitbdada3b14d554b029ec0406ca04cd54482c20d81 (patch)
tree61adbbe2dc8355f01aa37a0f96d53a99e83e28f5
parentebdd07f5b2e4b00eee7f8630b3b026a65c3f51c4 (diff)
imx8mp_evk: spl: use spl_early_init
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>
-rw-r--r--board/freescale/imx8mp_evk/spl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c
index f45f935b934..d4feb84d93e 100644
--- a/board/freescale/imx8mp_evk/spl.c
+++ b/board/freescale/imx8mp_evk/spl.c
@@ -114,17 +114,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);