1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

imx: mmc_env: update runtime SD/MMC boot env device

When DM_MMC enabled, the USDHC index in U-Boot is the USDHC port.
To directly return devno, we could avoid add board specific code.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Peng Fan
2019-08-27 06:25:54 +00:00
committed by Stefano Babic
parent 5f24d0cb9c
commit e89d211f30

View File

@@ -11,6 +11,9 @@
__weak int board_mmc_get_env_dev(int devno)
{
if (CONFIG_IS_ENABLED(DM_MMC))
return devno;
return CONFIG_SYS_MMC_ENV_DEV;
}