MX31: add delay between USB port setup and reset
authorStefano Babic <sbabic@denx.de>
Mon, 18 Oct 2010 08:23:05 +0000 (10:23 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 18 Oct 2010 13:21:36 +0000 (15:21 +0200)
Sometimes a usb tree is not popolated after a system reset.
It seems a delay is required after setting the USB ports
for the MX.31 before resetting the ehci controller.

Signed-off-by: Stefano Babic <sbabic@denx.de>
drivers/usb/host/ehci-mxc.c

index af8ee90..8d7b380 100644 (file)
@@ -117,6 +117,8 @@ int ehci_hcd_init(void)
 
        mxc_set_usbcontrol(CONFIG_MXC_USB_PORT, CONFIG_MXC_USB_FLAGS);
 
+       udelay(10000);
+
        return 0;
 }