imx: imx8ulp: Adjust handshake to sync TRDC and XRDC completion
[platform/kernel/u-boot.git] / board / freescale / imx8ulp_evk / imx8ulp_evk.c
index 1502e4d..b58f143 100644 (file)
@@ -101,10 +101,12 @@ void mipi_dsi_panel_backlight(void)
 
 int board_init(void)
 {
+
        if (IS_ENABLED(CONFIG_FEC_MXC))
                setup_fec();
 
-       if (IS_ENABLED(CONFIG_DM_VIDEO)) {
+       /* When sync with M33 is failed, use local driver to set for video */
+       if (!is_m33_handshake_necessary() && IS_ENABLED(CONFIG_VIDEO)) {
                mipi_dsi_mux_panel();
                mipi_dsi_panel_backlight();
        }
@@ -119,5 +121,8 @@ int board_early_init_f(void)
 
 int board_late_init(void)
 {
+#if CONFIG_IS_ENABLED(ENV_IS_IN_MMC)
+       board_late_mmc_env_init();
+#endif
        return 0;
 }