From: Peng Fan <peng.fan@nxp.com>
Date: Wed, 6 Apr 2022 06:30:26 +0000 (+0800)
Subject: imx: imx8ulp_evk: Enable SD/MMC port auto detect
X-Git-Tag: v2025.01-rc5-pxa1908~1458^2~67
X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=1f7f0dd934fddcfb53a5a33e423cecb147a4eb85;p=u-boot.git

imx: imx8ulp_evk: Enable SD/MMC port auto detect

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

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---

diff --git a/board/freescale/imx8ulp_evk/imx8ulp_evk.c b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
index b61a4cfbe8..1fd338c7e1 100644
--- a/board/freescale/imx8ulp_evk/imx8ulp_evk.c
+++ b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
@@ -127,5 +127,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;
 }