xref: /linux/drivers/gpu/drm/sun4i/Kconfig (revision bb162bb2b4394108c8f055d1b115735331205e28)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
29026e0d1SMaxime Ripardconfig DRM_SUN4I
39026e0d1SMaxime Ripard	tristate "DRM Support for Allwinner A10 Display Engine"
49ffef62fSJernej Skrabec	depends on DRM && (ARM || ARM64) && COMMON_CLK
59026e0d1SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
69026e0d1SMaxime Ripard	select DRM_GEM_CMA_HELPER
79026e0d1SMaxime Ripard	select DRM_KMS_HELPER
89026e0d1SMaxime Ripard	select DRM_KMS_CMA_HELPER
99026e0d1SMaxime Ripard	select DRM_PANEL
109026e0d1SMaxime Ripard	select REGMAP_MMIO
119026e0d1SMaxime Ripard	select VIDEOMODE_HELPERS
129026e0d1SMaxime Ripard	help
139026e0d1SMaxime Ripard	  Choose this option if you have an Allwinner SoC with a
149026e0d1SMaxime Ripard	  Display Engine. If M is selected the module will be called
159026e0d1SMaxime Ripard	  sun4i-drm.
16a43a42adSIcenowy Zheng
17f4c08112SMaxime Ripardif DRM_SUN4I
18f4c08112SMaxime Ripard
199c568101SMaxime Ripardconfig DRM_SUN4I_HDMI
209c568101SMaxime Ripard	tristate "Allwinner A10 HDMI Controller Support"
219c568101SMaxime Ripard	default DRM_SUN4I
229c568101SMaxime Ripard	help
239c568101SMaxime Ripard	  Choose this option if you have an Allwinner SoC with an HDMI
249c568101SMaxime Ripard	  controller.
259c568101SMaxime Ripard
26998140d2SHans Verkuilconfig DRM_SUN4I_HDMI_CEC
27998140d2SHans Verkuil	bool "Allwinner A10 HDMI CEC Support"
28998140d2SHans Verkuil	depends on DRM_SUN4I_HDMI
29998140d2SHans Verkuil	select CEC_CORE
304ba72fc0SHans Verkuil	select CEC_PIN
31998140d2SHans Verkuil	help
32998140d2SHans Verkuil	  Choose this option if you have an Allwinner SoC with an HDMI
33998140d2SHans Verkuil	  controller and want to use CEC.
34998140d2SHans Verkuil
35a43a42adSIcenowy Zhengconfig DRM_SUN4I_BACKEND
36a43a42adSIcenowy Zheng	tristate "Support for Allwinner A10 Display Engine Backend"
37a43a42adSIcenowy Zheng	default DRM_SUN4I
38a43a42adSIcenowy Zheng	help
39a43a42adSIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
40a43a42adSIcenowy Zheng	  original Allwinner Display Engine, which has a backend to
41a43a42adSIcenowy Zheng	  do some alpha blending and feed graphics to TCON. If M is
42a43a42adSIcenowy Zheng	  selected the module will be called sun4i-backend.
439d75b8c0SIcenowy Zheng
44133add5bSMaxime Ripardconfig DRM_SUN6I_DSI
45133add5bSMaxime Ripard	tristate "Allwinner A31 MIPI-DSI Controller Support"
46133add5bSMaxime Ripard	default MACH_SUN8I
47133add5bSMaxime Ripard	select CRC_CCITT
48133add5bSMaxime Ripard	select DRM_MIPI_DSI
49*bb162bb2SJulian Braha	select RESET_CONTROLLER
505d134abfSMaxime Ripard	select PHY_SUN6I_MIPI_DPHY
51133add5bSMaxime Ripard	help
52133add5bSMaxime Ripard	  Choose this option if you want have an Allwinner SoC with
53133add5bSMaxime Ripard	  MIPI-DSI support. If M is selected the module will be called
54bb3b6fcbSMaxime Ripard	  sun6i_mipi_dsi.
55bb3b6fcbSMaxime Ripard
56b7c7436aSJernej Skrabecconfig DRM_SUN8I_DW_HDMI
57b7c7436aSJernej Skrabec	tristate "Support for Allwinner version of DesignWare HDMI"
58b7c7436aSJernej Skrabec	depends on DRM_SUN4I
59b7c7436aSJernej Skrabec	select DRM_DW_HDMI
60b7c7436aSJernej Skrabec	help
61b7c7436aSJernej Skrabec	  Choose this option if you have an Allwinner SoC with the
62b7c7436aSJernej Skrabec	  DesignWare HDMI controller with custom HDMI PHY. If M is
63b7c7436aSJernej Skrabec	  selected the module will be called sun8i_dw_hdmi.
64b7c7436aSJernej Skrabec
659d75b8c0SIcenowy Zhengconfig DRM_SUN8I_MIXER
669d75b8c0SIcenowy Zheng	tristate "Support for Allwinner Display Engine 2.0 Mixer"
679d75b8c0SIcenowy Zheng	default MACH_SUN8I
689d75b8c0SIcenowy Zheng	help
699d75b8c0SIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
709d75b8c0SIcenowy Zheng	  Allwinner Display Engine 2.0, which has a mixer to do some
719d75b8c0SIcenowy Zheng	  graphics mixture and feed graphics to TCON, If M is
729d75b8c0SIcenowy Zheng	  selected the module will be called sun8i-mixer.
73f4c08112SMaxime Ripard
7458d4d298SArnd Bergmannconfig DRM_SUN8I_TCON_TOP
7558d4d298SArnd Bergmann	tristate
7658d4d298SArnd Bergmann	default DRM_SUN4I if DRM_SUN8I_MIXER!=n
7758d4d298SArnd Bergmann	help
7858d4d298SArnd Bergmann	  TCON TOP is responsible for configuring display pipeline for
7958d4d298SArnd Bergmann	  HTMI, TVE and LCD.
8058d4d298SArnd Bergmann
81f4c08112SMaxime Ripardendif
82