summaryrefslogtreecommitdiff
path: root/board/toradex/colibri_t20/colibri_t20.c
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel@ziswiler.com>2015-03-26 02:17:07 +0100
committerTom Warren <twarren@nvidia.com>2015-03-30 10:04:43 -0700
commit00a5270bd843f436d2c60d2a8512a302061596f5 (patch)
tree549a1c07708d7d4a4e9116568e78fbab75f2fbd4 /board/toradex/colibri_t20/colibri_t20.c
parent1ed056e84db0ea5c4365a5e0a79dd94ff1bc4b0b (diff)
ARM: tegra: fix colibri_t20 asix reset
Fix ASIX USB to Ethernet chip reset. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/toradex/colibri_t20/colibri_t20.c')
-rw-r--r--board/toradex/colibri_t20/colibri_t20.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index 46560948a6..5d8bdecb8e 100644
--- a/board/toradex/colibri_t20/colibri_t20.c
+++ b/board/toradex/colibri_t20/colibri_t20.c
@@ -46,7 +46,14 @@ void pin_mux_usb(void)
/* VBus GPIO */
pinmux_tristate_disable(PMUX_PINGRP_DTE);
- /* USB 1 aka Tegra USB port 3 VBus */
+ /* Reset ASIX using LAN_RESET */
+ gpio_request(GPIO_PV4, "LAN_RESET");
+ gpio_direction_output(GPIO_PV4, 0);
+ pinmux_tristate_disable(PMUX_PINGRP_GPV);
+ udelay(5);
+ gpio_set_value(GPIO_PV4, 1);
+
+ /* USBH_PEN: USB 1 aka Tegra USB port 3 VBus */
pinmux_tristate_disable(PMUX_PINGRP_SPIG);
}
#endif