From 1572eadfbc8e0ec7e6a4b80034eb4c30abe96739 Mon Sep 17 00:00:00 2001 From: Dan Murphy Date: Thu, 1 Aug 2013 14:06:02 -0500 Subject: [PATCH] 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 --- board/ti/omap5_uevm/evm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c index 97994b0819..47063309e5 100644 --- a/board/ti/omap5_uevm/evm.c +++ b/board/ti/omap5_uevm/evm.c @@ -16,6 +16,7 @@ #ifdef CONFIG_USB_EHCI #include +#include #include #include #include @@ -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 -- 2.25.1