diff mbox

[U-Boot,v2] ARM: tegra: fix colibri_t20 asix reset

Message ID 1427332627-13355-1-git-send-email-marcel@ziswiler.com
State Accepted
Delegated to: Tom Warren
Headers show

Commit Message

Marcel Ziswiler March 26, 2015, 1:17 a.m. UTC
Fix ASIX USB to Ethernet chip reset.

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
---
Changes in v2:
- added my previously missing signed-off-by

 board/toradex/colibri_t20/colibri_t20.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Stephen Warren March 26, 2015, 2:15 p.m. UTC | #1
On 03/25/2015 07:17 PM, Marcel Ziswiler wrote:
> Fix ASIX USB to Ethernet chip reset.

Acked-by: Stephen Warren <swarren@nvidia.com>
diff mbox

Patch

diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index 4656094..5d8bdec 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