linux/drivers/phy/socionext/phy-uniphier-usb3hs.c

// SPDX-License-Identifier: GPL-2.0
/*
 * phy-uniphier-usb3hs.c - HS-PHY driver for Socionext UniPhier USB3 controller
 * Copyright 2015-2018 Socionext Inc.
 * Author:
 *      Kunihiko Hayashi <[email protected]>
 * Contributors:
 *      Motoya Tanigawa <[email protected]>
 *      Masami Hiramatsu <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/nvmem-consumer.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/reset.h>
#include <linux/slab.h>

#define HSPHY_CFG0
#define HSPHY_CFG0_HS_I_MASK
#define HSPHY_CFG0_HSDISC_MASK
#define HSPHY_CFG0_SWING_MASK
#define HSPHY_CFG0_SEL_T_MASK
#define HSPHY_CFG0_RTERM_MASK
#define HSPHY_CFG0_TRIMMASK

#define HSPHY_CFG1
#define HSPHY_CFG1_DAT_EN
#define HSPHY_CFG1_ADR_EN
#define HSPHY_CFG1_ADR_MASK
#define HSPHY_CFG1_DAT_MASK

#define PHY_F(regno, msb, lsb)

#define RX_CHK_SYNC
#define RX_SYNC_SEL
#define LS_SLEW
#define FS_LS_DRV

#define MAX_PHY_PARAMS

struct uniphier_u3hsphy_param {};

struct uniphier_u3hsphy_trim_param {};

#define trim_param_is_valid(p)

struct uniphier_u3hsphy_priv {};

struct uniphier_u3hsphy_soc_data {};

static void uniphier_u3hsphy_trim_ld20(struct uniphier_u3hsphy_priv *priv,
				       u32 *pconfig,
				       struct uniphier_u3hsphy_trim_param *pt)
{}

static int uniphier_u3hsphy_get_nvparam(struct uniphier_u3hsphy_priv *priv,
					const char *name, unsigned int *val)
{}

static int uniphier_u3hsphy_get_nvparams(struct uniphier_u3hsphy_priv *priv,
					 struct uniphier_u3hsphy_trim_param *pt)
{}

static int uniphier_u3hsphy_update_config(struct uniphier_u3hsphy_priv *priv,
					  u32 *pconfig)
{}

static void uniphier_u3hsphy_set_param(struct uniphier_u3hsphy_priv *priv,
				       const struct uniphier_u3hsphy_param *p)
{}

static int uniphier_u3hsphy_power_on(struct phy *phy)
{}

static int uniphier_u3hsphy_power_off(struct phy *phy)
{}

static int uniphier_u3hsphy_init(struct phy *phy)
{}

static int uniphier_u3hsphy_exit(struct phy *phy)
{}

static const struct phy_ops uniphier_u3hsphy_ops =;

static int uniphier_u3hsphy_probe(struct platform_device *pdev)
{}

static const struct uniphier_u3hsphy_soc_data uniphier_pro5_data =;

static const struct uniphier_u3hsphy_soc_data uniphier_pxs2_data =;

static const struct uniphier_u3hsphy_soc_data uniphier_ld20_data =;

static const struct uniphier_u3hsphy_soc_data uniphier_pxs3_data =;

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

static struct platform_driver uniphier_u3hsphy_driver =;

module_platform_driver();

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