Lines Matching refs:hdmi

110 static bool disable_pll_rejection(struct sti_hdmi *hdmi)  in disable_pll_rejection()  argument
116 val = readl(hdmi->syscfg + HDMI_REJECTION_PLL_CONFIGURATION); in disable_pll_rejection()
118 writel(val, hdmi->syscfg + HDMI_REJECTION_PLL_CONFIGURATION); in disable_pll_rejection()
121 val = readl(hdmi->syscfg + HDMI_REJECTION_PLL_STATUS); in disable_pll_rejection()
136 static bool enable_pll_rejection(struct sti_hdmi *hdmi) in enable_pll_rejection() argument
143 if (!disable_pll_rejection(hdmi)) in enable_pll_rejection()
146 inputclock = hdmi->mode.clock * 1000; in enable_pll_rejection()
175 val = readl(hdmi->syscfg + HDMI_REJECTION_PLL_CONFIGURATION); in enable_pll_rejection()
187 writel(val, hdmi->syscfg + HDMI_REJECTION_PLL_CONFIGURATION); in enable_pll_rejection()
190 val = readl(hdmi->syscfg + HDMI_REJECTION_PLL_STATUS); in enable_pll_rejection()
202 static bool sti_hdmi_tx3g0c55phy_start(struct sti_hdmi *hdmi) in sti_hdmi_tx3g0c55phy_start() argument
204 u32 ckpxpll = hdmi->mode.clock * 1000; in sti_hdmi_tx3g0c55phy_start()
208 if (!enable_pll_rejection(hdmi)) in sti_hdmi_tx3g0c55phy_start()
245 hdmi->event_received = false; in sti_hdmi_tx3g0c55phy_start()
247 hdmi_write(hdmi, pllctrl, HDMI_SRZ_PLL_CFG); in sti_hdmi_tx3g0c55phy_start()
250 wait_event_interruptible_timeout(hdmi->wait_event, in sti_hdmi_tx3g0c55phy_start()
251 hdmi->event_received == true, in sti_hdmi_tx3g0c55phy_start()
255 if ((hdmi_read(hdmi, HDMI_STA) & HDMI_STA_DLL_LCK) == 0) { in sti_hdmi_tx3g0c55phy_start()
271 hdmi_write(hdmi, val, HDMI_SRZ_TAP_1); in sti_hdmi_tx3g0c55phy_start()
273 hdmi_write(hdmi, val, HDMI_SRZ_TAP_2); in sti_hdmi_tx3g0c55phy_start()
275 hdmi_write(hdmi, val, HDMI_SRZ_TAP_3); in sti_hdmi_tx3g0c55phy_start()
279 hdmi_write(hdmi, val, HDMI_SRZ_CTRL); in sti_hdmi_tx3g0c55phy_start()
294 hdmi_write(hdmi, 0x0, HDMI_SRZ_TAP_1); in sti_hdmi_tx3g0c55phy_start()
295 hdmi_write(hdmi, 0x0, HDMI_SRZ_TAP_2); in sti_hdmi_tx3g0c55phy_start()
296 hdmi_write(hdmi, 0x0, HDMI_SRZ_TAP_3); in sti_hdmi_tx3g0c55phy_start()
297 hdmi_write(hdmi, HDMI_SRZ_CTRL_EXTERNAL_DATA_EN, HDMI_SRZ_CTRL); in sti_hdmi_tx3g0c55phy_start()
302 disable_pll_rejection(hdmi); in sti_hdmi_tx3g0c55phy_start()
312 static void sti_hdmi_tx3g0c55phy_stop(struct sti_hdmi *hdmi) in sti_hdmi_tx3g0c55phy_stop() argument
316 hdmi->event_received = false; in sti_hdmi_tx3g0c55phy_stop()
318 hdmi_write(hdmi, HDMI_SRZ_CTRL_POWER_DOWN, HDMI_SRZ_CTRL); in sti_hdmi_tx3g0c55phy_stop()
319 hdmi_write(hdmi, HDMI_SRZ_PLL_CFG_POWER_DOWN, HDMI_SRZ_PLL_CFG); in sti_hdmi_tx3g0c55phy_stop()
322 wait_event_interruptible_timeout(hdmi->wait_event, in sti_hdmi_tx3g0c55phy_stop()
323 hdmi->event_received == true, in sti_hdmi_tx3g0c55phy_stop()
327 if (hdmi_read(hdmi, HDMI_STA) & HDMI_STA_DLL_LCK) in sti_hdmi_tx3g0c55phy_stop()
330 disable_pll_rejection(hdmi); in sti_hdmi_tx3g0c55phy_stop()