xref: /linux/drivers/gpu/drm/renesas/rcar-du/Kconfig (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: GPL-2.0
2config DRM_RCAR_DU
3	tristate "DRM Support for R-Car Display Unit"
4	depends on DRM && OF
5	depends on ARM || ARM64 || COMPILE_TEST
6	depends on ARCH_RENESAS || COMPILE_TEST
7	select DRM_CLIENT_SELECTION
8	select DRM_KMS_HELPER
9	select DRM_DISPLAY_HELPER
10	select DRM_BRIDGE_CONNECTOR
11	select DRM_GEM_DMA_HELPER
12	select VIDEOMODE_HELPERS
13	help
14	  Choose this option if you have an R-Car chipset.
15	  If M is selected the module will be called rcar-du-drm.
16
17config DRM_RCAR_USE_CMM
18	bool "R-Car DU Color Management Module (CMM) Support"
19	depends on DRM_RCAR_DU
20	default DRM_RCAR_DU
21	help
22	  Enable support for R-Car Color Management Module (CMM).
23
24config DRM_RCAR_CMM
25	def_tristate DRM_RCAR_DU
26	depends on DRM_RCAR_USE_CMM
27
28config DRM_RCAR_DW_HDMI
29	tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support"
30	depends on DRM && OF
31	depends on DRM_RCAR_DU || COMPILE_TEST
32	select DRM_DW_HDMI
33	help
34	  Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder.
35
36config DRM_RCAR_USE_LVDS
37	bool "R-Car DU LVDS Encoder Support"
38	depends on DRM_BRIDGE && OF
39	depends on DRM_RCAR_DU || COMPILE_TEST
40	default DRM_RCAR_DU
41	help
42	  Enable support for the R-Car Display Unit embedded LVDS encoders.
43
44config DRM_RCAR_LVDS
45	def_tristate DRM_RCAR_DU
46	depends on DRM_RCAR_USE_LVDS
47	depends on PM
48	select DRM_KMS_HELPER
49	select DRM_PANEL
50	select RESET_CONTROLLER
51
52config DRM_RCAR_USE_MIPI_DSI
53	bool "R-Car DU MIPI DSI Encoder Support"
54	depends on DRM_BRIDGE && OF
55	depends on DRM_RCAR_DU || COMPILE_TEST
56	default DRM_RCAR_DU
57	help
58	  Enable support for the R-Car Display Unit embedded MIPI DSI encoders.
59
60config DRM_RCAR_MIPI_DSI
61	def_tristate DRM_RCAR_DU
62	depends on DRM_RCAR_USE_MIPI_DSI
63	select DRM_MIPI_DSI
64	select RESET_CONTROLLER
65
66config DRM_RCAR_VSP
67	bool "R-Car DU VSP Compositor Support" if ARM
68	default y if ARM64
69	depends on DRM_RCAR_DU
70	depends on VIDEO_RENESAS_VSP1=y || (VIDEO_RENESAS_VSP1 && DRM_RCAR_DU=m)
71	help
72	  Enable support to expose the R-Car VSP Compositor as KMS planes.
73
74config DRM_RCAR_WRITEBACK
75	bool
76	default y if ARM64
77	depends on DRM_RCAR_DU
78