#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/io.h>
#include <linux/usb/phy_companion.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/pm_runtime.h>
#include <linux/delay.h>
#include <linux/phy/phy.h>
#include <linux/mfd/syscon.h>
#define DM816X_USB_CTRL_PHYCLKSRC …
#define DM816X_USB_CTRL_PHYSLEEP1 …
#define DM816X_USB_CTRL_PHYSLEEP0 …
#define DM816X_USBPHY_CTRL_TXRISETUNE …
#define DM816X_USBPHY_CTRL_TXVREFTUNE …
#define DM816X_USBPHY_CTRL_TXPREEMTUNE …
struct dm816x_usb_phy { … };
static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host)
{ … }
static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg,
struct usb_gadget *gadget)
{ … }
static int dm816x_usb_phy_init(struct phy *x)
{ … }
static const struct phy_ops ops = …;
static int __maybe_unused dm816x_usb_phy_runtime_suspend(struct device *dev)
{ … }
static int __maybe_unused dm816x_usb_phy_runtime_resume(struct device *dev)
{ … }
static UNIVERSAL_DEV_PM_OPS(dm816x_usb_phy_pm_ops,
dm816x_usb_phy_runtime_suspend,
dm816x_usb_phy_runtime_resume,
NULL);
static const struct of_device_id dm816x_usb_phy_id_table[] = …;
MODULE_DEVICE_TABLE(of, dm816x_usb_phy_id_table);
static int dm816x_usb_phy_probe(struct platform_device *pdev)
{ … }
static void dm816x_usb_phy_remove(struct platform_device *pdev)
{ … }
static struct platform_driver dm816x_usb_phy_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;