mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-13 14:53:28 +08: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:
parent
5f24d0cb9c
commit
e89d211f30
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user