diff mbox series

[V2,2/3] imx: imx8mn_evk: add board_mmc_get_env_dev

Message ID 20200108013030.6067-2-peng.fan@nxp.com
State Accepted
Commit 213daa3a5727f5d3d011ed6b420b8bfbb5704d43
Headers show
Series [V2,1/3] imx8mn: evk: add README | expand

Commit Message

Peng Fan Jan. 8, 2020, 1:10 a.m. UTC
Add board_mmc_get_env_dev, otherwise,
Loading Environment from MMC...
MMC Device 0 not found
*** Warning - No MMC card found, using default environment

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---

V2:
 None

 board/freescale/imx8mn_evk/imx8mn_evk.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Fabio Estevam Jan. 8, 2020, 1:18 a.m. UTC | #1
On Tue, Jan 7, 2020 at 10:10 PM Peng Fan <peng.fan at nxp.com> wrote:
>
> Add board_mmc_get_env_dev, otherwise,
> Loading Environment from MMC...
> MMC Device 0 not found
> *** Warning - No MMC card found, using default environment
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>

Reviewed-by: Fabio Estevam <festevam at gmail.com>
diff mbox series

Patch

diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c
index b22a2a6bd1..4f33c0e7c9 100644
--- a/board/freescale/imx8mn_evk/imx8mn_evk.c
+++ b/board/freescale/imx8mn_evk/imx8mn_evk.c
@@ -19,6 +19,11 @@  int board_init(void)
 	return 0;
 }
 
+int board_mmc_get_env_dev(int devno)
+{
+	return devno;
+}
+
 int board_late_init(void)
 {
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG