[RESEND PATCH 01/16] imx: ventana: ignore EEPROM config when checking for NAND support

Tim Harvey tharvey at gateworks.com
Sat Jul 24 19:40:31 CEST 2021


EEPROM bits no longer indicate support for NAND so instead use
hard-coded value from board config struct.

Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
 board/gateworks/gw_ventana/gw_ventana.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 468fb093b7..dc3300f7b7 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -1017,7 +1017,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 		return 0;
 	}
 
-	if (test_bit(EECONFIG_NAND, info->config)) {
+	if (gpio_cfg[board_type].nand) {
 		/* Update partition nodes using info from mtdparts env var */
 		puts("   Updating MTD partitions...\n");
 		fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-- 
2.17.1



More information about the U-Boot mailing list