Lines Matching refs:hdmi_phy

27 	struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy);
30 ret = clk_prepare_enable(hdmi_phy->pll);
34 hdmi_phy->conf->hdmi_phy_enable_tmds(hdmi_phy);
40 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy);
42 hdmi_phy->conf->hdmi_phy_disable_tmds(hdmi_phy);
43 clk_disable_unprepare(hdmi_phy->pll);
50 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy);
52 if (hdmi_phy->conf->hdmi_phy_configure)
53 return hdmi_phy->conf->hdmi_phy_configure(phy, opts);
59 mtk_hdmi_phy_dev_get_ops(const struct mtk_hdmi_phy *hdmi_phy)
61 if (hdmi_phy && hdmi_phy->conf &&
62 hdmi_phy->conf->hdmi_phy_enable_tmds &&
63 hdmi_phy->conf->hdmi_phy_disable_tmds)
66 if (hdmi_phy)
67 dev_err(hdmi_phy->dev, "Failed to get dev ops of phy\n");
71 static void mtk_hdmi_phy_clk_get_data(struct mtk_hdmi_phy *hdmi_phy,
74 clk_init->flags = hdmi_phy->conf->flags;
75 clk_init->ops = hdmi_phy->conf->hdmi_phy_clk_ops;
81 struct mtk_hdmi_phy *hdmi_phy;
93 hdmi_phy = devm_kzalloc(dev, sizeof(*hdmi_phy), GFP_KERNEL);
94 if (!hdmi_phy)
97 hdmi_phy->regs = devm_platform_ioremap_resource(pdev, 0);
98 if (IS_ERR(hdmi_phy->regs))
99 return PTR_ERR(hdmi_phy->regs);
113 hdmi_phy->dev = dev;
114 hdmi_phy->conf =
116 mtk_hdmi_phy_clk_get_data(hdmi_phy, &clk_init);
117 hdmi_phy->pll_hw.init = &clk_init;
118 hdmi_phy->pll = devm_clk_register(dev, &hdmi_phy->pll_hw);
119 if (IS_ERR(hdmi_phy->pll))
120 return dev_err_probe(dev, PTR_ERR(hdmi_phy->pll),
124 &hdmi_phy->ibias);
129 &hdmi_phy->ibias_up);
134 hdmi_phy->drv_imp_clk = 0x30;
135 hdmi_phy->drv_imp_d2 = 0x30;
136 hdmi_phy->drv_imp_d1 = 0x30;
137 hdmi_phy->drv_imp_d0 = 0x30;
139 phy = devm_phy_create(dev, NULL, mtk_hdmi_phy_dev_get_ops(hdmi_phy));
143 phy_set_drvdata(phy, hdmi_phy);
150 if (hdmi_phy->conf->pll_default_off)
151 hdmi_phy->conf->hdmi_phy_disable_tmds(hdmi_phy);
154 hdmi_phy->pll);