summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-07-03 15:41:17 +0800
committerJason Liu <jason.hui.liu@nxp.com>2017-11-03 02:36:59 +0800
commit43eb1a8346b80942224cc59b8cc14032471e31ce (patch)
tree52bf426ccaea58badf4d2de1c017294a14f9b114 /board
parent1eae8c24ace76b957c93a9c5b7bb027b9e894450 (diff)
MLK-15323-4: imx8m: evk: invoke board_late_mmc_env_init
Invoke board_late_mmc_init to support dynamically changing mmcroot. Add board_mmc_get_env_dev to read/save env into correct mmc/sd device. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/imx8mq_evk/imx8m_evk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/imx8mq_evk/imx8m_evk.c b/board/freescale/imx8mq_evk/imx8m_evk.c
index dbf04e067b..0e6bf05d5f 100644
--- a/board/freescale/imx8mq_evk/imx8m_evk.c
+++ b/board/freescale/imx8mq_evk/imx8m_evk.c
@@ -362,6 +362,11 @@ int board_init(void)
return 0;
}
+int board_mmc_get_env_dev(int devno)
+{
+ return devno;
+}
+
int board_late_init(void)
{
struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR;
@@ -370,6 +375,8 @@ int board_late_init(void)
set_wdog_reset(wdog);
+ board_late_mmc_env_init();
+
return 0;
}