#ifndef __OMAP_CONTROL_PHY_H__
#define __OMAP_CONTROL_PHY_H__
enum omap_control_phy_type { … };
struct omap_control_phy { … };
enum omap_control_usb_mode { … };
#define OMAP_CTRL_DEV_PHY_PD …
#define OMAP_CTRL_DEV_AVALID …
#define OMAP_CTRL_DEV_BVALID …
#define OMAP_CTRL_DEV_VBUSVALID …
#define OMAP_CTRL_DEV_SESSEND …
#define OMAP_CTRL_DEV_IDDIG …
#define OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_CMD_MASK …
#define OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_CMD_SHIFT …
#define OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_FREQ_MASK …
#define OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_FREQ_SHIFT …
#define OMAP_CTRL_PIPE3_PHY_TX_RX_POWERON …
#define OMAP_CTRL_PIPE3_PHY_TX_RX_POWEROFF …
#define OMAP_CTRL_PCIE_PCS_MASK …
#define OMAP_CTRL_PCIE_PCS_DELAY_COUNT_SHIFT …
#define OMAP_CTRL_USB2_PHY_PD …
#define AM437X_CTRL_USB2_PHY_PD …
#define AM437X_CTRL_USB2_OTG_PD …
#define AM437X_CTRL_USB2_OTGVDET_EN …
#define AM437X_CTRL_USB2_OTGSESSEND_EN …
#if IS_ENABLED(CONFIG_OMAP_CONTROL_PHY)
void omap_control_phy_power(struct device *dev, int on);
void omap_control_usb_set_mode(struct device *dev,
enum omap_control_usb_mode mode);
void omap_control_pcie_pcs(struct device *dev, u8 delay);
#else
static inline void omap_control_phy_power(struct device *dev, int on)
{
}
static inline void omap_control_usb_set_mode(struct device *dev,
enum omap_control_usb_mode mode)
{
}
static inline void omap_control_pcie_pcs(struct device *dev, u8 delay)
{
}
#endif
#endif