Hi, 2010/10/15 Florian Fainelli <[email protected]>: > 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 <[email protected]> > --- > Changes since v1: > - replaced printf by debug > > 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; > }
Applied to u-boot-usb. Thanks. Remy _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

