linux/drivers/phy/mediatek/phy-mtk-dp.c

// SPDX-License-Identifier: GPL-2.0
/*
 * MediaTek DisplayPort PHY driver
 *
 * Copyright (c) 2022, BayLibre Inc.
 * Copyright (c) 2022, MediaTek Inc.
 */

#include <linux/delay.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#define PHY_OFFSET

#define MTK_DP_PHY_DIG_PLL_CTL_1
#define TPLL_SSC_EN

#define MTK_DP_PHY_DIG_BIT_RATE
#define BIT_RATE_RBR
#define BIT_RATE_HBR
#define BIT_RATE_HBR2
#define BIT_RATE_HBR3

#define MTK_DP_PHY_DIG_SW_RST
#define DP_GLB_SW_RST_PHYD

#define MTK_DP_LANE0_DRIVING_PARAM_3
#define MTK_DP_LANE1_DRIVING_PARAM_3
#define MTK_DP_LANE2_DRIVING_PARAM_3
#define MTK_DP_LANE3_DRIVING_PARAM_3
#define XTP_LN_TX_LCTXC0_SW0_PRE0_DEFAULT
#define XTP_LN_TX_LCTXC0_SW0_PRE1_DEFAULT
#define XTP_LN_TX_LCTXC0_SW0_PRE2_DEFAULT
#define XTP_LN_TX_LCTXC0_SW0_PRE3_DEFAULT
#define DRIVING_PARAM_3_DEFAULT

#define XTP_LN_TX_LCTXC0_SW1_PRE0_DEFAULT
#define XTP_LN_TX_LCTXC0_SW1_PRE1_DEFAULT
#define XTP_LN_TX_LCTXC0_SW1_PRE2_DEFAULT
#define XTP_LN_TX_LCTXC0_SW2_PRE0_DEFAULT
#define DRIVING_PARAM_4_DEFAULT

#define XTP_LN_TX_LCTXC0_SW2_PRE1_DEFAULT
#define XTP_LN_TX_LCTXC0_SW3_PRE0_DEFAULT
#define DRIVING_PARAM_5_DEFAULT

#define XTP_LN_TX_LCTXCP1_SW0_PRE0_DEFAULT
#define XTP_LN_TX_LCTXCP1_SW0_PRE1_DEFAULT
#define XTP_LN_TX_LCTXCP1_SW0_PRE2_DEFAULT
#define XTP_LN_TX_LCTXCP1_SW0_PRE3_DEFAULT
#define DRIVING_PARAM_6_DEFAULT

#define XTP_LN_TX_LCTXCP1_SW1_PRE0_DEFAULT
#define XTP_LN_TX_LCTXCP1_SW1_PRE1_DEFAULT
#define XTP_LN_TX_LCTXCP1_SW1_PRE2_DEFAULT
#define XTP_LN_TX_LCTXCP1_SW2_PRE0_DEFAULT
#define DRIVING_PARAM_7_DEFAULT

#define XTP_LN_TX_LCTXCP1_SW2_PRE1_DEFAULT
#define XTP_LN_TX_LCTXCP1_SW3_PRE0_DEFAULT
#define DRIVING_PARAM_8_DEFAULT

struct mtk_dp_phy {};

static int mtk_dp_phy_init(struct phy *phy)
{}

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

static int mtk_dp_phy_reset(struct phy *phy)
{}

static const struct phy_ops mtk_dp_phy_dev_ops =;

static int mtk_dp_phy_probe(struct platform_device *pdev)
{}

static struct platform_driver mtk_dp_phy_driver =;
module_platform_driver();

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