phy: rockchip-inno-usb2: support host only mode for otg port
authorWu Liang feng <wulf@rock-chips.com>
Sat, 10 Sep 2016 10:32:40 +0000 (18:32 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 12 Sep 2016 03:35:44 +0000 (11:35 +0800)
commit9eae9656e2c19d2625a7764f86298a9c188cf62a
tree437845638222c718b17e79a9193a8e67b9b80536
parentd6b7f5c5edc4434ce9e182b47f958f2b87cd9b02
phy: rockchip-inno-usb2: support host only mode for otg port

With this patch, we can support host only mode for otg port
(e.g. rk3399 Type-C1 USB). We use of_usb_get_dr_mode_by_phy()
to get the string from property 'dr_mode' of the controller
device node.

Right now, we only support host only mode for phys which do
not have phy-cells, and don't support #phy-cells >= 1.

Change-Id: Ic15b4afdfd954d91e38dbce3c996176bf2d6f101
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c