#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <linux/slab.h>
#define USB2PHY_PORT_UTMI_CTRL1 …
#define USB2PHY_PORT_UTMI_CTRL2 …
#define UTMI_ULPI_SEL …
#define UTMI_TEST_MUX_SEL …
#define HS_PHY_CTRL_REG …
#define UTMI_OTG_VBUS_VALID …
#define SW_SESSVLD_SEL …
#define USB_PHY_UTMI_CTRL0 …
#define USB_PHY_UTMI_CTRL5 …
#define POR_EN …
#define USB_PHY_HS_PHY_CTRL_COMMON0 …
#define COMMONONN …
#define FSEL …
#define RETENABLEN …
#define FREQ_24MHZ …
#define USB_PHY_HS_PHY_CTRL2 …
#define USB2_SUSPEND_N_SEL …
#define USB2_SUSPEND_N …
#define USB2_UTMI_CLK_EN …
#define USB_PHY_CFG0 …
#define UTMI_PHY_OVERRIDE_EN …
#define USB_PHY_REFCLK_CTRL …
#define CLKCORE …
#define USB2PHY_PORT_POWERDOWN …
#define POWER_UP …
#define POWER_DOWN …
#define USB_PHY_FSEL_SEL …
#define FREQ_SEL …
#define USB2PHY_USB_PHY_M31_XCFGI_1 …
#define USB2_0_TX_ENABLE …
#define USB2PHY_USB_PHY_M31_XCFGI_4 …
#define HSTX_SLEW_RATE_565PS …
#define PLL_CHARGING_PUMP_CURRENT_35UA …
#define ODT_VALUE_38_02_OHM …
#define USB2PHY_USB_PHY_M31_XCFGI_5 …
#define ODT_VALUE_45_02_OHM …
#define HSTX_PRE_EMPHASIS_LEVEL_0_55MA …
#define USB2PHY_USB_PHY_M31_XCFGI_11 …
#define XCFG_COARSE_TUNE_NUM …
#define XCFG_FINE_TUNE_NUM …
struct m31_phy_regs { … };
struct m31_priv_data { … };
static const struct m31_phy_regs m31_ipq5018_regs[] = …;
static struct m31_phy_regs m31_ipq5332_regs[] = …;
struct m31usb_phy { … };
static int m31usb_phy_init(struct phy *phy)
{ … }
static int m31usb_phy_shutdown(struct phy *phy)
{ … }
static const struct phy_ops m31usb_phy_gen_ops = …;
static int m31usb_phy_probe(struct platform_device *pdev)
{ … }
static const struct m31_priv_data m31_ipq5018_data = …;
static const struct m31_priv_data m31_ipq5332_data = …;
static const struct of_device_id m31usb_phy_id_table[] = …;
MODULE_DEVICE_TABLE(of, m31usb_phy_id_table);
static struct platform_driver m31usb_phy_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;