Skip to content
Snippets Groups Projects
Commit af68c066 authored by Florian Fainelli's avatar Florian Fainelli Committed by Remy Bohmer
Browse files

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: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent fff6ec38
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,10 @@ int ehci_hcd_init(void) ...@@ -53,6 +53,10 @@ int ehci_hcd_init(void)
hcor = (struct ehci_hcor *)((uint32_t) hccr + hcor = (struct ehci_hcor *)((uint32_t) hccr +
HC_LENGTH(ehci_readl(&hccr->cr_capbase))); 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; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment