[U-Boot] No power on USB host of IMX25 PDK
Fabio Estevam
festevam at gmail.com
Fri Nov 4 13:54:06 CET 2011
2011/11/4 Hugo Holgersson <hugoh at student.chalmers.se>:
> diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
> index a0cfbb7..54b90c8 100644
> --- a/drivers/usb/host/ehci-mxc.c
> +++ b/drivers/usb/host/ehci-mxc.c
> @@ -102,7 +102,8 @@ static int mxc_set_usbcontrol(int port, unsigned int flags)
> }
> #endif
>
> - writel(v, IMX_USB_BASE + USBCTRL_OTGBASE_OFFSET);
> + writel(v, (IMX_USB_BASE +
> + (0x200 * CONFIG_MXC_USB_PORT)));
> return 0;
> }
I am looking at the usb/host/ehci-mxc.c file and I see that the write
to the portsc USB register
is currently only done for MX31:
#ifdef CONFIG_MX31
setbits_le32(&ehci->control, USB_EN);
__raw_writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc);
#endif
I think you need to allow the portsc register write on MX25 too (and
maybe for all i.MX devices).
In Linux we have: .portsc = MXC_EHCI_MODE_SERIAL for MX25PDK
,where #define MXC_EHCI_MODE_SERIAL (3 << 30)
Regards,
Fabio Estevam
More information about the U-Boot
mailing list