Browse Source

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>
master
Florian Fainelli 10 years ago
committed by Remy Bohmer
parent
commit
af68c06670
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      drivers/usb/host/ehci-pci.c

+ 4
- 0
drivers/usb/host/ehci-pci.c View 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;
}


Loading…
Cancel
Save