# SPDX-License-Identifier: GPL-2.0-only
menu "DRM Drivers"
	depends on AW_BSP

config AW_DRM
	tristate "DRM Support for Allwinner SoCs"
	depends on DRM && AW_BSP
	select DRM_KMS_HELPER
	select DRM_KMS_CMA_HELPER
	select DRM_KMS_DMA_HELPER
	select DRM_GEM_DMA_HELPER
	select DRM_DISPLAY_HELPER
	select VIDEOMODE_HELPERS
	default n

config AW_DRM_DE
	bool "Support Sunxi Display_Engine(DE)"
	depends on AW_DRM
	default y
	help
		If you want use DE of Version 35X, select it.

config AW_DRM_TCON
	bool "Support Timing Controller(TCON)"
	depends on AW_DRM
	default y
	help
		If you want use TCON, select it.

config AW_DRM_TCON_TOP
	bool "Support TCON TOP"
	depends on AW_DRM
	default y
	help
		If you want use TCON TOP, select it.

config AW_DRM_FBDEV_BOOTLOGO
	bool "Support Bootlogo Output from uboot"
	depends on AW_DRM_LCD
	default n
	help
		If you want bootlogo output for drm driver, select it.

menuconfig AW_DRM_LCD
	bool "Support LCD Output"
	depends on AW_DRM
	default y
	help
		If you want lcd output for drm driver, select it.

config AW_DRM_LCD_DSI
	bool "Support LCD-DSI Output"
	select DRM_MIPI_DSI
	depends on AW_DRM_LCD
	default n
	help
		If you want lcd-dsi output for drm driver, select it.

config AW_DRM_LCD_DSI_COMBO_PHY
	bool "Support LCD-DSI COMBO PHY"
	depends on AW_DRM_LCD_DSI
	default y
	help
		If you want lcd-dsi combp phy, select it.

menuconfig AW_DRM_HDMI_TX
	tristate "Support Hdmi Output"
	depends on AW_DRM
	select DRM_DISPLAY_HDCP_HELPER
	select DRM_DISPLAY_HDMI_HELPER
	default y
	help
		If you want hdmi output for drm driver, select it.

menuconfig AW_DRM_HDMI14
	bool "Support HDMI1.4 Output"
	depends on AW_DRM_HDMI_TX
	default n
	help
		If you want hdmi1.4 output for drm driver, select it.

menuconfig AW_DRM_HDMI20
	bool "Support HDMI2.0 Output"
	depends on AW_DRM_HDMI_TX
	default y
	help
		If you want hdmi2.0 output for drm driver, select it.

config AW_HDMI20_HDCP14
	bool "HDMI2.0 HDCP1.4"
	depends on (AW_DRM_HDMI20)
	default n
	help
		Say Y here if you want to enable hdcp1.4 function.
		Say N here if you want to disable hdcp1.4 function.
		If unsure, say N.

config AW_HDMI20_HDCP22
	bool "HDMI2.0 HDCP2.2"
	depends on (AW_DRM_HDMI20)
	default n
	help
		Say Y here if you want to enable hdcp2.2 function.
		Say N here if you want to disable hdcp2.2 function.
		If unsure, say N.

config AW_HDMI20_CEC
	bool "HDMI2.0 CEC"
	depends on (AW_DRM_HDMI20)
	default n
	select CEC_CORE
	select CEC_NOTIFIER
	help
		Say Y here if you want to enable cec function.
			Also enable CEC_CORE and CEC_NOTIFIER.
		Say N here if you want to disable cec function.
		If unsure, say N.

menuconfig AW_DRM_EDP
	bool "Support eDP Output"
	depends on AW_DRM
	select VIDEOMODE_HELPERS
	default n
	help
		If you want edp/dp output for drm driver, select it.

config AW_DRM_EDP_PHY_USED
    def_bool n
    depends on (AW_DRM_EDP)
    default n
    help
        Selected when aw edp phy used.

config AW_DRM_INNO_EDP13
	bool "Support inno edp 1.3 PHY"
	depends on AW_DRM_EDP
    select AW_DRM_EDP_PHY_USED
	default n
	help
		If you want inno edp 1.3 as edp phy, select it.

source "bsp/drivers/drm/panel/Kconfig"

endmenu
