phy: tegra: xusb: Add usb3 port fake support on Tegra210
authorNagarjuna Kristam <nkristam@nvidia.com>
Fri, 18 Oct 2019 09:38:07 +0000 (15:08 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 23 Oct 2019 07:50:34 +0000 (13:20 +0530)
commita5be28c3656af71f1c9d75381f7b86d5056da9f3
treebbe1c6d00eea04504beca91b752b3e2ee964c02a
parentac25b6e9f8d26b90694c1150b2e677aeac46ec71
phy: tegra: xusb: Add usb3 port fake support on Tegra210

On Tegra210, usb2 only otg/peripheral ports dont work in device mode.
They need an assosciated usb3 port to work in device mode. Identify
an unused usb3 port and assign it as a fake USB3 port to USB2 only
port whose mode is otg/peripheral.

Based on work by BH Hsieh <bhsieh@nvidia.com>.

Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/tegra/xusb-tegra210.c
drivers/phy/tegra/xusb.c
drivers/phy/tegra/xusb.h