diff mbox series

[V2,4/5] imx8mp_evk: spl: no need the code since spl framework could do that

Message ID 20200512093901.14831-5-peng.fan@nxp.com
State Accepted
Commit 0ec9d5bda93e0203405ffff134ce7b2d7fbda6aa
Headers show
Series imx8mp: evk: fix boot and update | expand

Commit Message

Peng Fan May 12, 2020, 9:39 a.m. UTC
We no need invoke the code, since spl framework could help
us do that.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 board/freescale/imx8mp_evk/spl.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c
index 284d477514..92763be10e 100644
--- a/board/freescale/imx8mp_evk/spl.c
+++ b/board/freescale/imx8mp_evk/spl.c
@@ -100,6 +100,7 @@  int board_fit_config_name_match(const char *name)
 }
 #endif
 
+/* Do not use BSS area in this phase */
 void board_init_f(ulong dummy)
 {
 	int ret;
@@ -118,9 +119,6 @@  void board_init_f(ulong dummy)
 
 	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);
@@ -129,6 +127,4 @@  void board_init_f(ulong dummy)
 
 	/* DDR initialization */
 	spl_dram_init();
-
-	board_init_r(NULL, 0);
 }