# SPDX-License-Identifier: GPL-2.0-only
config DRM_MEDIATEK_TV
	tristate "DRM Support for Mediatek TV SoCs"
	depends on DRM
	depends on (ARM && COMPILE_TEST)
	depends on COMMON_CLK
	depends on HAVE_ARM_SMCCC
	depends on OF
	select DRM_GEM_CMA_HELPER
	select DRM_KMS_HELPER
	select DRM_PANEL
	select MEMORY
	help
		Choose this option if you have a Mediatek SoCs.
		The module will be called mediatek-drm
		This driver provides kernel mode setting and
		buffer management to userspace.

#config DRM_MEDIATEK_TV_MERAK
#	tristate "Mediatek Video Display DRM SW MERAK Architecture"
#	depends on VIDEO_DEV && VIDEO_V4L2
#	select V4L2_MEM2MEM_DEV
#	default n
#	help
#		Mediatek Video Display DRM SW MERAK Architecture. STI standard
#		interface.
#		To use merak sw architecture, choose y here: the module
#		will be mtk-drm

config CONFIG_DRM_MEDIATEK_TV_LEGACY
	tristate "Mediatek Video Display DRM SW LEGACY Architecture"
	default n
	help
		Mediatek Video Display DRM SW Legacy Architecture. STI standard
		interface.
		To use legacy sw architecture, choose y here: the module
		will be mtk-drm

config DRM_MEDIATEK_TV_SELECT_DRM_GEM_DMA_HELPER
	tristate "DRM select DRM_GEM_DMA_HELPER=m for Mediatek TV SoCs"
	depends on DRM
	select DRM_GEM_DMA_HELPER
	help
	  must be =m !!!
	  must be =m !!!
	  must be =m !!!
	  GKI >= 6.1 change DRM_GEM_CMA_HELPER to DRM_GEM_DMA_HELPER

config DRM_MEDIATEK_TV_SELECT_DRM_DISPLAY_HELPER
	tristate "DRM select DRM_DISPLAY_HELPER, DRM_DISPLAY_DP_HELPER as m for Mediatek TV SoCs"
	depends on DRM
	select DRM_DISPLAY_HELPER
	select DRM_DISPLAY_DP_HELPER
	help
	  must be =m !!!
	  must be =m !!!
	  must be =m !!!
	  new for GKI >= 6.1

config DRM_MEDIATEK_TV_GOP_AISR_NOT_SUPPORT
	bool "MediaTek Drm Driver Does Not Support GOP AISR"
	default n
	help
	  enable/disable AISR_NOT_SUPPORT.
	  Say Y here if the MediaTek drm driver does not support GOP AISR.
	  Select this option if the hardware or driver does not include support for GOP AISR.
	  Otherwise, Choose N
