summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2010-10-15 15:53:45 +0200
committerRemy Bohmer <linux@bohmer.net>2010-10-22 21:41:45 +0200
commitaf68c066709f20fcfd0ce6cd955bfbe4642d0a15 (patch)
treec97206ccbd84267b039987a1bf8273edea19e5ad
parentfff6ec382c139eb242bd85356e66a0bc43becb63 (diff)
downloadu-boot-imx-af68c066709f20fcfd0ce6cd955bfbe4642d0a15.zip
u-boot-imx-af68c066709f20fcfd0ce6cd955bfbe4642d0a15.tar.gz
u-boot-imx-af68c066709f20fcfd0ce6cd955bfbe4642d0a15.tar.bz2
ehci-pci: print hccr, hcor and hc_lenght
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>
-rw-r--r--drivers/usb/host/ehci-pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 047902a..cff3438 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -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;
}