summaryrefslogtreecommitdiff
path: root/drivers/usb/phy/phy-am335x-control.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-26 16:56:25 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-26 16:56:25 -0800
commit87cf5586fdc91ea3b27739372af430b35b9c99db (patch)
treeb83f696e996aff2c1203fd59cbe43b522c0623f2 /drivers/usb/phy/phy-am335x-control.h
parentbfccd95e7aba73d0d3154912b17b855cb9938c50 (diff)
parent5072cfc40a80cea3749fd3413b3896630d8c787e (diff)
Merge tag 'usb-for-v4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
Felipe writes: usb: patches for v4.5 A ton of improvements to dwc2 have been made. The driver should be a lot more stable on v4.5 then ever before. Our good old dwc3 got a few cleanups and misc fixes and also added support to Xilinx's integration of this IP. Yoshihiro Shimoda gives us support for a new USB3 peripheral controller from Renesas. Other than these, the usual misc fixes all over the place.
Diffstat (limited to 'drivers/usb/phy/phy-am335x-control.h')
-rw-r--r--drivers/usb/phy/phy-am335x-control.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-am335x-control.h b/drivers/usb/phy/phy-am335x-control.h
new file mode 100644
index 000000000000..e86b3165d69d
--- /dev/null
+++ b/drivers/usb/phy/phy-am335x-control.h
@@ -0,0 +1,23 @@
+#ifndef _AM335x_PHY_CONTROL_H_
+#define _AM335x_PHY_CONTROL_H_
+
+struct phy_control {
+ void (*phy_power)(struct phy_control *phy_ctrl, u32 id,
+ enum usb_dr_mode dr_mode, bool on);
+ void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on);
+};
+
+static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id,
+ enum usb_dr_mode dr_mode, bool on)
+{
+ phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on);
+}
+
+static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on)
+{
+ phy_ctrl->phy_wkup(phy_ctrl, id, on);
+}
+
+struct phy_control *am335x_get_phy_control(struct device *dev);
+
+#endif