linux/drivers/phy/hisilicon/phy-hi6220-usb.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2015 Linaro Ltd.
 * Copyright (c) 2015 HiSilicon Limited.
 */

#include <linux/mfd/syscon.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/phy/phy.h>
#include <linux/regmap.h>

#define SC_PERIPH_CTRL4

#define CTRL4_PICO_SIDDQ
#define CTRL4_PICO_OGDISABLE
#define CTRL4_PICO_VBUSVLDEXT
#define CTRL4_PICO_VBUSVLDEXTSEL
#define CTRL4_OTG_PHY_SEL

#define SC_PERIPH_CTRL5

#define CTRL5_USBOTG_RES_SEL
#define CTRL5_PICOPHY_ACAENB
#define CTRL5_PICOPHY_BC_MODE
#define CTRL5_PICOPHY_CHRGSEL
#define CTRL5_PICOPHY_VDATSRCEND
#define CTRL5_PICOPHY_VDATDETENB
#define CTRL5_PICOPHY_DCDENB
#define CTRL5_PICOPHY_IDDIG

#define SC_PERIPH_CTRL8
#define SC_PERIPH_RSTEN0
#define SC_PERIPH_RSTDIS0

#define RST0_USBOTG_BUS
#define RST0_POR_PICOPHY
#define RST0_USBOTG
#define RST0_USBOTG_32K

#define EYE_PATTERN_PARA

struct hi6220_priv {};

static void hi6220_phy_init(struct hi6220_priv *priv)
{}

static int hi6220_phy_setup(struct hi6220_priv *priv, bool on)
{}

static int hi6220_phy_start(struct phy *phy)
{}

static int hi6220_phy_exit(struct phy *phy)
{}

static const struct phy_ops hi6220_phy_ops =;

static int hi6220_phy_probe(struct platform_device *pdev)
{}

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

static struct platform_driver hi6220_phy_driver =;
module_platform_driver();

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