162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciconfig DRM_SUN4I
362306a36Sopenharmony_ci	tristate "DRM Support for Allwinner A10 Display Engine"
462306a36Sopenharmony_ci	depends on DRM && COMMON_CLK
562306a36Sopenharmony_ci	depends on ARCH_SUNXI || COMPILE_TEST
662306a36Sopenharmony_ci	select DRM_GEM_DMA_HELPER
762306a36Sopenharmony_ci	select DRM_KMS_HELPER
862306a36Sopenharmony_ci	select DRM_PANEL
962306a36Sopenharmony_ci	select REGMAP_MMIO
1062306a36Sopenharmony_ci	select VIDEOMODE_HELPERS
1162306a36Sopenharmony_ci	help
1262306a36Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with a
1362306a36Sopenharmony_ci	  Display Engine. If M is selected the module will be called
1462306a36Sopenharmony_ci	  sun4i-drm.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciif DRM_SUN4I
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciconfig DRM_SUN4I_HDMI
1962306a36Sopenharmony_ci	tristate "Allwinner A10/A10s/A20/A31 HDMI Controller Support"
2062306a36Sopenharmony_ci	depends on ARM || COMPILE_TEST
2162306a36Sopenharmony_ci	default DRM_SUN4I
2262306a36Sopenharmony_ci	help
2362306a36Sopenharmony_ci	  Choose this option if you have an Allwinner A10/A10s/A20/A31
2462306a36Sopenharmony_ci	  SoC with an HDMI controller.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciconfig DRM_SUN4I_HDMI_CEC
2762306a36Sopenharmony_ci	bool "Allwinner A10/A10s/A20/A31 HDMI CEC Support"
2862306a36Sopenharmony_ci	depends on DRM_SUN4I_HDMI
2962306a36Sopenharmony_ci	select CEC_CORE
3062306a36Sopenharmony_ci	select CEC_PIN
3162306a36Sopenharmony_ci	help
3262306a36Sopenharmony_ci	  Choose this option if you have an Allwinner A10/A10s/A20/A31
3362306a36Sopenharmony_ci	  SoC with an HDMI controller and want to use CEC.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciconfig DRM_SUN4I_BACKEND
3662306a36Sopenharmony_ci	tristate "Support for Allwinner A10 Display Engine Backend"
3762306a36Sopenharmony_ci	depends on ARM || COMPILE_TEST
3862306a36Sopenharmony_ci	default DRM_SUN4I
3962306a36Sopenharmony_ci	help
4062306a36Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with the
4162306a36Sopenharmony_ci	  original Allwinner Display Engine, which has a backend to
4262306a36Sopenharmony_ci	  do some alpha blending and feed graphics to TCON. If M is
4362306a36Sopenharmony_ci	  selected the module will be called sun4i-backend.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciconfig DRM_SUN6I_DSI
4662306a36Sopenharmony_ci	tristate "Allwinner A31/A64 MIPI-DSI Controller Support"
4762306a36Sopenharmony_ci	default DRM_SUN4I
4862306a36Sopenharmony_ci	select CRC_CCITT
4962306a36Sopenharmony_ci	select DRM_MIPI_DSI
5062306a36Sopenharmony_ci	select RESET_CONTROLLER
5162306a36Sopenharmony_ci	select PHY_SUN6I_MIPI_DPHY
5262306a36Sopenharmony_ci	help
5362306a36Sopenharmony_ci	  Choose this option if you want have an Allwinner SoC with
5462306a36Sopenharmony_ci	  MIPI-DSI support. If M is selected the module will be called
5562306a36Sopenharmony_ci	  sun6i_mipi_dsi.
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ciconfig DRM_SUN8I_DW_HDMI
5862306a36Sopenharmony_ci	tristate "Support for Allwinner version of DesignWare HDMI"
5962306a36Sopenharmony_ci	depends on DRM_SUN4I
6062306a36Sopenharmony_ci	default DRM_SUN4I
6162306a36Sopenharmony_ci	select DRM_DW_HDMI
6262306a36Sopenharmony_ci	help
6362306a36Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with the
6462306a36Sopenharmony_ci	  DesignWare HDMI controller. SoCs that support HDMI and
6562306a36Sopenharmony_ci	  have a Display Engine 2.0 contain this controller. If M is
6662306a36Sopenharmony_ci	  selected the module will be called sun8i_dw_hdmi.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciconfig DRM_SUN8I_MIXER
6962306a36Sopenharmony_ci	tristate "Support for Allwinner Display Engine 2.0 Mixer"
7062306a36Sopenharmony_ci	default DRM_SUN4I
7162306a36Sopenharmony_ci	help
7262306a36Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with the
7362306a36Sopenharmony_ci	  Allwinner Display Engine 2.0, which has a mixer to do some
7462306a36Sopenharmony_ci	  graphics mixture and feed graphics to TCON, If M is
7562306a36Sopenharmony_ci	  selected the module will be called sun8i-mixer.
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciconfig DRM_SUN8I_TCON_TOP
7862306a36Sopenharmony_ci	tristate
7962306a36Sopenharmony_ci	default DRM_SUN4I if DRM_SUN8I_MIXER!=n
8062306a36Sopenharmony_ci	help
8162306a36Sopenharmony_ci	  TCON TOP is responsible for configuring display pipeline for
8262306a36Sopenharmony_ci	  HDMI, TVE and LCD.
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ciendif
85