xref: /linux/drivers/gpu/drm/renesas/rcar-du/Kconfig (revision f0edd66e3428a4e1bb98923ec1bfdedf4f418d55)
111696c5eSBiju Das# SPDX-License-Identifier: GPL-2.0
211696c5eSBiju Dasconfig DRM_RCAR_DU
311696c5eSBiju Das	tristate "DRM Support for R-Car Display Unit"
411696c5eSBiju Das	depends on DRM && OF
5*f0edd66eSVille Syrjälä	depends on ARM || ARM64 || COMPILE_TEST
611696c5eSBiju Das	depends on ARCH_RENESAS || COMPILE_TEST
711696c5eSBiju Das	select DRM_KMS_HELPER
811696c5eSBiju Das	select DRM_GEM_DMA_HELPER
911696c5eSBiju Das	select VIDEOMODE_HELPERS
1011696c5eSBiju Das	help
1111696c5eSBiju Das	  Choose this option if you have an R-Car chipset.
1211696c5eSBiju Das	  If M is selected the module will be called rcar-du-drm.
1311696c5eSBiju Das
1411696c5eSBiju Dasconfig DRM_RCAR_USE_CMM
1511696c5eSBiju Das	bool "R-Car DU Color Management Module (CMM) Support"
1611696c5eSBiju Das	depends on DRM_RCAR_DU
1711696c5eSBiju Das	default DRM_RCAR_DU
1811696c5eSBiju Das	help
1911696c5eSBiju Das	  Enable support for R-Car Color Management Module (CMM).
2011696c5eSBiju Das
2111696c5eSBiju Dasconfig DRM_RCAR_CMM
2211696c5eSBiju Das	def_tristate DRM_RCAR_DU
2311696c5eSBiju Das	depends on DRM_RCAR_USE_CMM
2411696c5eSBiju Das
2511696c5eSBiju Dasconfig DRM_RCAR_DW_HDMI
2611696c5eSBiju Das	tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support"
2711696c5eSBiju Das	depends on DRM && OF
28c0e0f139SMaxime Ripard	depends on DRM_DW_HDMI
2911696c5eSBiju Das	depends on DRM_RCAR_DU || COMPILE_TEST
3011696c5eSBiju Das	help
3111696c5eSBiju Das	  Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder.
3211696c5eSBiju Das
3311696c5eSBiju Dasconfig DRM_RCAR_USE_LVDS
3411696c5eSBiju Das	bool "R-Car DU LVDS Encoder Support"
3511696c5eSBiju Das	depends on DRM_BRIDGE && OF
3611696c5eSBiju Das	depends on DRM_RCAR_DU || COMPILE_TEST
3711696c5eSBiju Das	default DRM_RCAR_DU
3811696c5eSBiju Das	help
3911696c5eSBiju Das	  Enable support for the R-Car Display Unit embedded LVDS encoders.
4011696c5eSBiju Das
4111696c5eSBiju Dasconfig DRM_RCAR_LVDS
4211696c5eSBiju Das	def_tristate DRM_RCAR_DU
4311696c5eSBiju Das	depends on DRM_RCAR_USE_LVDS
4411696c5eSBiju Das	depends on PM
4511696c5eSBiju Das	select DRM_KMS_HELPER
4611696c5eSBiju Das	select DRM_PANEL
4711696c5eSBiju Das	select RESET_CONTROLLER
4811696c5eSBiju Das
4911696c5eSBiju Dasconfig DRM_RCAR_USE_MIPI_DSI
5011696c5eSBiju Das	bool "R-Car DU MIPI DSI Encoder Support"
5111696c5eSBiju Das	depends on DRM_BRIDGE && OF
5211696c5eSBiju Das	depends on DRM_RCAR_DU || COMPILE_TEST
5311696c5eSBiju Das	default DRM_RCAR_DU
5411696c5eSBiju Das	help
5511696c5eSBiju Das	  Enable support for the R-Car Display Unit embedded MIPI DSI encoders.
5611696c5eSBiju Das
5711696c5eSBiju Dasconfig DRM_RCAR_MIPI_DSI
5811696c5eSBiju Das	def_tristate DRM_RCAR_DU
5911696c5eSBiju Das	depends on DRM_RCAR_USE_MIPI_DSI
6011696c5eSBiju Das	select DRM_MIPI_DSI
6111696c5eSBiju Das	select RESET_CONTROLLER
6211696c5eSBiju Das
6311696c5eSBiju Dasconfig DRM_RZG2L_MIPI_DSI
6411696c5eSBiju Das	tristate "RZ/G2L MIPI DSI Encoder Support"
6511696c5eSBiju Das	depends on DRM && DRM_BRIDGE && OF
6611696c5eSBiju Das	depends on ARCH_RENESAS || COMPILE_TEST
6711696c5eSBiju Das	select DRM_MIPI_DSI
6811696c5eSBiju Das	help
6911696c5eSBiju Das	  Enable support for the RZ/G2L Display Unit embedded MIPI DSI encoders.
7011696c5eSBiju Das
7111696c5eSBiju Dasconfig DRM_RCAR_VSP
7211696c5eSBiju Das	bool "R-Car DU VSP Compositor Support" if ARM
7311696c5eSBiju Das	default y if ARM64
7411696c5eSBiju Das	depends on DRM_RCAR_DU
7511696c5eSBiju Das	depends on VIDEO_RENESAS_VSP1=y || (VIDEO_RENESAS_VSP1 && DRM_RCAR_DU=m)
7611696c5eSBiju Das	help
7711696c5eSBiju Das	  Enable support to expose the R-Car VSP Compositor as KMS planes.
7811696c5eSBiju Das
7911696c5eSBiju Dasconfig DRM_RCAR_WRITEBACK
8011696c5eSBiju Das	bool
8111696c5eSBiju Das	default y if ARM64
8211696c5eSBiju Das	depends on DRM_RCAR_DU
83