MLK-14445-5 ehci-mx6: Add OTG ID detecting by GPIO
authorYe Li <ye.li@nxp.com>
Thu, 16 Mar 2017 09:00:59 +0000 (17:00 +0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:00:02 +0000 (02:00 -0700)
commit9e49bf5c8cec5cd71e3d256229d638703e1eced9
tree5011359ff4d76bd68ec3256b1fa248ce77a4c0ea
parent82d6f24048d789c78834f2233ce008b930336d10
MLK-14445-5 ehci-mx6: Add OTG ID detecting by GPIO

The i.MX7ulp EVK board uses GPIO to detect ID for USB OTG0,
but when using DM USB driver, it is hard coded to use OTG ID pin.
Add a board override function that when extcon property is provided,
the function can check the GPIO to get ID.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 8382781a59fbae1d8ab797d64761136277e291d1)
(cherry picked from commit 2afd266e19b78952d5ea402b7457a47210b7670d)
drivers/usb/host/ehci-mx6.c