diff options
author | Tim Harvey <tharvey@gateworks.com> | 2015-04-08 12:54:35 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-04-22 14:39:07 +0200 |
commit | a51de276d809a64b52a99de75d8d265201c5095a (patch) | |
tree | 21742c22fb6292de3d5f3a7b58f0f8899a630e7e /board | |
parent | 3ee26ecc72a67b2d79fbede1f3a5b4a99675e227 (diff) | |
download | u-boot-imx-a51de276d809a64b52a99de75d8d265201c5095a.zip u-boot-imx-a51de276d809a64b52a99de75d8d265201c5095a.tar.gz u-boot-imx-a51de276d809a64b52a99de75d8d265201c5095a.tar.bz2 |
imx: ventana: add usb_pcisel hwconfig support
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/gateworks/gw_ventana/gw_ventana.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index dac79d1..51925d1 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c +++ b/board/gateworks/gw_ventana/gw_ventana.c @@ -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) |