Lines Matching full:hdmi_phy
20 static void mtk_hdmi_ana_fifo_en(struct mtk_hdmi_phy *hdmi_phy) in mtk_hdmi_ana_fifo_en() argument
23 mtk_phy_set_bits(hdmi_phy->regs + HDMI_ANA_CTL, REG_ANA_HDMI20_FIFO_EN); in mtk_hdmi_ana_fifo_en()
27 mtk_phy_tmds_clk_ratio(struct mtk_hdmi_phy *hdmi_phy, bool enable) in mtk_phy_tmds_clk_ratio() argument
29 void __iomem *regs = hdmi_phy->regs; in mtk_phy_tmds_clk_ratio()
31 mtk_hdmi_ana_fifo_en(hdmi_phy); in mtk_phy_tmds_clk_ratio()
44 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_sel_src() local
45 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_sel_src()
56 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_perf() local
57 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_perf()
89 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_set_hw() local
90 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_set_hw()
209 static int mtk_hdmi_pll_calc(struct mtk_hdmi_phy *hdmi_phy, struct clk_hw *hw, in mtk_hdmi_pll_calc() argument
225 hdmi_phy->tmds_over_340M = true; in mtk_hdmi_pll_calc()
227 hdmi_phy->tmds_over_340M = false; in mtk_hdmi_pll_calc()
302 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_drv_setting() local
303 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_drv_setting()
307 u32 pixel_clk = hdmi_phy->pll_rate; in mtk_hdmi_pll_drv_setting()
359 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_prepare() local
360 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_prepare()
393 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_unprepare() local
394 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_unprepare()
411 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_set_rate() local
413 dev_dbg(hdmi_phy->dev, "%s: %lu Hz, parent: %lu Hz\n", __func__, rate, in mtk_hdmi_pll_set_rate()
416 return mtk_hdmi_pll_calc(hdmi_phy, hw, rate, parent_rate); in mtk_hdmi_pll_set_rate()
422 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_round_rate() local
424 hdmi_phy->pll_rate = rate; in mtk_hdmi_pll_round_rate()
431 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_recalc_rate() local
433 return hdmi_phy->pll_rate; in mtk_hdmi_pll_recalc_rate()
444 static void vtx_signal_en(struct mtk_hdmi_phy *hdmi_phy, bool on) in vtx_signal_en() argument
446 void __iomem *regs = hdmi_phy->regs; in vtx_signal_en()
454 static void mtk_hdmi_phy_enable_tmds(struct mtk_hdmi_phy *hdmi_phy) in mtk_hdmi_phy_enable_tmds() argument
456 vtx_signal_en(hdmi_phy, true); in mtk_hdmi_phy_enable_tmds()
460 static void mtk_hdmi_phy_disable_tmds(struct mtk_hdmi_phy *hdmi_phy) in mtk_hdmi_phy_disable_tmds() argument
462 vtx_signal_en(hdmi_phy, false); in mtk_hdmi_phy_disable_tmds()
468 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy); in mtk_hdmi_phy_configure() local
471 ret = clk_set_rate(hdmi_phy->pll, dp_opts->link_rate); in mtk_hdmi_phy_configure()
476 mtk_phy_tmds_clk_ratio(hdmi_phy, hdmi_phy->tmds_over_340M); in mtk_hdmi_phy_configure()