0001
0002 #ifndef _AM335x_PHY_CONTROL_H_
0003 #define _AM335x_PHY_CONTROL_H_
0004
0005 struct phy_control {
0006 void (*phy_power)(struct phy_control *phy_ctrl, u32 id,
0007 enum usb_dr_mode dr_mode, bool on);
0008 void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on);
0009 };
0010
0011 static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id,
0012 enum usb_dr_mode dr_mode, bool on)
0013 {
0014 phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on);
0015 }
0016
0017 static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on)
0018 {
0019 phy_ctrl->phy_wkup(phy_ctrl, id, on);
0020 }
0021
0022 struct phy_control *am335x_get_phy_control(struct device *dev);
0023
0024 #endif