summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-02-23 12:49:37 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:29 +0800
commitada56a50c577719f7004ecb3674940d445d927d2 (patch)
treee096527f1aa43da026e65806c6c240c8dcdd52c7 /board
parente8da4c40a875283230c83358438695c46ba0b0ed (diff)
downloadu-boot-imx-ada56a50c577719f7004ecb3674940d445d927d2.zip
u-boot-imx-ada56a50c577719f7004ecb3674940d445d927d2.tar.gz
u-boot-imx-ada56a50c577719f7004ecb3674940d445d927d2.tar.bz2
MLK-12434-5: mx6sxsabreauto: dynamic setting mmcdev and mmcroot
Dynamic setting mmcdev and mmcroot for mx6sxsabresd. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit ebb43ae292d43817202b71b25368516887f4686b)
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mx6sxsabreauto/mx6sxsabreauto.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
index e7ab810..4169401 100644
--- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
+++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014 Freescale Semiconductor, Inc.
+ * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
*
* Author: Ye Li <ye.li@nxp.com>
*
@@ -218,6 +218,20 @@ int board_early_init_f(void)
return 0;
}
+int board_mmc_get_env_dev(int devno)
+{
+ /*
+ * need subtract 2 to map to the mmc device id
+ * see the comments in board_mmc_init function
+ */
+ return devno - 2;
+}
+
+int mmc_map_to_kernel_blk(int devno)
+{
+ return devno + 2;
+}
+
#ifdef CONFIG_FSL_QSPI
#define QSPI_PAD_CTRL1 \
@@ -351,6 +365,10 @@ int board_late_init(void)
add_board_boot_modes(board_boot_modes);
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}