]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
imx: ventana: add usb_pcisel hwconfig support
authorTim Harvey <tharvey@gateworks.com>
Wed, 8 Apr 2015 19:54:35 +0000 (12:54 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:42:48 +0000 (14:42 +0200)
The GW52xx has a MUX that can direct front-panel USB OTG to one of the
miniPCIe sockets (for use with a cellular modem for example). Use hwconfig
to steer this.

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

index dac79d1384ebfe3cd540a5e297f930e1e010cb21..51925d1c79b44fc0492b87aa6dd2e85b6f90dcc6 100644 (file)
@@ -1111,7 +1111,9 @@ static void setup_board_gpio(int board)
 
        /* USBOTG Select (PCISKT or FrontPanel) */
        if (gpio_cfg[board].usb_sel)
-               gpio_direction_output(gpio_cfg[board].usb_sel, 0);
+               gpio_direction_output(gpio_cfg[board].usb_sel,
+                                     (hwconfig("usb_pcisel")) ? 1 : 0);
+
 
        /* PCISKT_WDIS# (Wireless disable GPIO to miniPCIe sockets) */
        if (gpio_cfg[board].wdis)