summaryrefslogtreecommitdiffstats
path: root/drivers/phy/tegra/xusb.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-02-21 16:46:32 +0100
committerKishon Vijay Abraham I <kishon@ti.com>2019-04-17 10:42:43 +0200
commit5311a7b89502592045812f97294f756b1fca132b (patch)
treecd68e9bdd9c2836fefa65bd151a96441006965ce /drivers/phy/tegra/xusb.h
parentphy: tegra: xusb: Skip single function lane programming (diff)
downloadlinux-5311a7b89502592045812f97294f756b1fca132b.tar.xz
linux-5311a7b89502592045812f97294f756b1fca132b.zip
phy: tegra: xusb: Parse dual-role mode property
The device tree bindings document the "mode" property of "ports" subnodes, but the driver was not parsing the property. In preparation for adding role switching, parse the property at probe time. Based on work by JC Kuo <jckuo@nvidia.com>. Reviewed-by: JC Kuo <jckuo@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/tegra/xusb.h')
-rw-r--r--drivers/phy/tegra/xusb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/phy/tegra/xusb.h b/drivers/phy/tegra/xusb.h
index b49dbc36efa3..bb60fc09c752 100644
--- a/drivers/phy/tegra/xusb.h
+++ b/drivers/phy/tegra/xusb.h
@@ -19,6 +19,8 @@
#include <linux/mutex.h>
#include <linux/workqueue.h>
+#include <linux/usb/otg.h>
+
/* legacy entry points for backwards-compatibility */
int tegra_xusb_padctl_legacy_probe(struct platform_device *pdev);
int tegra_xusb_padctl_legacy_remove(struct platform_device *pdev);
@@ -271,6 +273,7 @@ struct tegra_xusb_usb2_port {
struct tegra_xusb_port base;
struct regulator *supply;
+ enum usb_dr_mode mode;
bool internal;
};