]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: OMAP5-uevm: Add usb device reset API
authorDan Murphy <dmurphy@ti.com>
Thu, 1 Aug 2013 19:06:02 +0000 (14:06 -0500)
committerMarek Vasut <marex@denx.de>
Mon, 26 Aug 2013 19:56:34 +0000 (21:56 +0200)
Add the call back to reset the LAN9730 after
the FEAT_POWER has been called.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
board/ti/omap5_uevm/evm.c

index 97994b08194ed2b8a5b59540993b234dbdca3377..47063309e5698020864e641d4bf1b6eeb071e4b3 100644 (file)
@@ -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