nxp: imx8mp_evk: Add board_mmc_get_env_dev

When booting from eMMC, there is error log:
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... MMC: no card present

Add board_mmc_get_env_dev() to get the correct device number.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Peng Fan
2026-02-08 22:34:42 +08:00
committed by Fabio Estevam
parent c6c1b7a544
commit 7936aec48b

View File

@@ -28,6 +28,13 @@ struct efi_capsule_update_info update_info = {
};
#endif /* EFI_HAVE_CAPSULE_SUPPORT */
#if CONFIG_IS_ENABLED(ENV_IS_IN_MMC)
int board_mmc_get_env_dev(int devno)
{
return devno;
}
#endif
int board_late_init(void)
{
#if CONFIG_IS_ENABLED(ENV_IS_IN_MMC)