]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcffc4042e557d2e4cb71abb387aa41ad8e2fc880
treea377620c97fa9ce3a7f27ee0c55141a0e7af8d9d
parent1615d803d2428c963e3d7a869b60e50026bf39ee
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