From: Peng Fan <[email protected]>

Enable the SD/MMC port auto detect.
The mmc relevant env can be reset when auto detect is enabled.

Signed-off-by: Peng Fan <[email protected]>
---
 board/freescale/imx8ulp_evk/imx8ulp_evk.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/board/freescale/imx8ulp_evk/imx8ulp_evk.c 
b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
index 1bd308148f3..5ca72e171ce 100644
--- a/board/freescale/imx8ulp_evk/imx8ulp_evk.c
+++ b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
@@ -129,6 +129,9 @@ 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;
 }
 
-- 
2.35.1

Reply via email to