]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
phy: rcar-gen3-usb2: add SoC-specific parameter for dedicated pins
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 12 Oct 2017 06:34:47 +0000 (15:34 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 23 Oct 2017 05:49:26 +0000 (11:19 +0530)
commit9adaaa9e4517afb8c5cb8931cc4ea0f81f54d396
tree71ff77cd2d71b7132e05ad4800d155293d67c2e4
parentb56acc82f9719d6aa1c1003ac7e34391da85a824
phy: rcar-gen3-usb2: add SoC-specific parameter for dedicated pins

This patch adds SoC-specific parameter to avoid reading/writing
specific registers wrongly if this driver runs on a SoC which doesn't
have dedicated pins (e.g. R-Car D3). This patch also changes the
value "has_otg" to "has_otg_pins" for slightly easier reading of
the code.

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