]> git.sur5r.net Git - u-boot/commitdiff
ehci-pci: print hccr, hcor and hc_lenght
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 15 Oct 2010 13:53:45 +0000 (15:53 +0200)
committerRemy Bohmer <linux@bohmer.net>
Fri, 22 Oct 2010 19:41:45 +0000 (21:41 +0200)
It is useful to know the EHCI-PCI hccr, hcor and hc_lenght to make sure it was
successfully registered, and at the correct location.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/usb/host/ehci-pci.c

index 047902a0c1c62fed41a3ba1827b95248cf865eee..cff34389295c5d13ce12d8988bdad47ab8c64c0a 100644 (file)
@@ -53,6 +53,10 @@ int ehci_hcd_init(void)
        hcor = (struct ehci_hcor *)((uint32_t) hccr +
                        HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
 
+       debug("EHCI-PCI init hccr 0x%x and hcor 0x%x hc_length %d\n",
+                       (uint32_t)hccr, (uint32_t)hcor,
+                       (uint32_t)HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
+
        return 0;
 }