
26 Dec
2016
26 Dec
'16
9:55 a.m.
On 12/26/2016 06:24 AM, Simon Glass wrote:
On 22 December 2016 at 22:06, Peng Fan peng.fan@nxp.com wrote:
Implement ofdata_to_platdata to set the type to host or device.
- Check "dr-mode" property.
- If there is no "dr-mode", check phy_ctrl for i.MX6 and phy_status for i.MX7
Signed-off-by: Peng Fan peng.fan@nxp.com Cc: Marek Vasut marex@denx.de Cc: Simon Glass sjg@chromium.org Cc: Stefano Babic sbabic@denx.de
V2: Add a ehci_usb_phy_mode function to check phy mode when dr-mode is otg, or no mode property provided.
drivers/usb/host/ehci-mx6.c | 75 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
Applied all to u-boot-usb/next , thanks.
--
Best regards,
Marek Vasut