public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] board: gateworks: gw_ventana: fix mmc env dev
@ 2022-09-28 21:00 Tim Harvey
  2022-10-21 11:41 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Harvey @ 2022-09-28 21:00 UTC (permalink / raw)
  To: u-boot, Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team; +Cc: Tim Harvey

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(+)

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;
+}
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-21 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-28 21:00 [PATCH] board: gateworks: gw_ventana: fix mmc env dev Tim Harvey
2022-10-21 11:41 ` sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox