#include <linux/bits.h>
#include <linux/clk.h>
#include <linux/module.h>
#include <linux/mfd/syscon.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/of_platform.h>
#include <linux/reset.h>
#include <linux/regmap.h>
#include <linux/usb/otg.h>
#include "core.h"
#define USB_STRAP_HOST …
#define USB_STRAP_DEVICE …
#define USB_STRAP_MASK …
#define USB_SUSPENDM_HOST …
#define USB_SUSPENDM_MASK …
#define USB_MISC_CFG_MASK …
#define USB_SUSPENDM_BYPS …
#define USB_PLL_EN …
#define USB_REFCLK_MODE …
struct cdns_starfive { … };
static void cdns_mode_init(struct platform_device *pdev,
struct cdns_starfive *data)
{ … }
static int cdns_clk_rst_init(struct cdns_starfive *data)
{ … }
static void cdns_clk_rst_deinit(struct cdns_starfive *data)
{ … }
static int cdns_starfive_probe(struct platform_device *pdev)
{ … }
static int cdns_starfive_remove_core(struct device *dev, void *c)
{ … }
static void cdns_starfive_remove(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM
static int cdns_starfive_runtime_resume(struct device *dev)
{ … }
static int cdns_starfive_runtime_suspend(struct device *dev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int cdns_starfive_resume(struct device *dev)
{ … }
static int cdns_starfive_suspend(struct device *dev)
{ … }
#endif
#endif
static const struct dev_pm_ops cdns_starfive_pm_ops = …;
static const struct of_device_id cdns_starfive_of_match[] = …;
MODULE_DEVICE_TABLE(of, cdns_starfive_of_match);
static struct platform_driver cdns_starfive_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;