summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-08-27 06:25:54 +0000
committerStefano Babic <sbabic@denx.de>2019-10-08 16:36:36 +0200
commite89d211f30277e8d1600ed00b5c9244d8f891aaf (patch)
treec95ced741589a6fc3b8d783e17a62747d83efcbc /arch/arm
parent5f24d0cb9c690b32068c9903cd1bc4e78e044865 (diff)
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-imx/mmc_env.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mmc_env.c b/arch/arm/mach-imx/mmc_env.c
index 9c822f721c..addb50f538 100644
--- a/arch/arm/mach-imx/mmc_env.c
+++ b/arch/arm/mach-imx/mmc_env.c
@@ -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;
}