]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/usb_ehci_core.c
USB: Add config option to call ehci_hcd_init() again after EHCI reset
[karo-tx-uboot.git] / drivers / usb / usb_ehci_core.c
index 28962fa0267077dc74ac6bb07cb2c548f3138766..2f38f3388011fdec62c1acf37b50eb0bd94870be 100644 (file)
@@ -691,6 +691,11 @@ int usb_lowlevel_init(void)
        if (ehci_reset() != 0)
                return -1;
 
+#if defined(CONFIG_EHCI_HCD_INIT_AFTER_RESET)
+       if (ehci_hcd_init() != 0)
+               return -1;
+#endif
+
        /* Set head of reclaim list */
        memset(&qh_list, 0, sizeof(qh_list));
        qh_list.qh_link = cpu_to_hc32((uint32_t)&qh_list | QH_LINK_TYPE_QH);