linux/drivers/gpu/drm/mediatek
AngeloGioacchino Del Regno 988705e558 drm/mediatek: mtk_dpi: Explicitly manage TVD clock in power on/off
[ Upstream commit 473c33f5ce ]

In preparation for adding support for MT8195's HDMI reserved
DPI, add calls to clk_prepare_enable() / clk_disable_unprepare()
for the TVD clock: in this particular case, the aforementioned
clock is not (and cannot be) parented to neither pixel or engine
clocks hence it won't get enabled automatically by the clock
framework.

Please note that on all of the currently supported MediaTek
platforms, the TVD clock is always a parent of either pixel or
engine clocks, and this means that the common clock framework
is already enabling this clock before the children.
On such platforms, this commit will only increase the refcount
of the TVD clock without any functional change.

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20250217154836.108895-10-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-25 10:45:19 +02:00
..
Kconfig drm/mediatek: stop selecting foreign drivers 2025-01-17 13:36:15 +01:00
Makefile drm/mediatek: Add ovl_adaptor support for MT8195 2023-03-22 16:25:16 +00:00
mtk_cec.c drm/mediatek: Convert to platform remove callback returning void 2023-08-10 23:41:55 +00:00
mtk_cec.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mtk_disp_aal.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_ccorr.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_color.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_drv.h drm/mediatek: Add ovl_adaptor get format function 2023-04-03 03:06:01 +00:00
mtk_disp_gamma.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_disp_merge.c drm/mediatek: Fix underrun in VDO1 when switches off the layer 2024-01-25 15:35:36 -08:00
mtk_disp_ovl.c drm/mediatek: Only touch DISP_REG_OVL_PITCH_MSB if AFBC is supported 2025-01-17 13:36:26 +01:00
mtk_disp_ovl_adaptor.c drm/mediatek: ovl_adaptor: Add missing of_node_put() 2024-10-10 11:57:45 +02:00
mtk_disp_rdma.c Mediatek DRM Next for Linux 6.6 2023-08-15 12:07:19 +10:00
mtk_dp.c drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr 2025-04-10 14:37:29 +02:00
mtk_dp_reg.h drm/mediatek: dp: Remove unused register definitions 2022-09-19 12:17:42 +03:00
mtk_dpi.c drm/mediatek: mtk_dpi: Explicitly manage TVD clock in power on/off 2025-04-25 10:45:19 +02:00
mtk_dpi_regs.h drm/mediatek: dpi: Add dp_intf support 2022-07-06 22:51:44 +08:00
mtk_drm_crtc.c drm/mediatek: Use spin_lock_irqsave() for CRTC event lock 2024-10-04 16:29:10 +02:00
mtk_drm_crtc.h drm/mediatek: Add drm ovl_adaptor sub driver for MT8195 2023-03-22 16:45:23 +00:00
mtk_drm_ddp_comp.c drm/mediatek: Remove less-than-zero comparison of an unsigned value 2024-08-03 08:53:52 +02:00
mtk_drm_ddp_comp.h drm/mediatek: Add drm ovl_adaptor sub driver for MT8195 2023-03-22 16:45:23 +00:00
mtk_drm_drv.c drm/mediatek: Set private->all_drm_private[i]->drm to NULL if mtk_drm_bind returns err 2025-01-17 13:36:15 +01:00
mtk_drm_drv.h drm/mediatek: Add drm ovl_adaptor sub driver for MT8195 2023-03-22 16:45:23 +00:00
mtk_drm_gem.c drm/mediatek: Add 0 size check to mtk_drm_gem_obj 2024-06-12 11:11:59 +02:00
mtk_drm_gem.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_plane.c drm/mediatek: Add missing plane settings when async update 2024-08-03 08:53:50 +02:00
mtk_drm_plane.h drm/mediatek: Refactor pixel format logic 2023-03-12 15:03:56 +00:00
mtk_dsi.c drm/mediatek: dsi: fix error codes in mtk_dsi_host_transfer() 2025-04-10 14:37:29 +02:00
mtk_ethdr.c drm/mediatek: Turn off the layers with zero width or height 2024-08-03 08:53:51 +02:00
mtk_ethdr.h drm/mediatek: Add ETHDR support for MT8195 2023-03-22 16:25:00 +00:00
mtk_hdmi.c drm/mediatek: mtk_hdmi: Fix typo for aud_sampe_size member 2025-04-10 14:37:27 +02:00
mtk_hdmi.h drm/mediatek: Separate mtk_hdmi_phy to an independent module 2020-09-06 07:02:54 +08:00
mtk_hdmi_ddc.c drm/mediatek: Convert to platform remove callback returning void 2023-08-10 23:41:55 +00:00
mtk_hdmi_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mtk_mdp_rdma.c drm/mediatek: Return error if MDP RDMA failed to enable the clock 2024-01-25 15:35:36 -08:00
mtk_mdp_rdma.h drm/mediatek: Add display MDP RDMA support for MT8195 2022-06-27 22:24:14 +08:00