aboutsummaryrefslogtreecommitdiff
path: root/board/freescale/imx8ulp_evk/imx8ulp_evk.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/imx8ulp_evk/imx8ulp_evk.c')
-rw-r--r--board/freescale/imx8ulp_evk/imx8ulp_evk.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/board/freescale/imx8ulp_evk/imx8ulp_evk.c b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
index 5aad1074a8..dd04d5925a 100644
--- a/board/freescale/imx8ulp_evk/imx8ulp_evk.c
+++ b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
@@ -101,18 +101,12 @@ void mipi_dsi_panel_backlight(void)
int board_init(void)
{
- int sync = -ENODEV;
if (IS_ENABLED(CONFIG_FEC_MXC))
setup_fec();
- if (m33_image_booted()) {
- sync = m33_image_handshake(1000);
- printf("M33 Sync: %s\n", sync ? "Timeout" : "OK");
- }
-
/* When sync with M33 is failed, use local driver to set for video */
- if (sync != 0 && IS_ENABLED(CONFIG_VIDEO)) {
+ if (!is_m33_handshake_necessary() && IS_ENABLED(CONFIG_VIDEO)) {
mipi_dsi_mux_panel();
mipi_dsi_panel_backlight();
}
@@ -127,8 +121,16 @@ int board_early_init_f(void)
int board_late_init(void)
{
+ ulong addr;
+
#if CONFIG_IS_ENABLED(ENV_IS_IN_MMC)
board_late_mmc_env_init();
#endif
+
+ /* clear fdtaddr to avoid obsolete data */
+ addr = env_get_hex("fdt_addr_r", 0);
+ if (addr)
+ memset((void *)addr, 0, 0x400);
+
return 0;
}