#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/usb/otg.h>
#include <linux/usb/usb_phy_generic.h>
#include <linux/slab.h>
#include <linux/clk.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/usb/of.h>
#include "phy-am335x-control.h"
#include "phy-generic.h"
struct am335x_phy { … };
static int am335x_init(struct usb_phy *phy)
{ … }
static void am335x_shutdown(struct usb_phy *phy)
{ … }
static int am335x_phy_probe(struct platform_device *pdev)
{ … }
static void am335x_phy_remove(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int am335x_phy_suspend(struct device *dev)
{ … }
static int am335x_phy_resume(struct device *dev)
{ … }
#endif
static SIMPLE_DEV_PM_OPS(am335x_pm_ops, am335x_phy_suspend, am335x_phy_resume);
static const struct of_device_id am335x_phy_ids[] = …;
MODULE_DEVICE_TABLE(of, am335x_phy_ids);
static struct platform_driver am335x_phy_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;