linux/drivers/phy/rockchip/phy-rockchip-pcie.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Rockchip PCIe PHY driver
 *
 * Copyright (C) 2016 Shawn Lin <[email protected]>
 * Copyright (C) 2016 ROCKCHIP, Inc.
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.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/property.h>
#include <linux/regmap.h>
#include <linux/reset.h>

/*
 * The higher 16-bit of this register is used for write protection
 * only if BIT(x + 16) set to 1 the BIT(x) can be written.
 */
#define HIWORD_UPDATE(val, mask, shift)

#define PHY_MAX_LANE_NUM
#define PHY_CFG_DATA_SHIFT
#define PHY_CFG_ADDR_SHIFT
#define PHY_CFG_DATA_MASK
#define PHY_CFG_ADDR_MASK
#define PHY_CFG_RD_MASK
#define PHY_CFG_WR_ENABLE
#define PHY_CFG_WR_DISABLE
#define PHY_CFG_WR_SHIFT
#define PHY_CFG_WR_MASK
#define PHY_CFG_PLL_LOCK
#define PHY_CFG_CLK_TEST
#define PHY_CFG_CLK_SCC
#define PHY_CFG_SEPE_RATE
#define PHY_CFG_PLL_100M
#define PHY_PLL_LOCKED
#define PHY_PLL_OUTPUT
#define PHY_LANE_A_STATUS
#define PHY_LANE_B_STATUS
#define PHY_LANE_C_STATUS
#define PHY_LANE_D_STATUS
#define PHY_LANE_RX_DET_SHIFT
#define PHY_LANE_RX_DET_TH
#define PHY_LANE_IDLE_OFF
#define PHY_LANE_IDLE_MASK
#define PHY_LANE_IDLE_A_SHIFT
#define PHY_LANE_IDLE_B_SHIFT
#define PHY_LANE_IDLE_C_SHIFT
#define PHY_LANE_IDLE_D_SHIFT

struct rockchip_pcie_data {};

struct rockchip_pcie_phy {};

static struct rockchip_pcie_phy *to_pcie_phy(struct phy_pcie_instance *inst)
{}

static struct phy *rockchip_pcie_phy_of_xlate(struct device *dev,
					      const struct of_phandle_args *args)
{}


static inline void phy_wr_cfg(struct rockchip_pcie_phy *rk_phy,
			      u32 addr, u32 data)
{}

static int rockchip_pcie_phy_power_off(struct phy *phy)
{}

static int rockchip_pcie_phy_power_on(struct phy *phy)
{}

static int rockchip_pcie_phy_init(struct phy *phy)
{}

static int rockchip_pcie_phy_exit(struct phy *phy)
{}

static const struct phy_ops ops =;

static const struct rockchip_pcie_data rk3399_pcie_data =;

static const struct of_device_id rockchip_pcie_phy_dt_ids[] =;

MODULE_DEVICE_TABLE(of, rockchip_pcie_phy_dt_ids);

static int rockchip_pcie_phy_probe(struct platform_device *pdev)
{}

static struct platform_driver rockchip_pcie_driver =;

module_platform_driver();

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