usb: ehci-mx6: implement ofdata_to_platdata
authorPeng Fan <peng.fan@nxp.com>
Thu, 22 Dec 2016 09:06:42 +0000 (17:06 +0800)
committerMarek Vasut <marek.vasut@gmail.com>
Tue, 17 Jan 2017 09:26:32 +0000 (10:26 +0100)
commitcccbddc38c431a0afd7fd0b3e1d48e5326610084
tree049bec6a869251df4873802faea3c8fbd08cf6a7
parent63d747477be2f6f948760f2dc9ce0f440c0af45c
usb: ehci-mx6: implement ofdata_to_platdata

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>
drivers/usb/host/ehci-mx6.c