[U-Boot] [PATCH V4 02/17] usb: ehci-mx6: add support for host mode otg port

Marek Vasut marex at denx.de
Fri Sep 20 12:51:19 CEST 2013


Dear Troy Kisky,

> Previously, only host1 was supported using an index of 0.
> Now, otg has index 0, host1 is 1, host2 is 2, host3 is 3.
> Since OTG requires usbmode to be set after reset, I added
> a weak function ehci_hcd_init_after_reset to handle this,
> and removed it from ehci_hcd_init. I also added a weak
> function board_ehci_power to handle turning power on/off
> for otg.
> 
> Signed-off-by: Troy Kisky <troy.kisky at boundarydevices.com>
> 
> ---
> V4: new patch, replaces "usb: gadget: mv_udc: fix hardware udc address for
> i.MX6" and has the bonus of giving OTG host mode support
> ---

Would it be a problem to implement this in ehci_hcd_init() call instead of 
adding a new call?

Best regards,
Marek Vasut


More information about the U-Boot mailing list