linux/drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2018 MediaTek Inc.
 * Author: Chunhui Dai <[email protected]>
 */

#include "phy-mtk-hdmi.h"
#include "phy-mtk-io.h"

#define HDMI_CON0
#define RG_HDMITX_DRV_IBIAS_MASK
#define RG_HDMITX_EN_SER_MASK
#define RG_HDMITX_EN_SLDO_MASK
#define RG_HDMITX_EN_PRED_MASK
#define RG_HDMITX_EN_IMP_MASK
#define RG_HDMITX_EN_DRV_MASK

#define HDMI_CON1
#define RG_HDMITX_PRED_IBIAS_MASK
#define RG_HDMITX_PRED_IMP
#define RG_HDMITX_DRV_IMP_MASK

#define HDMI_CON2
#define RG_HDMITX_EN_TX_CKLDO
#define RG_HDMITX_EN_TX_POSDIV
#define RG_HDMITX_TX_POSDIV_MASK
#define RG_HDMITX_EN_MBIAS
#define RG_HDMITX_MBIAS_LPF_EN

#define HDMI_CON4
#define RG_HDMITX_RESERVE_MASK

#define HDMI_CON6
#define RG_HTPLL_BR_MASK
#define RG_HTPLL_BC_MASK
#define RG_HTPLL_BP_MASK
#define RG_HTPLL_IR_MASK
#define RG_HTPLL_IC_MASK
#define RG_HTPLL_POSDIV_MASK
#define RG_HTPLL_PREDIV_MASK
#define RG_HTPLL_FBKSEL_MASK
#define RG_HTPLL_RLH_EN
#define RG_HTPLL_FBKDIV_MASK
#define RG_HTPLL_EN

#define HDMI_CON7
#define RG_HTPLL_AUTOK_EN
#define RG_HTPLL_DIVEN_MASK

static int mtk_hdmi_pll_prepare(struct clk_hw *hw)
{}

static void mtk_hdmi_pll_unprepare(struct clk_hw *hw)
{}

static long mtk_hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate,
				    unsigned long *parent_rate)
{}

static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
				 unsigned long parent_rate)
{}

static unsigned long mtk_hdmi_pll_recalc_rate(struct clk_hw *hw,
					      unsigned long parent_rate)
{}

static const struct clk_ops mtk_hdmi_phy_pll_ops =;

static void mtk_hdmi_phy_enable_tmds(struct mtk_hdmi_phy *hdmi_phy)
{}

static void mtk_hdmi_phy_disable_tmds(struct mtk_hdmi_phy *hdmi_phy)
{}

struct mtk_hdmi_phy_conf mtk_hdmi_phy_2701_conf =;

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