#include <linux/clk.h>
#include <linux/err.h>
#include <linux/gpio/consumer.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include "common.h"
#include "rcar2.h"
#include "rcar3.h"
#include "rza.h"
#define usbhs_platform_call(priv, func, args...) …
u16 usbhs_read(struct usbhs_priv *priv, u32 reg)
{ … }
void usbhs_write(struct usbhs_priv *priv, u32 reg, u16 data)
{ … }
void usbhs_bset(struct usbhs_priv *priv, u32 reg, u16 mask, u16 data)
{ … }
struct usbhs_priv *usbhs_pdev_to_priv(struct platform_device *pdev)
{ … }
int usbhs_get_id_as_gadget(struct platform_device *pdev)
{ … }
static void usbhs_sys_clock_ctrl(struct usbhs_priv *priv, int enable)
{ … }
void usbhs_sys_host_ctrl(struct usbhs_priv *priv, int enable)
{ … }
void usbhs_sys_function_ctrl(struct usbhs_priv *priv, int enable)
{ … }
void usbhs_sys_function_pullup(struct usbhs_priv *priv, int enable)
{ … }
void usbhs_sys_set_test_mode(struct usbhs_priv *priv, u16 mode)
{ … }
int usbhs_frame_get_num(struct usbhs_priv *priv)
{ … }
void usbhs_usbreq_get_val(struct usbhs_priv *priv, struct usb_ctrlrequest *req)
{ … }
void usbhs_usbreq_set_val(struct usbhs_priv *priv, struct usb_ctrlrequest *req)
{ … }
void usbhs_bus_send_sof_enable(struct usbhs_priv *priv)
{ … }
void usbhs_bus_send_reset(struct usbhs_priv *priv)
{ … }
int usbhs_bus_get_speed(struct usbhs_priv *priv)
{ … }
int usbhs_vbus_ctrl(struct usbhs_priv *priv, int enable)
{ … }
static void usbhsc_bus_init(struct usbhs_priv *priv)
{ … }
int usbhs_set_device_config(struct usbhs_priv *priv, int devnum,
u16 upphub, u16 hubport, u16 speed)
{ … }
void usbhs_xxxsts_clear(struct usbhs_priv *priv, u16 sts_reg, u16 bit)
{ … }
static void usbhsc_set_buswait(struct usbhs_priv *priv)
{ … }
static bool usbhsc_is_multi_clks(struct usbhs_priv *priv)
{ … }
static int usbhsc_clk_get(struct device *dev, struct usbhs_priv *priv)
{ … }
static void usbhsc_clk_put(struct usbhs_priv *priv)
{ … }
static int usbhsc_clk_prepare_enable(struct usbhs_priv *priv)
{ … }
static void usbhsc_clk_disable_unprepare(struct usbhs_priv *priv)
{ … }
static struct renesas_usbhs_driver_pipe_config usbhsc_default_pipe[] = …;
static struct renesas_usbhs_driver_pipe_config usbhsc_new_pipe[] = …;
static void usbhsc_power_ctrl(struct usbhs_priv *priv, int enable)
{ … }
static void usbhsc_hotplug(struct usbhs_priv *priv)
{ … }
static void usbhsc_notify_hotplug(struct work_struct *work)
{ … }
int usbhsc_schedule_notify_hotplug(struct platform_device *pdev)
{ … }
static const struct of_device_id usbhs_of_match[] = …;
MODULE_DEVICE_TABLE(of, usbhs_of_match);
static int usbhs_probe(struct platform_device *pdev)
{ … }
static void usbhs_remove(struct platform_device *pdev)
{ … }
static __maybe_unused int usbhsc_suspend(struct device *dev)
{ … }
static __maybe_unused int usbhsc_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(usbhsc_pm_ops, usbhsc_suspend, usbhsc_resume);
static struct platform_driver renesas_usbhs_driver = …;
module_platform_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;