From: Vincent Palatin Date: Thu, 13 Dec 2012 01:55:22 +0000 (-0800) Subject: usb: ehci: Add 64-bit controller support X-Git-Tag: submit/tizen/20160318.071304~287 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a62b22810835c5e720a82724aad19c20f09efe3;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git usb: ehci: Add 64-bit controller support On EHCI controller with 64-bit address space support, we must initialize properly the high word for the PCI bus master accesses. Signed-off-by: Vincent Palatin Signed-off-by: Simon Glass --- diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 9cfacd78e..fdf873abc 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -862,6 +862,9 @@ int usb_lowlevel_init(int index, void **controller) if (ehci_hcd_init()) return -1; #endif + /* Set the high address word (aka segment) for 64-bit controller */ + if (ehci_readl(&ehcic[index].hccr->cr_hccparams) & 1) + ehci_writel(ehcic[index].hcor->or_ctrldssegment, 0); /* Set head of reclaim list */ memset(qh_list, 0, sizeof(*qh_list));