phy: renesas: rcar-gen3-usb2: add is_otg_channel to use "role" sysfs
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 21 Sep 2018 11:53:24 +0000 (20:53 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 25 Sep 2018 10:40:12 +0000 (16:10 +0530)
commit979b519c7a1bff56a212bf80cc04ae9b4131ea43
treeb2857ea0e8f15ad872096f8e546b4fb4d295e37e
parenta602152c81a2c1c0daeae56d145d558d52a70dae
phy: renesas: rcar-gen3-usb2: add is_otg_channel to use "role" sysfs

Even if a board doesn't have otg pins connection, this hardware can
change the role by a register setting. So, this patch adds
"is_otg_channel" for it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/renesas/phy-rcar-gen3-usb2.c