linux/drivers/usb/cdns3/cdns3-ti.c

// SPDX-License-Identifier: GPL-2.0
/*
 * cdns3-ti.c - TI specific Glue layer for Cadence USB Controller
 *
 * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
 */

#include <linux/bits.h>
#include <linux/clk.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/of_platform.h>
#include <linux/pm_runtime.h>
#include <linux/property.h>
#include "core.h"

/* USB Wrapper register offsets */
#define USBSS_PID
#define USBSS_W1
#define USBSS_STATIC_CONFIG
#define USBSS_PHY_TEST
#define USBSS_DEBUG_CTRL
#define USBSS_DEBUG_INFO
#define USBSS_DEBUG_LINK_STATE
#define USBSS_DEVICE_CTRL

/* Wrapper 1 register bits */
#define USBSS_W1_PWRUP_RST
#define USBSS_W1_OVERCURRENT_SEL
#define USBSS_W1_MODESTRAP_SEL
#define USBSS_W1_OVERCURRENT
#define USBSS_W1_MODESTRAP_MASK
#define USBSS_W1_MODESTRAP_SHIFT
#define USBSS_W1_USB2_ONLY

/* Static config register bits */
#define USBSS1_STATIC_PLL_REF_SEL_MASK
#define USBSS1_STATIC_PLL_REF_SEL_SHIFT
#define USBSS1_STATIC_LOOPBACK_MODE_MASK
#define USBSS1_STATIC_LOOPBACK_MODE_SHIFT
#define USBSS1_STATIC_VBUS_SEL_MASK
#define USBSS1_STATIC_VBUS_SEL_SHIFT
#define USBSS1_STATIC_LANE_REVERSE

/* Modestrap modes */
enum modestrap_mode {};

struct cdns_ti {};

static const int cdns_ti_rate_table[] =;

static inline u32 cdns_ti_readl(struct cdns_ti *data, u32 offset)
{}

static inline void cdns_ti_writel(struct cdns_ti *data, u32 offset, u32 value)
{}

static struct cdns3_platform_data cdns_ti_pdata =;

static const struct of_dev_auxdata cdns_ti_auxdata[] =;

static int cdns_ti_probe(struct platform_device *pdev)
{}

static int cdns_ti_remove_core(struct device *dev, void *c)
{}

static void cdns_ti_remove(struct platform_device *pdev)
{}

static const struct of_device_id cdns_ti_of_match[] =;
MODULE_DEVICE_TABLE(of, cdns_ti_of_match);

static struct platform_driver cdns_ti_driver =;

module_platform_driver();

MODULE_ALIAS();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_DESCRIPTION();