summaryrefslogtreecommitdiff
path: root/drivers/usb/usb_ehci_fsl.c
diff options
context:
space:
mode:
authormichael <michael@panicking.retis>2008-12-11 13:43:55 +0100
committerRemy Bohmer <linux@bohmer.net>2009-01-28 19:57:28 +0100
commit51ab142b8b546d5e627b2c8c36d0adae222565f7 (patch)
tree1d6207072cfa48edcb17b1136a870d41ac5fdd17 /drivers/usb/usb_ehci_fsl.c
parentdb63299b1dd2894ade542278210bccd046de6435 (diff)
downloadu-boot-imx-51ab142b8b546d5e627b2c8c36d0adae222565f7.zip
u-boot-imx-51ab142b8b546d5e627b2c8c36d0adae222565f7.tar.gz
u-boot-imx-51ab142b8b546d5e627b2c8c36d0adae222565f7.tar.bz2
[PATCH] This patch add varius fix to the ehci.
- fix ehci_readl, ehci_writel - introduce new define in ehci.h - introduce the handshake function for waiting on a register - fix usb_ehci_fsl with the new HC_LENGTH macro Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it> Signed-off-by: Remy Böhmer <linux@bohmer.net>
Diffstat (limited to 'drivers/usb/usb_ehci_fsl.c')
-rw-r--r--drivers/usb/usb_ehci_fsl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/usb_ehci_fsl.c b/drivers/usb/usb_ehci_fsl.c
index 9ca6c56..81d5d21 100644
--- a/drivers/usb/usb_ehci_fsl.c
+++ b/drivers/usb/usb_ehci_fsl.c
@@ -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,