linux/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c

// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2017 Broadcom

#include <linux/delay.h>
#include <linux/extcon-provider.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/irq.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/workqueue.h>

#define ICFG_DRD_AFE
#define ICFG_MISC_STAT
#define ICFG_DRD_P0CTL
#define ICFG_STRAP_CTRL
#define ICFG_FSM_CTRL

#define ICFG_DEV_BIT
#define IDM_RST_BIT
#define AFE_CORERDY_VDDC
#define PHY_PLL_RESETB
#define PHY_RESETB
#define PHY_PLL_LOCK

#define DRD_DEV_MODE
#define OHCI_OVRCUR_POL
#define ICFG_OFF_MODE
#define PLL_LOCK_RETRY

#define EVT_DEVICE
#define EVT_HOST

#define DRD_HOST_MODE
#define DRD_DEVICE_MODE
#define DRD_HOST_VAL
#define DRD_DEV_VAL
#define GPIO_DELAY

struct ns2_phy_data;
struct ns2_phy_driver {};

struct ns2_phy_data {};

static const unsigned int usb_extcon_cable[] =;

static inline int pll_lock_stat(u32 usb_reg, int reg_mask,
				struct ns2_phy_driver *driver)
{}

static int ns2_drd_phy_init(struct phy *phy)
{}

static int ns2_drd_phy_poweroff(struct phy *phy)
{}

static int ns2_drd_phy_poweron(struct phy *phy)
{}

static void connect_change(struct ns2_phy_driver *driver)
{}

static void extcon_work(struct work_struct *work)
{}

static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
{}

static const struct phy_ops ops =;

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

static int ns2_drd_phy_probe(struct platform_device *pdev)
{}

static struct platform_driver ns2_drd_phy_driver =;
module_platform_driver();

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