diff mbox series

board: gateworks: gw_ventana: fix mmc env dev

Message ID 20220928210035.1078106-1-tharvey@gateworks.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show
Series board: gateworks: gw_ventana: fix mmc env dev | expand

Commit Message

Tim Harvey Sept. 28, 2022, 9 p.m. UTC
Fix the MMC env device for boards with eMMC by adding a
board_mmc_get_env_dev override to return the boot device as the
MMC env device.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/gw_ventana/gw_ventana.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Stefano Babic Oct. 21, 2022, 11:41 a.m. UTC | #1
> Fix the MMC env device for boards with eMMC by adding a
> board_mmc_get_env_dev override to return the boot device as the
> MMC env device.
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 99f52b9953e2..68fcc0b1e4fb 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -1281,3 +1281,8 @@  int ft_board_setup(void *blob, struct bd_info *bd)
 	return 0;
 }
 #endif /* CONFIG_OF_BOARD_SETUP */
+
+int board_mmc_get_env_dev(int devno)
+{
+	return devno;
+}