summaryrefslogtreecommitdiff
path: root/board/freescale/mx6sabresd/mx6sabresd.c
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-02-23 12:46:21 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:29 +0800
commit7810c81124f8816fa0a3540f87111786e977fc99 (patch)
tree7702c6866693b1d55c94304b7d2298802ff8df46 /board/freescale/mx6sabresd/mx6sabresd.c
parent5c0d6eee4fc68955b70b5be890ef6078f971a1b8 (diff)
downloadu-boot-imx-7810c81124f8816fa0a3540f87111786e977fc99.zip
u-boot-imx-7810c81124f8816fa0a3540f87111786e977fc99.tar.gz
u-boot-imx-7810c81124f8816fa0a3540f87111786e977fc99.tar.bz2
MLK-12434-3: mx6sabre: dynamic setting mmcdev and mmcroot
Dynamic setting mmcdev and mmcroot for mx6sabresd and mx6qsabreauto. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 14040e07549a394500c11e815f31299e4fb0ac50)
Diffstat (limited to 'board/freescale/mx6sabresd/mx6sabresd.c')
-rw-r--r--board/freescale/mx6sabresd/mx6sabresd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index d079fc4..9097426 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -318,6 +318,11 @@ int board_mmc_get_env_dev(int devno)
return devno - 1;
}
+int mmc_map_to_kernel_blk(int devno)
+{
+ return devno + 1;
+}
+
int board_mmc_getcd(struct mmc *mmc)
{
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
@@ -983,6 +988,10 @@ int board_late_init(void)
setenv("board_rev", "MX6DL");
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}