phy: rcar-gen3-usb2: change the mode to OTG on the combined channel
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 30 Nov 2015 01:44:31 +0000 (10:44 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Sun, 20 Dec 2015 09:51:37 +0000 (15:21 +0530)
commit1114e2d3173190be3e7339449c45ef11302d905a
treea377620c97fa9ce3a7f27ee0c55141a0e7af8d9d
parentf3b5a8d9b50d71b8c9fb72aa9c8ea948ad1a4ef9
phy: rcar-gen3-usb2: change the mode to OTG on the combined channel

To use the channel 0 of R-Car gen3 as periperal mode, This patch changes
the mode to OTG instead of HOST. Then, this driver needs to set some
registers to enable host mode and detects ID pin and VBUS pin at
phy_init() timing.

For now, the channel 0 can be used as host mode only.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-rcar-gen3-usb2.c