xref: /linux/drivers/gpu/drm/mediatek/Kconfig (revision 3f1c07fc21c68bd3bd2df9d2c9441f6485e934d9)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2119f5173SCK Huconfig DRM_MEDIATEK
3119f5173SCK Hu	tristate "DRM Support for Mediatek SoCs"
4119f5173SCK Hu	depends on DRM
589115aeeSChen-Yu Tsai	depends on ARCH_MEDIATEK || COMPILE_TEST
6851da9acSArnd Bergmann	depends on COMMON_CLK
7d2db0b8fSVille Syrjälä	depends on HAVE_ARM_SMCCC || COMPILE_TEST
8b5db361eSArnd Bergmann	depends on OF
9c79484f6SYueHaibing	depends on MTK_MMSYS
106dc1f816SThomas Zimmermann	select DRM_CLIENT_SELECTION
1197370f8eSChen-Yu Tsai	select DRM_GEM_DMA_HELPER if DRM_FBDEV_EMULATION
12119f5173SCK Hu	select DRM_KMS_HELPER
139da7ec9bSDmitry Baryshkov	select DRM_DISPLAY_HELPER
149da7ec9bSDmitry Baryshkov	select DRM_BRIDGE_CONNECTOR
152e54c14eSCK Hu	select DRM_MIPI_DSI
162e54c14eSCK Hu	select DRM_PANEL
1772ac6969SSatendra Singh Thakur	select VIDEOMODE_HELPERS
18119f5173SCK Hu	help
19119f5173SCK Hu	  Choose this option if you have a Mediatek SoCs.
20119f5173SCK Hu	  The module will be called mediatek-drm
21119f5173SCK Hu	  This driver provides kernel mode setting and
22119f5173SCK Hu	  buffer management to userspace.
238f83f268SJie Qiu
24f70ac097SMarkus Schneider-Pargmannconfig DRM_MEDIATEK_DP
25f70ac097SMarkus Schneider-Pargmann	tristate "DRM DPTX Support for MediaTek SoCs"
26f70ac097SMarkus Schneider-Pargmann	depends on DRM_MEDIATEK
2705b8b6ddSGeert Uytterhoeven	select DRM_DISPLAY_HELPER
287fe302aeSGeert Uytterhoeven	select DRM_DISPLAY_DP_HELPER
291e0b9b44SGeert Uytterhoeven	select DRM_DISPLAY_DP_AUX_BUS
30f70ac097SMarkus Schneider-Pargmann	help
31f70ac097SMarkus Schneider-Pargmann	  DRM/KMS Display Port driver for MediaTek SoCs.
32f70ac097SMarkus Schneider-Pargmann
3386b1e68fSAngeloGioacchino Del Regnoconfig DRM_MEDIATEK_HDMI_COMMON
3486b1e68fSAngeloGioacchino Del Regno	tristate
3586b1e68fSAngeloGioacchino Del Regno	depends on DRM_MEDIATEK
3686b1e68fSAngeloGioacchino Del Regno	select DRM_DISPLAY_HDMI_HELPER
3786b1e68fSAngeloGioacchino Del Regno	select DRM_DISPLAY_HELPER
3886b1e68fSAngeloGioacchino Del Regno	select SND_SOC_HDMI_CODEC if SND_SOC
3986b1e68fSAngeloGioacchino Del Regno	help
4086b1e68fSAngeloGioacchino Del Regno	  MediaTek SoC HDMI common library
4186b1e68fSAngeloGioacchino Del Regno
428f83f268SJie Qiuconfig DRM_MEDIATEK_HDMI
438f83f268SJie Qiu	tristate "DRM HDMI Support for Mediatek SoCs"
448f83f268SJie Qiu	depends on DRM_MEDIATEK
4586b1e68fSAngeloGioacchino Del Regno	select DRM_MEDIATEK_HDMI_COMMON
468f83f268SJie Qiu	help
478f83f268SJie Qiu	  DRM/KMS HDMI driver for Mediatek SoCs
48*8d0f7988SAngeloGioacchino Del Regno
49*8d0f7988SAngeloGioacchino Del Regnoconfig DRM_MEDIATEK_HDMI_V2
50*8d0f7988SAngeloGioacchino Del Regno	tristate "DRM HDMI v2 IP support for MediaTek SoCs"
51*8d0f7988SAngeloGioacchino Del Regno	depends on DRM_MEDIATEK
52*8d0f7988SAngeloGioacchino Del Regno	select DRM_MEDIATEK_HDMI_COMMON
53*8d0f7988SAngeloGioacchino Del Regno	help
54*8d0f7988SAngeloGioacchino Del Regno	  Say yes here to enable support for the HDMIv2 IP and related
55*8d0f7988SAngeloGioacchino Del Regno	  DDCv2 as found in the MediaTek MT8195, MT8188 SoCs and other
56*8d0f7988SAngeloGioacchino Del Regno	  variants.
57*8d0f7988SAngeloGioacchino Del Regno	  This driver can also be built as a module. If so, the HDMIv2
58*8d0f7988SAngeloGioacchino Del Regno	  module will be called "mtk_hdmi_v2", and the DDCv2 module
59*8d0f7988SAngeloGioacchino Del Regno	  will be called "mtk_hdmi_ddc_v2".
60