phy: rockchip-inno-usb2: add one phy comprises with two host-ports support
authorWilliam Wu <william.wu@rock-chips.com>
Fri, 2 Jun 2017 03:20:25 +0000 (11:20 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 6 Jun 2017 09:20:24 +0000 (14:50 +0530)
commit9632781122e5f7adfaf29aeb4387d7b354556593
tree3f9cf00fd030623b90191c0cc57bfd85d08d7def
parent5a74a8b74233f0e3c018d4e1c2a52e9393605f47
phy: rockchip-inno-usb2: add one phy comprises with two host-ports support

At the current rockchip-inno-usb2 phy driver framework, it can
only support usb2-phy which comprises with one otg-port and one
host-port.

However, some Rockchip SoCs' (e.g RK3228, RK3229) usb2-phy comprises
with two host-ports, so we use index of otg id for one host-port
configuration, and make it work the same as otg-port host mode.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c