# SPDX-License-Identifier: GPL-2.0-only
config DRM_SPRD
	tristate "DRM Support for Unisoc SoCs Platform"
	depends on ARCH_SPRD || COMPILE_TEST
	depends on DRM && OF
	select DRM_KMS_HELPER
	select DRM_GEM_CMA_HELPER
	select DRM_KMS_CMA_HELPER
	select VIDEOMODE_HELPERS
	help
	  Choose this option if you have a Unisoc chipsets.
	  If M is selected the module will be called sprd-drm.

#
#SPRD DRM GSP driver
#
source "drivers/gpu/drm/sprd/gsp/Kconfig"

if DRM_SPRD

comment "Unisoc Dummy CRTC&Encoder"

config DRM_SPRD_DUMMY
	bool "Dummy CRTC&Encoder"
	help
	  Choose this option if you want to use dummy crtc&encoder.

comment "Unisoc CRTCs"

#SPRD DRM SPI PANEL driver
config DRM_SPRD_SPI
	bool "SPI Host controller"
	help
		Choose this option if you want to use SPI host controller.

config DRM_SPRD_DPU0
	bool "Primary Display Controller"
	help
	  Choose this option if you want to use primary display controller.

config DRM_SPRD_DP
	bool "Display Port"
	help
	  Choose this option if you want to use Display Port.

config DRM_SPRD_DPU1
	bool "External Display Controller"
	help
	  Choose this option if you want to use external display controller.

comment "Unisoc Encoders and Bridges"

config DRM_SPRD_DSI
	bool "DSI Host Controller"
	depends on DRM_SPRD_DPU0
	select DRM_MIPI_DSI
	select DRM_PANEL
	select BACKLIGHT_CLASS_DEVICE
	help
	  Choose this option if you want to use DSI host controller.

config DRM_SPRD_WB_DEBUG
	bool "DPU WriteBack Debug"
	depends on DRM_SPRD_DPU0
	help
	  Choose this option if you want to use DPU WriteBack Debug.

endif
