18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig DRM_SUN4I
38c2ecf20Sopenharmony_ci	tristate "DRM Support for Allwinner A10 Display Engine"
48c2ecf20Sopenharmony_ci	depends on DRM && (ARM || ARM64) && COMMON_CLK
58c2ecf20Sopenharmony_ci	depends on ARCH_SUNXI || COMPILE_TEST
68c2ecf20Sopenharmony_ci	select DRM_GEM_CMA_HELPER
78c2ecf20Sopenharmony_ci	select DRM_KMS_HELPER
88c2ecf20Sopenharmony_ci	select DRM_KMS_CMA_HELPER
98c2ecf20Sopenharmony_ci	select DRM_PANEL
108c2ecf20Sopenharmony_ci	select REGMAP_MMIO
118c2ecf20Sopenharmony_ci	select VIDEOMODE_HELPERS
128c2ecf20Sopenharmony_ci	help
138c2ecf20Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with a
148c2ecf20Sopenharmony_ci	  Display Engine. If M is selected the module will be called
158c2ecf20Sopenharmony_ci	  sun4i-drm.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciif DRM_SUN4I
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciconfig DRM_SUN4I_HDMI
208c2ecf20Sopenharmony_ci	tristate "Allwinner A10 HDMI Controller Support"
218c2ecf20Sopenharmony_ci	default DRM_SUN4I
228c2ecf20Sopenharmony_ci	help
238c2ecf20Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with an HDMI
248c2ecf20Sopenharmony_ci	  controller.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciconfig DRM_SUN4I_HDMI_CEC
278c2ecf20Sopenharmony_ci	bool "Allwinner A10 HDMI CEC Support"
288c2ecf20Sopenharmony_ci	depends on DRM_SUN4I_HDMI
298c2ecf20Sopenharmony_ci	select CEC_CORE
308c2ecf20Sopenharmony_ci	select CEC_PIN
318c2ecf20Sopenharmony_ci	help
328c2ecf20Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with an HDMI
338c2ecf20Sopenharmony_ci	  controller and want to use CEC.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciconfig DRM_SUN4I_BACKEND
368c2ecf20Sopenharmony_ci	tristate "Support for Allwinner A10 Display Engine Backend"
378c2ecf20Sopenharmony_ci	default DRM_SUN4I
388c2ecf20Sopenharmony_ci	help
398c2ecf20Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with the
408c2ecf20Sopenharmony_ci	  original Allwinner Display Engine, which has a backend to
418c2ecf20Sopenharmony_ci	  do some alpha blending and feed graphics to TCON. If M is
428c2ecf20Sopenharmony_ci	  selected the module will be called sun4i-backend.
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciconfig DRM_SUN6I_DSI
458c2ecf20Sopenharmony_ci	tristate "Allwinner A31 MIPI-DSI Controller Support"
468c2ecf20Sopenharmony_ci	default MACH_SUN8I
478c2ecf20Sopenharmony_ci	select CRC_CCITT
488c2ecf20Sopenharmony_ci	select DRM_MIPI_DSI
498c2ecf20Sopenharmony_ci	select RESET_CONTROLLER
508c2ecf20Sopenharmony_ci	select PHY_SUN6I_MIPI_DPHY
518c2ecf20Sopenharmony_ci	help
528c2ecf20Sopenharmony_ci	  Choose this option if you want have an Allwinner SoC with
538c2ecf20Sopenharmony_ci	  MIPI-DSI support. If M is selected the module will be called
548c2ecf20Sopenharmony_ci	  sun6i_mipi_dsi.
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciconfig DRM_SUN8I_DW_HDMI
578c2ecf20Sopenharmony_ci	tristate "Support for Allwinner version of DesignWare HDMI"
588c2ecf20Sopenharmony_ci	depends on DRM_SUN4I
598c2ecf20Sopenharmony_ci	select DRM_DW_HDMI
608c2ecf20Sopenharmony_ci	help
618c2ecf20Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with the
628c2ecf20Sopenharmony_ci	  DesignWare HDMI controller with custom HDMI PHY. If M is
638c2ecf20Sopenharmony_ci	  selected the module will be called sun8i_dw_hdmi.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciconfig DRM_SUN8I_MIXER
668c2ecf20Sopenharmony_ci	tristate "Support for Allwinner Display Engine 2.0 Mixer"
678c2ecf20Sopenharmony_ci	default MACH_SUN8I
688c2ecf20Sopenharmony_ci	help
698c2ecf20Sopenharmony_ci	  Choose this option if you have an Allwinner SoC with the
708c2ecf20Sopenharmony_ci	  Allwinner Display Engine 2.0, which has a mixer to do some
718c2ecf20Sopenharmony_ci	  graphics mixture and feed graphics to TCON, If M is
728c2ecf20Sopenharmony_ci	  selected the module will be called sun8i-mixer.
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ciconfig DRM_SUN8I_TCON_TOP
758c2ecf20Sopenharmony_ci	tristate
768c2ecf20Sopenharmony_ci	default DRM_SUN4I if DRM_SUN8I_MIXER!=n
778c2ecf20Sopenharmony_ci	help
788c2ecf20Sopenharmony_ci	  TCON TOP is responsible for configuring display pipeline for
798c2ecf20Sopenharmony_ci	  HTMI, TVE and LCD.
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ciendif
82