forked from Freescale/linux-fslc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phy: tegra: xusb: add [set/clear]_vbus_override()
This commit adds tegra_xusb_padctl_set_vbus_override() and tegra_xusb_padctl_clear_vbus_override() that can be used to change port role of a dual-role USB (otg-capable) USB2/USB3 port. Bug 1843963 Change-Id: I89c240d781779e35daa21dff343609ec3dd29300 Signed-off-by: JC Kuo <[email protected]>
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1033,6 +1033,24 @@ int tegra_xusb_padctl_usb3_set_lfps_detect(struct tegra_xusb_padctl *padctl, | |
} | ||
EXPORT_SYMBOL_GPL(tegra_xusb_padctl_usb3_set_lfps_detect); | ||
|
||
int tegra_xusb_padctl_set_vbus_override(struct tegra_xusb_padctl *padctl) | ||
{ | ||
if (padctl->soc->ops->vbus_override) | ||
return padctl->soc->ops->vbus_override(padctl, true); | ||
|
||
return -ENOSYS; | ||
} | ||
EXPORT_SYMBOL_GPL(tegra_xusb_padctl_set_vbus_override); | ||
|
||
int tegra_xusb_padctl_clear_vbus_override(struct tegra_xusb_padctl *padctl) | ||
{ | ||
if (padctl->soc->ops->vbus_override) | ||
return padctl->soc->ops->vbus_override(padctl, false); | ||
|
||
return -ENOSYS; | ||
} | ||
EXPORT_SYMBOL_GPL(tegra_xusb_padctl_clear_vbus_override); | ||
|
||
MODULE_AUTHOR("Thierry Reding <[email protected]>"); | ||
MODULE_DESCRIPTION("Tegra XUSB Pad Controller driver"); | ||
MODULE_LICENSE("GPL v2"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters