]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ventana: leave PCI reset de-asserted if PCI enabled
authorTim Harvey <tharvey@gateworks.com>
Fri, 8 Aug 2014 05:35:51 +0000 (22:35 -0700)
committerStefano Babic <sbabic@denx.de>
Wed, 20 Aug 2014 11:04:12 +0000 (13:04 +0200)
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c

index 67a646c059026236abe44da257bbf17dcaac0ebb..2915b9057f6208f3ddb710bdd494e5317120a361 100644 (file)
@@ -995,12 +995,10 @@ static void setup_board_gpio(int board)
                gpio_direction_output(GP_MSATA_SEL, 0);
        }
 
-       /*
-        * assert PCI_RST# (released by OS when clock is valid)
-        * TODO: figure out why leaving this de-asserted from PCI scan on boot
-        *       causes linux pcie driver to hang during enumeration
-        */
+#if !defined(CONFIG_CMD_PCI)
+       /* assert PCI_RST# (released by OS when clock is valid) */
        gpio_direction_output(gpio_cfg[board].pcie_rst, 0);
+#endif
 
        /* turn off (active-high) user LED's */
        for (i = 0; i < 4; i++) {