diff options
Diffstat (limited to 'drivers/usb/phy/am35x-phy-control.h')
-rw-r--r-- | drivers/usb/phy/am35x-phy-control.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/usb/phy/am35x-phy-control.h b/drivers/usb/phy/am35x-phy-control.h new file mode 100644 index 000000000000..b96594d1962c --- /dev/null +++ b/drivers/usb/phy/am35x-phy-control.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef _AM335x_PHY_CONTROL_H_ | ||
2 | #define _AM335x_PHY_CONTROL_H_ | ||
3 | |||
4 | struct phy_control { | ||
5 | void (*phy_power)(struct phy_control *phy_ctrl, u32 id, bool on); | ||
6 | void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on); | ||
7 | }; | ||
8 | |||
9 | static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id, bool on) | ||
10 | { | ||
11 | phy_ctrl->phy_power(phy_ctrl, id, on); | ||
12 | } | ||
13 | |||
14 | static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on) | ||
15 | { | ||
16 | phy_ctrl->phy_wkup(phy_ctrl, id, on); | ||
17 | } | ||
18 | |||
19 | struct phy_control *am335x_get_phy_control(struct device *dev); | ||
20 | |||
21 | #endif | ||