Lines Matching +full:tegra20 +full:- +full:dc
1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <sound/hdmi-codec.h>
36 #include "dc.h"
116 u32 value = readl(hdmi->regs + (offset << 2)); in tegra_hdmi_readl()
118 trace_hdmi_readl(hdmi->dev, offset, value); in tegra_hdmi_readl()
126 trace_hdmi_writel(hdmi->dev, offset, value); in tegra_hdmi_writel()
127 writel(value, hdmi->regs + (offset << 2)); in tegra_hdmi_writel()
375 mutex_lock(&hdmi->audio_lock); in tegra_hdmi_audio_lock()
376 disable_irq(hdmi->irq); in tegra_hdmi_audio_lock()
381 enable_irq(hdmi->irq); in tegra_hdmi_audio_unlock()
382 mutex_unlock(&hdmi->audio_lock); in tegra_hdmi_audio_unlock()
393 int64_t min_err = (uint64_t)-1 >> 1; in tegra_hdmi_get_audio_config()
394 unsigned int min_delta = -1; in tegra_hdmi_get_audio_config()
398 config->n = -1; in tegra_hdmi_get_audio_config()
418 delta = abs(n - ideal_n); in tegra_hdmi_get_audio_config()
421 err = abs((int64_t)cts_f - cts); in tegra_hdmi_get_audio_config()
423 config->n = n; in tegra_hdmi_get_audio_config()
424 config->cts = cts >> 16; in tegra_hdmi_get_audio_config()
425 config->aval = aval_f >> 16; in tegra_hdmi_get_audio_config()
431 return config->n != -1 ? 0 : -EINVAL; in tegra_hdmi_get_audio_config()
455 value = AUDIO_FS_LOW(eight_half - delta) | in tegra_hdmi_setup_audio_fs_tables()
478 if (regs[i].sample_rate == hdmi->format.sample_rate) { in tegra_hdmi_write_aval()
491 switch (hdmi->audio_source) { in tegra_hdmi_setup_audio()
493 if (hdmi->config->has_hda) in tegra_hdmi_setup_audio()
496 return -EINVAL; in tegra_hdmi_setup_audio()
501 if (hdmi->config->has_hda) in tegra_hdmi_setup_audio()
508 if (hdmi->config->has_hda) in tegra_hdmi_setup_audio()
522 if (hdmi->config->has_hda) { in tegra_hdmi_setup_audio()
533 if (hdmi->format.channels == 2) in tegra_hdmi_setup_audio()
544 * On Tegra20, HDA is not a supported audio source and the source in tegra_hdmi_setup_audio()
550 if (!hdmi->config->has_hda) in tegra_hdmi_setup_audio()
556 * Advertise support for High Bit-Rate on Tegra114 and later. in tegra_hdmi_setup_audio()
558 if (hdmi->config->has_hbr) { in tegra_hdmi_setup_audio()
564 err = tegra_hdmi_get_audio_config(hdmi->format.sample_rate, in tegra_hdmi_setup_audio()
565 hdmi->pixel_clock, &config); in tegra_hdmi_setup_audio()
567 dev_err(hdmi->dev, in tegra_hdmi_setup_audio()
569 hdmi->format.sample_rate, hdmi->pixel_clock); in tegra_hdmi_setup_audio()
573 dev_dbg(hdmi->dev, "audio: pixclk=%u, n=%u, cts=%u, aval=%u\n", in tegra_hdmi_setup_audio()
574 hdmi->pixel_clock, config.n, config.cts, config.aval); in tegra_hdmi_setup_audio()
579 AUDIO_N_VALUE(config.n - 1); in tegra_hdmi_setup_audio()
595 if (hdmi->config->has_hda) in tegra_hdmi_setup_audio()
623 size_t length = drm_eld_size(hdmi->output.connector.eld), i; in tegra_hdmi_write_eld()
627 tegra_hdmi_writel(hdmi, i << 8 | hdmi->output.connector.eld[i], in tegra_hdmi_write_eld()
649 for (i = size; i > 0; i--) in tegra_hdmi_subpack()
650 value = (value << 8) | ptr[i - 1]; in tegra_hdmi_subpack()
677 dev_err(hdmi->dev, "unsupported infoframe type: %02x\n", in tegra_hdmi_write_infopack()
690 * - subpack_low: bytes 0 - 3 in tegra_hdmi_write_infopack()
691 * - subpack_high: bytes 4 - 6 (with byte 7 padded to 0x00) in tegra_hdmi_write_infopack()
694 size_t rem = size - i, num = min_t(size_t, rem, 4); in tegra_hdmi_write_infopack()
699 num = min_t(size_t, rem - num, 3); in tegra_hdmi_write_infopack()
714 &hdmi->output.connector, mode); in tegra_hdmi_setup_avi_infoframe()
716 dev_err(hdmi->dev, "failed to setup AVI infoframe: %zd\n", err); in tegra_hdmi_setup_avi_infoframe()
722 dev_err(hdmi->dev, "failed to pack AVI infoframe: %zd\n", err); in tegra_hdmi_setup_avi_infoframe()
755 dev_err(hdmi->dev, "failed to setup audio infoframe: %zd\n", in tegra_hdmi_setup_audio_infoframe()
760 frame.channels = hdmi->format.channels; in tegra_hdmi_setup_audio_infoframe()
764 dev_err(hdmi->dev, "failed to pack audio infoframe: %zd\n", in tegra_hdmi_setup_audio_infoframe()
807 dev_err(hdmi->dev, "failed to pack vendor infoframe: %zd\n", in tegra_hdmi_setup_stereo_infoframe()
838 tegra_hdmi_writel(hdmi, tmds->pll0, HDMI_NV_PDISP_SOR_PLL0); in tegra_hdmi_setup_tmds()
839 tegra_hdmi_writel(hdmi, tmds->pll1, HDMI_NV_PDISP_SOR_PLL1); in tegra_hdmi_setup_tmds()
840 tegra_hdmi_writel(hdmi, tmds->pe_current, HDMI_NV_PDISP_PE_CURRENT); in tegra_hdmi_setup_tmds()
842 tegra_hdmi_writel(hdmi, tmds->drive_current, in tegra_hdmi_setup_tmds()
845 value = tegra_hdmi_readl(hdmi, hdmi->config->fuse_override_offset); in tegra_hdmi_setup_tmds()
846 value |= hdmi->config->fuse_override_value; in tegra_hdmi_setup_tmds()
847 tegra_hdmi_writel(hdmi, value, hdmi->config->fuse_override_offset); in tegra_hdmi_setup_tmds()
849 if (hdmi->config->has_sor_io_peak_current) in tegra_hdmi_setup_tmds()
850 tegra_hdmi_writel(hdmi, tmds->peak_current, in tegra_hdmi_setup_tmds()
873 return output->connector.display_info.is_hdmi; in tegra_output_is_hdmi()
1062 struct drm_info_node *node = s->private; in tegra_hdmi_show_regs()
1063 struct tegra_hdmi *hdmi = node->info_ent->data; in tegra_hdmi_show_regs()
1064 struct drm_crtc *crtc = hdmi->output.encoder.crtc; in tegra_hdmi_show_regs()
1065 struct drm_device *drm = node->minor->dev; in tegra_hdmi_show_regs()
1071 if (!crtc || !crtc->state->active) { in tegra_hdmi_show_regs()
1072 err = -EBUSY; in tegra_hdmi_show_regs()
1079 seq_printf(s, "%-56s %#05x %08x\n", tegra_hdmi_regs[i].name, in tegra_hdmi_show_regs()
1096 struct drm_minor *minor = connector->dev->primary; in tegra_hdmi_late_register()
1097 struct dentry *root = connector->debugfs_entry; in tegra_hdmi_late_register()
1100 hdmi->debugfs_files = kmemdup(debugfs_files, sizeof(debugfs_files), in tegra_hdmi_late_register()
1102 if (!hdmi->debugfs_files) in tegra_hdmi_late_register()
1103 return -ENOMEM; in tegra_hdmi_late_register()
1106 hdmi->debugfs_files[i].data = hdmi; in tegra_hdmi_late_register()
1108 drm_debugfs_create_files(hdmi->debugfs_files, count, root, minor); in tegra_hdmi_late_register()
1116 struct drm_minor *minor = connector->dev->primary; in tegra_hdmi_early_unregister()
1120 drm_debugfs_remove_files(hdmi->debugfs_files, count, in tegra_hdmi_early_unregister()
1121 connector->debugfs_entry, minor); in tegra_hdmi_early_unregister()
1122 kfree(hdmi->debugfs_files); in tegra_hdmi_early_unregister()
1123 hdmi->debugfs_files = NULL; in tegra_hdmi_early_unregister()
1143 unsigned long pclk = mode->clock * 1000; in tegra_hdmi_connector_mode_valid()
1148 parent = clk_get_parent(hdmi->clk_parent); in tegra_hdmi_connector_mode_valid()
1166 struct tegra_dc *dc = to_tegra_dc(encoder->crtc); in tegra_hdmi_encoder_disable() local
1177 if (dc) { in tegra_hdmi_encoder_disable()
1178 value = tegra_dc_readl(dc, DC_DISP_DISP_WIN_OPTIONS); in tegra_hdmi_encoder_disable()
1180 tegra_dc_writel(dc, value, DC_DISP_DISP_WIN_OPTIONS); in tegra_hdmi_encoder_disable()
1182 tegra_dc_commit(dc); in tegra_hdmi_encoder_disable()
1185 if (!hdmi->dvi) { in tegra_hdmi_encoder_disable()
1186 if (hdmi->stereo) in tegra_hdmi_encoder_disable()
1197 hdmi->pixel_clock = 0; in tegra_hdmi_encoder_disable()
1201 err = host1x_client_suspend(&hdmi->client); in tegra_hdmi_encoder_disable()
1203 dev_err(hdmi->dev, "failed to suspend: %d\n", err); in tegra_hdmi_encoder_disable()
1208 struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; in tegra_hdmi_encoder_enable()
1211 struct tegra_dc *dc = to_tegra_dc(encoder->crtc); in tegra_hdmi_encoder_enable() local
1218 err = host1x_client_resume(&hdmi->client); in tegra_hdmi_encoder_enable()
1220 dev_err(hdmi->dev, "failed to resume: %d\n", err); in tegra_hdmi_encoder_enable()
1234 hdmi->pixel_clock = mode->clock * 1000; in tegra_hdmi_encoder_enable()
1235 h_sync_width = mode->hsync_end - mode->hsync_start; in tegra_hdmi_encoder_enable()
1236 h_back_porch = mode->htotal - mode->hsync_end; in tegra_hdmi_encoder_enable()
1237 h_front_porch = mode->hsync_start - mode->hdisplay; in tegra_hdmi_encoder_enable()
1239 err = dev_pm_opp_set_rate(hdmi->dev, hdmi->pixel_clock); in tegra_hdmi_encoder_enable()
1241 dev_err(hdmi->dev, "failed to set HDMI clock frequency: %d\n", in tegra_hdmi_encoder_enable()
1245 DRM_DEBUG_KMS("HDMI clock rate: %lu Hz\n", clk_get_rate(hdmi->clk)); in tegra_hdmi_encoder_enable()
1258 tegra_dc_writel(dc, VSYNC_H_POSITION(1), in tegra_hdmi_encoder_enable()
1260 tegra_dc_writel(dc, DITHER_CONTROL_DISABLE | BASE_COLOR_SIZE_888, in tegra_hdmi_encoder_enable()
1264 pulse_start = 1 + h_sync_width + h_back_porch - 10; in tegra_hdmi_encoder_enable()
1266 tegra_dc_writel(dc, H_PULSE2_ENABLE, DC_DISP_DISP_SIGNAL_OPTIONS0); in tegra_hdmi_encoder_enable()
1270 tegra_dc_writel(dc, value, DC_DISP_H_PULSE2_CONTROL); in tegra_hdmi_encoder_enable()
1273 tegra_dc_writel(dc, value, DC_DISP_H_PULSE2_POSITION_A); in tegra_hdmi_encoder_enable()
1279 if (dc->pipe) in tegra_hdmi_encoder_enable()
1284 if ((mode->hdisplay == 720) && ((mode->vdisplay == 480) || in tegra_hdmi_encoder_enable()
1285 (mode->vdisplay == 576))) in tegra_hdmi_encoder_enable()
1294 div82 = clk_get_rate(hdmi->clk) / 1000000 * 4; in tegra_hdmi_encoder_enable()
1298 hdmi->dvi = !tegra_output_is_hdmi(output); in tegra_hdmi_encoder_enable()
1299 if (!hdmi->dvi) { in tegra_hdmi_encoder_enable()
1304 if (hdmi->format.sample_rate > 0) { in tegra_hdmi_encoder_enable()
1307 hdmi->dvi = true; in tegra_hdmi_encoder_enable()
1311 if (hdmi->config->has_hda) in tegra_hdmi_encoder_enable()
1317 h_front_porch - rekey - 18) / 32); in tegra_hdmi_encoder_enable()
1319 if (!hdmi->dvi) in tegra_hdmi_encoder_enable()
1324 if (!hdmi->dvi) { in tegra_hdmi_encoder_enable()
1328 if (hdmi->stereo) in tegra_hdmi_encoder_enable()
1333 for (i = 0; i < hdmi->config->num_tmds; i++) { in tegra_hdmi_encoder_enable()
1334 if (hdmi->pixel_clock <= hdmi->config->tmds[i].pclk) { in tegra_hdmi_encoder_enable()
1335 tegra_hdmi_setup_tmds(hdmi, &hdmi->config->tmds[i]); in tegra_hdmi_encoder_enable()
1381 BUG_ON(--retries < 0); in tegra_hdmi_encoder_enable()
1392 if (mode->flags & DRM_MODE_FLAG_PHSYNC) in tegra_hdmi_encoder_enable()
1395 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in tegra_hdmi_encoder_enable()
1398 if (mode->flags & DRM_MODE_FLAG_PVSYNC) in tegra_hdmi_encoder_enable()
1401 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in tegra_hdmi_encoder_enable()
1415 value = tegra_dc_readl(dc, DC_DISP_DISP_WIN_OPTIONS); in tegra_hdmi_encoder_enable()
1417 tegra_dc_writel(dc, value, DC_DISP_DISP_WIN_OPTIONS); in tegra_hdmi_encoder_enable()
1419 tegra_dc_commit(dc); in tegra_hdmi_encoder_enable()
1421 if (!hdmi->dvi) { in tegra_hdmi_encoder_enable()
1426 if (hdmi->stereo) in tegra_hdmi_encoder_enable()
1441 struct tegra_dc *dc = to_tegra_dc(conn_state->crtc); in tegra_hdmi_encoder_atomic_check() local
1442 unsigned long pclk = crtc_state->mode.clock * 1000; in tegra_hdmi_encoder_atomic_check()
1446 err = tegra_dc_state_setup_clock(dc, crtc_state, hdmi->clk_parent, in tegra_hdmi_encoder_atomic_check()
1449 dev_err(output->dev, "failed to setup CRTC state: %d\n", err); in tegra_hdmi_encoder_atomic_check()
1471 hdmi->format.sample_rate = hparms->sample_rate; in tegra_hdmi_hw_params()
1472 hdmi->format.channels = hparms->channels; in tegra_hdmi_hw_params()
1474 if (hdmi->pixel_clock && !hdmi->dvi) in tegra_hdmi_hw_params()
1487 ret = host1x_client_resume(&hdmi->client); in tegra_hdmi_audio_startup()
1489 dev_err(hdmi->dev, "failed to resume: %d\n", ret); in tegra_hdmi_audio_startup()
1501 hdmi->format.sample_rate = 0; in tegra_hdmi_audio_shutdown()
1502 hdmi->format.channels = 0; in tegra_hdmi_audio_shutdown()
1506 ret = host1x_client_suspend(&hdmi->client); in tegra_hdmi_audio_shutdown()
1508 dev_err(hdmi->dev, "failed to suspend: %d\n", ret); in tegra_hdmi_audio_shutdown()
1521 if (hdmi->config->has_hda) in tegra_hdmi_codec_register()
1528 hdmi->audio_pdev = platform_device_register_data(hdmi->dev, in tegra_hdmi_codec_register()
1533 if (IS_ERR(hdmi->audio_pdev)) in tegra_hdmi_codec_register()
1534 return PTR_ERR(hdmi->audio_pdev); in tegra_hdmi_codec_register()
1536 hdmi->format.channels = 2; in tegra_hdmi_codec_register()
1543 if (hdmi->audio_pdev) in tegra_hdmi_codec_unregister()
1544 platform_device_unregister(hdmi->audio_pdev); in tegra_hdmi_codec_unregister()
1550 struct drm_device *drm = dev_get_drvdata(client->host); in tegra_hdmi_init()
1554 hdmi->output.dev = client->dev; in tegra_hdmi_init()
1556 drm_simple_encoder_init(drm, &hdmi->output.encoder, in tegra_hdmi_init()
1558 drm_encoder_helper_add(&hdmi->output.encoder, in tegra_hdmi_init()
1561 if (hdmi->output.bridge) { in tegra_hdmi_init()
1562 err = drm_bridge_attach(&hdmi->output.encoder, hdmi->output.bridge, in tegra_hdmi_init()
1565 dev_err(client->dev, "failed to attach bridge: %d\n", in tegra_hdmi_init()
1570 connector = drm_bridge_connector_init(drm, &hdmi->output.encoder); in tegra_hdmi_init()
1572 dev_err(client->dev, in tegra_hdmi_init()
1578 drm_connector_attach_encoder(connector, &hdmi->output.encoder); in tegra_hdmi_init()
1580 drm_connector_init_with_ddc(drm, &hdmi->output.connector, in tegra_hdmi_init()
1583 hdmi->output.ddc); in tegra_hdmi_init()
1584 drm_connector_helper_add(&hdmi->output.connector, in tegra_hdmi_init()
1586 hdmi->output.connector.dpms = DRM_MODE_DPMS_OFF; in tegra_hdmi_init()
1588 drm_connector_attach_encoder(&hdmi->output.connector, in tegra_hdmi_init()
1589 &hdmi->output.encoder); in tegra_hdmi_init()
1590 drm_connector_register(&hdmi->output.connector); in tegra_hdmi_init()
1593 err = tegra_output_init(drm, &hdmi->output); in tegra_hdmi_init()
1595 dev_err(client->dev, "failed to initialize output: %d\n", err); in tegra_hdmi_init()
1599 hdmi->output.encoder.possible_crtcs = 0x3; in tegra_hdmi_init()
1601 err = regulator_enable(hdmi->hdmi); in tegra_hdmi_init()
1603 dev_err(client->dev, "failed to enable HDMI regulator: %d\n", in tegra_hdmi_init()
1608 err = regulator_enable(hdmi->pll); in tegra_hdmi_init()
1610 dev_err(hdmi->dev, "failed to enable PLL regulator: %d\n", err); in tegra_hdmi_init()
1614 err = regulator_enable(hdmi->vdd); in tegra_hdmi_init()
1616 dev_err(hdmi->dev, "failed to enable VDD regulator: %d\n", err); in tegra_hdmi_init()
1622 dev_err(hdmi->dev, "failed to register audio codec: %d\n", err); in tegra_hdmi_init()
1629 regulator_disable(hdmi->vdd); in tegra_hdmi_init()
1631 regulator_disable(hdmi->pll); in tegra_hdmi_init()
1633 regulator_disable(hdmi->hdmi); in tegra_hdmi_init()
1635 tegra_output_exit(&hdmi->output); in tegra_hdmi_init()
1646 tegra_output_exit(&hdmi->output); in tegra_hdmi_exit()
1648 regulator_disable(hdmi->vdd); in tegra_hdmi_exit()
1649 regulator_disable(hdmi->pll); in tegra_hdmi_exit()
1650 regulator_disable(hdmi->hdmi); in tegra_hdmi_exit()
1658 struct device *dev = client->dev; in tegra_hdmi_runtime_suspend()
1661 err = reset_control_assert(hdmi->rst); in tegra_hdmi_runtime_suspend()
1669 clk_disable_unprepare(hdmi->clk); in tegra_hdmi_runtime_suspend()
1678 struct device *dev = client->dev; in tegra_hdmi_runtime_resume()
1687 err = clk_prepare_enable(hdmi->clk); in tegra_hdmi_runtime_resume()
1695 err = reset_control_deassert(hdmi->rst); in tegra_hdmi_runtime_resume()
1704 clk_disable_unprepare(hdmi->clk); in tegra_hdmi_runtime_resume()
1758 { .compatible = "nvidia,tegra124-hdmi", .data = &tegra124_hdmi_config },
1759 { .compatible = "nvidia,tegra114-hdmi", .data = &tegra114_hdmi_config },
1760 { .compatible = "nvidia,tegra30-hdmi", .data = &tegra30_hdmi_config },
1761 { .compatible = "nvidia,tegra20-hdmi", .data = &tegra20_hdmi_config },
1783 tegra_hda_parse_format(format, &hdmi->format); in tegra_hdmi_irq()
1799 hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); in tegra_hdmi_probe()
1801 return -ENOMEM; in tegra_hdmi_probe()
1803 hdmi->config = of_device_get_match_data(&pdev->dev); in tegra_hdmi_probe()
1804 hdmi->dev = &pdev->dev; in tegra_hdmi_probe()
1806 hdmi->audio_source = AUTO; in tegra_hdmi_probe()
1807 hdmi->stereo = false; in tegra_hdmi_probe()
1808 hdmi->dvi = false; in tegra_hdmi_probe()
1810 mutex_init(&hdmi->audio_lock); in tegra_hdmi_probe()
1812 hdmi->clk = devm_clk_get(&pdev->dev, NULL); in tegra_hdmi_probe()
1813 if (IS_ERR(hdmi->clk)) { in tegra_hdmi_probe()
1814 dev_err(&pdev->dev, "failed to get clock\n"); in tegra_hdmi_probe()
1815 return PTR_ERR(hdmi->clk); in tegra_hdmi_probe()
1818 hdmi->rst = devm_reset_control_get(&pdev->dev, "hdmi"); in tegra_hdmi_probe()
1819 if (IS_ERR(hdmi->rst)) { in tegra_hdmi_probe()
1820 dev_err(&pdev->dev, "failed to get reset\n"); in tegra_hdmi_probe()
1821 return PTR_ERR(hdmi->rst); in tegra_hdmi_probe()
1824 hdmi->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_hdmi_probe()
1825 if (IS_ERR(hdmi->clk_parent)) in tegra_hdmi_probe()
1826 return PTR_ERR(hdmi->clk_parent); in tegra_hdmi_probe()
1828 err = clk_set_parent(hdmi->clk, hdmi->clk_parent); in tegra_hdmi_probe()
1830 dev_err(&pdev->dev, "failed to setup clocks: %d\n", err); in tegra_hdmi_probe()
1834 hdmi->hdmi = devm_regulator_get(&pdev->dev, "hdmi"); in tegra_hdmi_probe()
1835 err = PTR_ERR_OR_ZERO(hdmi->hdmi); in tegra_hdmi_probe()
1837 return dev_err_probe(&pdev->dev, err, in tegra_hdmi_probe()
1840 hdmi->pll = devm_regulator_get(&pdev->dev, "pll"); in tegra_hdmi_probe()
1841 err = PTR_ERR_OR_ZERO(hdmi->pll); in tegra_hdmi_probe()
1843 return dev_err_probe(&pdev->dev, err, in tegra_hdmi_probe()
1846 hdmi->vdd = devm_regulator_get(&pdev->dev, "vdd"); in tegra_hdmi_probe()
1847 err = PTR_ERR_OR_ZERO(hdmi->vdd); in tegra_hdmi_probe()
1849 return dev_err_probe(&pdev->dev, err, in tegra_hdmi_probe()
1852 hdmi->output.dev = &pdev->dev; in tegra_hdmi_probe()
1854 err = tegra_output_probe(&hdmi->output); in tegra_hdmi_probe()
1858 hdmi->regs = devm_platform_ioremap_resource(pdev, 0); in tegra_hdmi_probe()
1859 if (IS_ERR(hdmi->regs)) in tegra_hdmi_probe()
1860 return PTR_ERR(hdmi->regs); in tegra_hdmi_probe()
1866 hdmi->irq = err; in tegra_hdmi_probe()
1868 err = devm_request_irq(hdmi->dev, hdmi->irq, tegra_hdmi_irq, 0, in tegra_hdmi_probe()
1869 dev_name(hdmi->dev), hdmi); in tegra_hdmi_probe()
1871 dev_err(&pdev->dev, "failed to request IRQ#%u: %d\n", in tegra_hdmi_probe()
1872 hdmi->irq, err); in tegra_hdmi_probe()
1878 err = devm_pm_runtime_enable(&pdev->dev); in tegra_hdmi_probe()
1882 err = devm_tegra_core_dev_init_opp_table_common(&pdev->dev); in tegra_hdmi_probe()
1886 INIT_LIST_HEAD(&hdmi->client.list); in tegra_hdmi_probe()
1887 hdmi->client.ops = &hdmi_client_ops; in tegra_hdmi_probe()
1888 hdmi->client.dev = &pdev->dev; in tegra_hdmi_probe()
1890 err = host1x_client_register(&hdmi->client); in tegra_hdmi_probe()
1892 dev_err(&pdev->dev, "failed to register host1x client: %d\n", in tegra_hdmi_probe()
1904 host1x_client_unregister(&hdmi->client); in tegra_hdmi_remove()
1906 tegra_output_remove(&hdmi->output); in tegra_hdmi_remove()
1911 .name = "tegra-hdmi",