summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2013-08-01 14:06:02 -0500
committerMarek Vasut <marex@denx.de>2013-08-26 21:56:34 +0200
commit1572eadfbc8e0ec7e6a4b80034eb4c30abe96739 (patch)
treefd7231f1ce6bef8ee186962967887f79fbd459a6
parent3615a996ab91b5cdf8d89359150aff3d754db8d8 (diff)
downloadu-boot-imx-1572eadfbc8e0ec7e6a4b80034eb4c30abe96739.zip
u-boot-imx-1572eadfbc8e0ec7e6a4b80034eb4c30abe96739.tar.gz
u-boot-imx-1572eadfbc8e0ec7e6a4b80034eb4c30abe96739.tar.bz2
ARM: OMAP5-uevm: Add usb device reset API
Add the call back to reset the LAN9730 after the FEAT_POWER has been called. Signed-off-by: Dan Murphy <dmurphy@ti.com>
-rw-r--r--board/ti/omap5_uevm/evm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c
index 97994b0..4706330 100644
--- a/board/ti/omap5_uevm/evm.c
+++ b/board/ti/omap5_uevm/evm.c
@@ -16,6 +16,7 @@
#ifdef CONFIG_USB_EHCI
#include <usb.h>
+#include <asm/gpio.h>
#include <asm/arch/clock.h>
#include <asm/arch/ehci.h>
#include <asm/ehci-omap.h>
@@ -191,4 +192,14 @@ int ehci_hcd_stop(void)
ret = omap_ehci_hcd_stop();
return ret;
}
+
+void usb_hub_reset_devices(int port)
+{
+ /* The LAN9730 needs to be reset after the port power has been set. */
+ if (port == 3) {
+ gpio_direction_output(CONFIG_OMAP_EHCI_PHY3_RESET_GPIO, 0);
+ udelay(10);
+ gpio_direction_output(CONFIG_OMAP_EHCI_PHY3_RESET_GPIO, 1);
+ }
+}
#endif