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

// SPDX-License-Identifier: GPL-2.0
/*
 * phy-uniphier-pcie.c - PHY driver for UniPhier PCIe controller
 * Copyright 2018, Socionext Inc.
 * Author: Kunihiko Hayashi <[email protected]>
 */

#include <linux/bitops.h>
#include <linux/bitfield.h>
#include <linux/clk.h>
#include <linux/iopoll.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <linux/resource.h>

/* PHY */
#define PCL_PHY_CLKCTRL
#define PORT_SEL_MASK
#define PORT_SEL_1

#define PCL_PHY_TEST_I
#define TESTI_DAT_MASK
#define TESTI_ADR_MASK
#define TESTI_WR_EN
#define TESTIO_PHY_SHIFT

#define PCL_PHY_TEST_O
#define TESTO_DAT_MASK

#define PCL_PHY_RESET
#define PCL_PHY_RESET_N_MNMODE
#define PCL_PHY_RESET_N

/* SG */
#define SG_USBPCIESEL
#define SG_USBPCIESEL_PCIE

/* SC */
#define SC_US3SRCSEL
#define SC_US3SRCSEL_2LANE

#define PCL_PHY_R00
#define RX_EQ_ADJ_EN
#define PCL_PHY_R06
#define RX_EQ_ADJ
#define RX_EQ_ADJ_VAL
#define PCL_PHY_R26
#define VCO_CTRL
#define VCO_CTRL_INIT_VAL
#define PCL_PHY_R28
#define VCOPLL_CLMP
#define VCOPLL_CLMP_VAL

struct uniphier_pciephy_priv {};

struct uniphier_pciephy_soc_data {};

static void uniphier_pciephy_testio_write(struct uniphier_pciephy_priv *priv,
					  int id, u32 data)
{}

static u32 uniphier_pciephy_testio_read(struct uniphier_pciephy_priv *priv, int id)
{}

static void uniphier_pciephy_set_param(struct uniphier_pciephy_priv *priv,
				       int id, u32 reg, u32 mask, u32 param)
{}

static void uniphier_pciephy_assert(struct uniphier_pciephy_priv *priv)
{}

static void uniphier_pciephy_deassert(struct uniphier_pciephy_priv *priv)
{}

static int uniphier_pciephy_init(struct phy *phy)
{}

static int uniphier_pciephy_exit(struct phy *phy)
{}

static const struct phy_ops uniphier_pciephy_ops =;

static int uniphier_pciephy_probe(struct platform_device *pdev)
{}

static void uniphier_pciephy_ld20_setmode(struct regmap *regmap)
{}

static void uniphier_pciephy_nx1_setmode(struct regmap *regmap)
{}

static const struct uniphier_pciephy_soc_data uniphier_pro5_data =;

static const struct uniphier_pciephy_soc_data uniphier_ld20_data =;

static const struct uniphier_pciephy_soc_data uniphier_pxs3_data =;

static const struct uniphier_pciephy_soc_data uniphier_nx1_data =;

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

static struct platform_driver uniphier_pciephy_driver =;
module_platform_driver();

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