board: gateworks: gw_ventana: fix mmc env dev
authorTim Harvey <tharvey@gateworks.com>
Wed, 28 Sep 2022 21:00:35 +0000 (14:00 -0700)
committerStefano Babic <sbabic@denx.de>
Fri, 21 Oct 2022 09:54:13 +0000 (11:54 +0200)
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

index 99f52b9..68fcc0b 100644 (file)
@@ -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;
+}