Lines Matching refs:hdmi

43 static struct omap_hdmi hdmi;  variable
51 r = pm_runtime_get_sync(&hdmi.pdev->dev); in hdmi_runtime_get()
65 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put()
105 if (hdmi.vdda_reg != NULL) in hdmi_init_regulator()
108 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); in hdmi_init_regulator()
125 hdmi.vdda_reg = reg; in hdmi_init_regulator()
134 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core()
145 hdmi.core_enabled = true; in hdmi_power_on_core()
150 regulator_disable(hdmi.vdda_reg); in hdmi_power_on_core()
157 hdmi.core_enabled = false; in hdmi_power_off_core()
160 regulator_disable(hdmi.vdda_reg); in hdmi_power_off_core()
167 struct omap_overlay_manager *mgr = hdmi.output.manager; in hdmi_power_on_full()
168 struct hdmi_wp_data *wp = &hdmi.wp; in hdmi_power_on_full()
179 p = &hdmi.cfg.timings; in hdmi_power_on_full()
183 hdmi_pll_compute(&hdmi.pll, p->pixelclock, &hdmi_cinfo); in hdmi_power_on_full()
185 r = dss_pll_enable(&hdmi.pll.pll); in hdmi_power_on_full()
191 r = dss_pll_set_config(&hdmi.pll.pll, &hdmi_cinfo); in hdmi_power_on_full()
197 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
208 hdmi4_configure(&hdmi.core, &hdmi.wp, &hdmi.cfg); in hdmi_power_on_full()
216 r = hdmi_wp_video_start(&hdmi.wp); in hdmi_power_on_full()
230 hdmi_wp_video_stop(&hdmi.wp); in hdmi_power_on_full()
233 hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_OFF); in hdmi_power_on_full()
236 dss_pll_disable(&hdmi.pll.pll); in hdmi_power_on_full()
244 struct omap_overlay_manager *mgr = hdmi.output.manager; in hdmi_power_off_full()
246 hdmi_wp_clear_irqenable(&hdmi.wp, 0xffffffff); in hdmi_power_off_full()
250 hdmi_wp_video_stop(&hdmi.wp); in hdmi_power_off_full()
252 hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_OFF); in hdmi_power_off_full()
254 dss_pll_disable(&hdmi.pll.pll); in hdmi_power_off_full()
262 struct omap_dss_device *out = &hdmi.output; in hdmi_display_check_timing()
273 mutex_lock(&hdmi.lock); in hdmi_display_set_timing()
275 hdmi.cfg.timings = *timings; in hdmi_display_set_timing()
279 mutex_unlock(&hdmi.lock); in hdmi_display_set_timing()
285 *timings = hdmi.cfg.timings; in hdmi_display_get_timings()
290 mutex_lock(&hdmi.lock); in hdmi_dump_regs()
293 mutex_unlock(&hdmi.lock); in hdmi_dump_regs()
297 hdmi_wp_dump(&hdmi.wp, s); in hdmi_dump_regs()
298 hdmi_pll_dump(&hdmi.pll, s); in hdmi_dump_regs()
299 hdmi_phy_dump(&hdmi.phy, s); in hdmi_dump_regs()
300 hdmi4_core_dump(&hdmi.core, s); in hdmi_dump_regs()
303 mutex_unlock(&hdmi.lock); in hdmi_dump_regs()
310 mutex_lock(&hdmi.lock); in read_edid()
315 r = hdmi4_read_edid(&hdmi.core, buf, len); in read_edid()
318 mutex_unlock(&hdmi.lock); in read_edid()
325 struct omap_dss_device *out = &hdmi.output; in hdmi_display_enable()
330 mutex_lock(&hdmi.lock); in hdmi_display_enable()
344 hdmi.display_enabled = true; in hdmi_display_enable()
346 mutex_unlock(&hdmi.lock); in hdmi_display_enable()
350 mutex_unlock(&hdmi.lock); in hdmi_display_enable()
358 mutex_lock(&hdmi.lock); in hdmi_display_disable()
360 if (hdmi.audio_pdev && hdmi.audio_abort_cb) in hdmi_display_disable()
361 hdmi.audio_abort_cb(&hdmi.audio_pdev->dev); in hdmi_display_disable()
365 hdmi.display_enabled = false; in hdmi_display_disable()
367 mutex_unlock(&hdmi.lock); in hdmi_display_disable()
376 mutex_lock(&hdmi.lock); in hdmi_core_enable()
384 mutex_unlock(&hdmi.lock); in hdmi_core_enable()
388 mutex_unlock(&hdmi.lock); in hdmi_core_enable()
396 mutex_lock(&hdmi.lock); in hdmi_core_disable()
400 mutex_unlock(&hdmi.lock); in hdmi_core_disable()
452 need_enable = hdmi.core_enabled == false; in hdmi_read_edid()
471 hdmi.cfg.infoframe = *avi; in hdmi_set_infoframe()
478 hdmi.cfg.hdmi_dvi_mode = hdmi_mode ? HDMI_HDMI : HDMI_DVI; in hdmi_set_hdmi_mode()
500 struct omap_dss_device *out = &hdmi.output; in hdmi_init_output()
507 out->ops.hdmi = &hdmi_ops; in hdmi_init_output()
515 struct omap_dss_device *out = &hdmi.output; in hdmi_uninit_output()
530 r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy); in hdmi_probe_of()
634 .audio_dma_addr = hdmi_wp_get_audio_dma_addr(&hdmi.wp), in hdmi_audio_register()
638 hdmi.audio_pdev = platform_device_register_data( in hdmi_audio_register()
642 if (IS_ERR(hdmi.audio_pdev)) in hdmi_audio_register()
643 return PTR_ERR(hdmi.audio_pdev); in hdmi_audio_register()
654 hdmi.pdev = pdev; in omapdss_hdmihw_probe()
655 dev_set_drvdata(&pdev->dev, &hdmi); in omapdss_hdmihw_probe()
657 mutex_init(&hdmi.lock); in omapdss_hdmihw_probe()
665 r = hdmi_wp_init(pdev, &hdmi.wp); in omapdss_hdmihw_probe()
669 r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp); in omapdss_hdmihw_probe()
673 r = hdmi_phy_init(pdev, &hdmi.phy); in omapdss_hdmihw_probe()
677 r = hdmi4_core_init(pdev, &hdmi.core); in omapdss_hdmihw_probe()
690 IRQF_ONESHOT, "OMAP HDMI", &hdmi.wp); in omapdss_hdmihw_probe()
712 hdmi_pll_uninit(&hdmi.pll); in omapdss_hdmihw_probe()
718 if (hdmi.audio_pdev) in omapdss_hdmihw_remove()
719 platform_device_unregister(hdmi.audio_pdev); in omapdss_hdmihw_remove()
723 hdmi_pll_uninit(&hdmi.pll); in omapdss_hdmihw_remove()