[U-Boot] [PATCH] ehci-pci: print hccr, hcor and hc_lenght

Remy Bohmer linux at bohmer.net
Sun Sep 12 12:01:18 CEST 2010


Hi Florian,

2010/4/23 Florian Fainelli <f.fainelli at gmail.com>:
> 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 at gmail.com>
> ---
> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
> index 047902a..4402abb 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)));
>
> +       printf("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)));
> +

I guess I missed this patch...
Should the 'printf' not be a 'debug' statement?

Kind regards,

Remy


More information about the U-Boot mailing list