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

2020-06-08 Thread sbabic
> From: Peng Fan 
> We no need invoke the code, since spl framework could help
> us do that.
> Signed-off-by: Peng Fan 
> Signed-off-by: Fabio Estevam 
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=


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

2020-05-26 Thread Fabio Estevam
From: Peng Fan 

We no need invoke the code, since spl framework could help
us do that.

Signed-off-by: Peng Fan 
Signed-off-by: Fabio Estevam 
---
Changes since v2:
- None. Rebased against U-Boot master

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

diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c
index 6fc3df5aee..f9aa0b0826 100644
--- a/board/freescale/imx8mp_evk/spl.c
+++ b/board/freescale/imx8mp_evk/spl.c
@@ -108,6 +108,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;
@@ -126,9 +127,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, _pad_info1);
@@ -137,6 +135,4 @@ void board_init_f(ulong dummy)
 
/* DDR initialization */
spl_dram_init();
-
-   board_init_r(NULL, 0);
 }
-- 
2.17.1