linux/drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Amlogic AXG MIPI + PCIE analog PHY driver
 *
 * Copyright (C) 2019 Remi Pommarel <[email protected]>
 */
#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/phy/phy.h>
#include <linux/regmap.h>
#include <linux/delay.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <dt-bindings/phy/phy.h>

#define HHI_MIPI_CNTL0
#define HHI_MIPI_CNTL0_COMMON_BLOCK
#define HHI_MIPI_CNTL0_ENABLE
#define HHI_MIPI_CNTL0_BANDGAP
#define HHI_MIPI_CNTL0_DIF_REF_CTL1
#define HHI_MIPI_CNTL0_DIF_REF_CTL0

#define HHI_MIPI_CNTL1
#define HHI_MIPI_CNTL1_CH0_CML_PDR_EN
#define HHI_MIPI_CNTL1_LP_ABILITY
#define HHI_MIPI_CNTL1_LP_RESISTER
#define HHI_MIPI_CNTL1_INPUT_SETTING
#define HHI_MIPI_CNTL1_INPUT_SEL
#define HHI_MIPI_CNTL1_PRBS7_EN

#define HHI_MIPI_CNTL2
#define HHI_MIPI_CNTL2_CH_PU
#define HHI_MIPI_CNTL2_CH_CTL
#define HHI_MIPI_CNTL2_CH0_DIGDR_EN
#define HHI_MIPI_CNTL2_CH_DIGDR_EN
#define HHI_MIPI_CNTL2_LPULPS_EN
#define HHI_MIPI_CNTL2_CH_EN
#define HHI_MIPI_CNTL2_CH0_LP_CTL

#define DSI_LANE_0
#define DSI_LANE_1
#define DSI_LANE_CLK
#define DSI_LANE_2
#define DSI_LANE_3

struct phy_axg_mipi_pcie_analog_priv {};

static void phy_bandgap_enable(struct phy_axg_mipi_pcie_analog_priv *priv)
{}

static void phy_bandgap_disable(struct phy_axg_mipi_pcie_analog_priv *priv)
{}

static void phy_dsi_analog_enable(struct phy_axg_mipi_pcie_analog_priv *priv)
{}

static void phy_dsi_analog_disable(struct phy_axg_mipi_pcie_analog_priv *priv)
{}

static int phy_axg_mipi_pcie_analog_configure(struct phy *phy,
					      union phy_configure_opts *opts)
{}

static int phy_axg_mipi_pcie_analog_power_on(struct phy *phy)
{}

static int phy_axg_mipi_pcie_analog_power_off(struct phy *phy)
{}

static const struct phy_ops phy_axg_mipi_pcie_analog_ops =;

static int phy_axg_mipi_pcie_analog_probe(struct platform_device *pdev)
{}

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

static struct platform_driver phy_axg_mipi_pcie_analog_driver =;
module_platform_driver();

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