]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ventana: ignore EEPROM config when checking for NAND support
authorTim Harvey <tharvey@gateworks.com>
Sat, 24 Jul 2021 17:40:31 +0000 (10:40 -0700)
committerStefano Babic <sbabic@denx.de>
Mon, 9 Aug 2021 12:46:50 +0000 (14:46 +0200)
EEPROM bits no longer indicate support for NAND so instead use
hard-coded value from board config struct.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c

index 912075db8847fa671da55abc13e8ab393b0ee024..e2dd6dcb8316dcd3e1e8f89b33ec1ef0350d7e78 100644 (file)
@@ -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));