]> git.sur5r.net Git - u-boot/commitdiff
usb: ehci: Add 64-bit controller support
authorVincent Palatin <vpalatin@chromium.org>
Thu, 13 Dec 2012 01:55:22 +0000 (17:55 -0800)
committerMarek Vasut <marex@denx.de>
Sat, 16 Mar 2013 20:12:01 +0000 (21:12 +0100)
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 <vpalatin@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci-hcd.c

index 7f98a6354ac4227515cb412f8ed5abde3ed63cdb..20309adfb075d244fd077e83085b0112b79131cc 100644 (file)
@@ -870,6 +870,9 @@ int usb_lowlevel_init(int index, void **controller)
        if (ehci_hcd_init(index, &ehcic[index].hccr, &ehcic[index].hcor))
                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);
 
        qh_list = &ehcic[index].qh_list;