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