]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/usb_ehci_fsl.c
[PATCH] This patch add varius fix to the ehci.
[karo-tx-uboot.git] / drivers / usb / usb_ehci_fsl.c
index 9ca6c562a72125670b563ed3adf3f1640a4c9614..81d5d21657a5296438a1720c28974d995d4f0ff8 100644 (file)
@@ -43,7 +43,8 @@ int ehci_hcd_init(void)
 
        addr = (uint32_t)&(im->usb[0]);
        hccr = (struct ehci_hccr *)(addr + FSL_SKIP_PCI);
-       hcor = (struct ehci_hcor *)((uint32_t) hccr + hccr->cr_caplength);
+       hcor = (struct ehci_hcor *)((uint32_t) hccr +
+                       HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
 
        /* Configure clock */
        clrsetbits_be32(&(im->clk.sccr), MPC83XX_SCCR_USB_MASK,