
2011/11/4 Hugo Holgersson hugoh@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