summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-03-17 16:23:46 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 17:24:36 +0800
commit6c2fe5b60692e7d0e86383c44792e5f2938bfa14 (patch)
treeaf543d36ade21fcef89eb89355b149a278f2dd2c /board
parent0b4965271702d6a40047bd0c9b419dd007c03f35 (diff)
downloadu-boot-imx-6c2fe5b60692e7d0e86383c44792e5f2938bfa14.zip
u-boot-imx-6c2fe5b60692e7d0e86383c44792e5f2938bfa14.tar.gz
u-boot-imx-6c2fe5b60692e7d0e86383c44792e5f2938bfa14.tar.bz2
MLK-14445-8 mx7ulp_evk: Add dynamical MMC device detection
Add board_late_mmc_env_init to support MMC device detection for environment variables. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mx7ulp_evk/mx7ulp_evk.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
index 4fd4e6d..eea41fb 100644
--- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
+++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
@@ -190,3 +190,17 @@ int board_init(void)
return 0;
}
+
+int board_mmc_get_env_dev(int devno)
+{
+ return devno;
+}
+
+int board_late_init(void)
+{
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
+ return 0;
+}