xref: /OK3568_Linux_fs/kernel/drivers/gpu/drm/rcar-du/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyunconfig DRM_RCAR_DU
3*4882a593Smuzhiyun	tristate "DRM Support for R-Car Display Unit"
4*4882a593Smuzhiyun	depends on DRM && OF
5*4882a593Smuzhiyun	depends on ARM || ARM64
6*4882a593Smuzhiyun	depends on ARCH_RENESAS || COMPILE_TEST
7*4882a593Smuzhiyun	imply DRM_RCAR_CMM
8*4882a593Smuzhiyun	imply DRM_RCAR_LVDS
9*4882a593Smuzhiyun	select DRM_KMS_HELPER
10*4882a593Smuzhiyun	select DRM_KMS_CMA_HELPER
11*4882a593Smuzhiyun	select DRM_GEM_CMA_HELPER
12*4882a593Smuzhiyun	select VIDEOMODE_HELPERS
13*4882a593Smuzhiyun	help
14*4882a593Smuzhiyun	  Choose this option if you have an R-Car chipset.
15*4882a593Smuzhiyun	  If M is selected the module will be called rcar-du-drm.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunconfig DRM_RCAR_CMM
18*4882a593Smuzhiyun	tristate "R-Car DU Color Management Module (CMM) Support"
19*4882a593Smuzhiyun	depends on DRM && OF
20*4882a593Smuzhiyun	depends on DRM_RCAR_DU
21*4882a593Smuzhiyun	help
22*4882a593Smuzhiyun	  Enable support for R-Car Color Management Module (CMM).
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunconfig DRM_RCAR_DW_HDMI
25*4882a593Smuzhiyun	tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support"
26*4882a593Smuzhiyun	depends on DRM && OF
27*4882a593Smuzhiyun	select DRM_DW_HDMI
28*4882a593Smuzhiyun	help
29*4882a593Smuzhiyun	  Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder.
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunconfig DRM_RCAR_LVDS
32*4882a593Smuzhiyun	tristate "R-Car DU LVDS Encoder Support"
33*4882a593Smuzhiyun	depends on DRM && DRM_BRIDGE && OF
34*4882a593Smuzhiyun	select DRM_KMS_HELPER
35*4882a593Smuzhiyun	select DRM_PANEL
36*4882a593Smuzhiyun	select OF_FLATTREE
37*4882a593Smuzhiyun	select OF_OVERLAY
38*4882a593Smuzhiyun	help
39*4882a593Smuzhiyun	  Enable support for the R-Car Display Unit embedded LVDS encoders.
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunconfig DRM_RCAR_VSP
42*4882a593Smuzhiyun	bool "R-Car DU VSP Compositor Support" if ARM
43*4882a593Smuzhiyun	default y if ARM64
44*4882a593Smuzhiyun	depends on DRM_RCAR_DU
45*4882a593Smuzhiyun	depends on VIDEO_RENESAS_VSP1=y || (VIDEO_RENESAS_VSP1 && DRM_RCAR_DU=m)
46*4882a593Smuzhiyun	help
47*4882a593Smuzhiyun	  Enable support to expose the R-Car VSP Compositor as KMS planes.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyunconfig DRM_RCAR_WRITEBACK
50*4882a593Smuzhiyun	bool
51*4882a593Smuzhiyun	default y if ARM64
52*4882a593Smuzhiyun	depends on DRM_RCAR_DU
53