xref: /linux/drivers/gpu/drm/sun4i/Kconfig (revision ea64761a54a25fa2c27bae99b3c72dadfaa74d3e)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
29026e0d1SMaxime Ripardconfig DRM_SUN4I
39026e0d1SMaxime Ripard	tristate "DRM Support for Allwinner A10 Display Engine"
47d57f7f7SSamuel Holland	depends on DRM && COMMON_CLK
59026e0d1SMaxime Ripard	depends on ARCH_SUNXI || COMPILE_TEST
64a83c26aSDanilo Krummrich	select DRM_GEM_DMA_HELPER
79026e0d1SMaxime Ripard	select DRM_KMS_HELPER
89026e0d1SMaxime Ripard	select DRM_PANEL
99026e0d1SMaxime Ripard	select REGMAP_MMIO
109026e0d1SMaxime Ripard	select VIDEOMODE_HELPERS
119026e0d1SMaxime Ripard	help
129026e0d1SMaxime Ripard	  Choose this option if you have an Allwinner SoC with a
139026e0d1SMaxime Ripard	  Display Engine. If M is selected the module will be called
149026e0d1SMaxime Ripard	  sun4i-drm.
15a43a42adSIcenowy Zheng
16f4c08112SMaxime Ripardif DRM_SUN4I
17f4c08112SMaxime Ripard
189c568101SMaxime Ripardconfig DRM_SUN4I_HDMI
199c442b7aSSamuel Holland	tristate "Allwinner A10/A10s/A20/A31 HDMI Controller Support"
209c442b7aSSamuel Holland	depends on ARM || COMPILE_TEST
21*ea64761aSMaxime Ripard	select DRM_DISPLAY_HDMI_HELPER
22*ea64761aSMaxime Ripard	select DRM_DISPLAY_HDMI_STATE_HELPER
23*ea64761aSMaxime Ripard	select DRM_DISPLAY_HELPER
249c568101SMaxime Ripard	default DRM_SUN4I
259c568101SMaxime Ripard	help
269c442b7aSSamuel Holland	  Choose this option if you have an Allwinner A10/A10s/A20/A31
279c442b7aSSamuel Holland	  SoC with an HDMI controller.
289c568101SMaxime Ripard
29998140d2SHans Verkuilconfig DRM_SUN4I_HDMI_CEC
309c442b7aSSamuel Holland	bool "Allwinner A10/A10s/A20/A31 HDMI CEC Support"
31998140d2SHans Verkuil	depends on DRM_SUN4I_HDMI
32998140d2SHans Verkuil	select CEC_CORE
334ba72fc0SHans Verkuil	select CEC_PIN
34998140d2SHans Verkuil	help
359c442b7aSSamuel Holland	  Choose this option if you have an Allwinner A10/A10s/A20/A31
369c442b7aSSamuel Holland	  SoC with an HDMI controller and want to use CEC.
37998140d2SHans Verkuil
38a43a42adSIcenowy Zhengconfig DRM_SUN4I_BACKEND
39a43a42adSIcenowy Zheng	tristate "Support for Allwinner A10 Display Engine Backend"
409c442b7aSSamuel Holland	depends on ARM || COMPILE_TEST
41a43a42adSIcenowy Zheng	default DRM_SUN4I
42a43a42adSIcenowy Zheng	help
43a43a42adSIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
44a43a42adSIcenowy Zheng	  original Allwinner Display Engine, which has a backend to
45a43a42adSIcenowy Zheng	  do some alpha blending and feed graphics to TCON. If M is
46a43a42adSIcenowy Zheng	  selected the module will be called sun4i-backend.
479d75b8c0SIcenowy Zheng
48133add5bSMaxime Ripardconfig DRM_SUN6I_DSI
499c442b7aSSamuel Holland	tristate "Allwinner A31/A64 MIPI-DSI Controller Support"
509c442b7aSSamuel Holland	default DRM_SUN4I
51133add5bSMaxime Ripard	select CRC_CCITT
52133add5bSMaxime Ripard	select DRM_MIPI_DSI
53bb162bb2SJulian Braha	select RESET_CONTROLLER
545d134abfSMaxime Ripard	select PHY_SUN6I_MIPI_DPHY
55133add5bSMaxime Ripard	help
56133add5bSMaxime Ripard	  Choose this option if you want have an Allwinner SoC with
57133add5bSMaxime Ripard	  MIPI-DSI support. If M is selected the module will be called
58bb3b6fcbSMaxime Ripard	  sun6i_mipi_dsi.
59bb3b6fcbSMaxime Ripard
60b7c7436aSJernej Skrabecconfig DRM_SUN8I_DW_HDMI
61b7c7436aSJernej Skrabec	tristate "Support for Allwinner version of DesignWare HDMI"
62b7c7436aSJernej Skrabec	depends on DRM_SUN4I
639c442b7aSSamuel Holland	default DRM_SUN4I
64b7c7436aSJernej Skrabec	select DRM_DW_HDMI
65b7c7436aSJernej Skrabec	help
66b7c7436aSJernej Skrabec	  Choose this option if you have an Allwinner SoC with the
679c442b7aSSamuel Holland	  DesignWare HDMI controller. SoCs that support HDMI and
689c442b7aSSamuel Holland	  have a Display Engine 2.0 contain this controller. If M is
69b7c7436aSJernej Skrabec	  selected the module will be called sun8i_dw_hdmi.
70b7c7436aSJernej Skrabec
719d75b8c0SIcenowy Zhengconfig DRM_SUN8I_MIXER
729d75b8c0SIcenowy Zheng	tristate "Support for Allwinner Display Engine 2.0 Mixer"
739c442b7aSSamuel Holland	default DRM_SUN4I
749d75b8c0SIcenowy Zheng	help
759d75b8c0SIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
769d75b8c0SIcenowy Zheng	  Allwinner Display Engine 2.0, which has a mixer to do some
779d75b8c0SIcenowy Zheng	  graphics mixture and feed graphics to TCON, If M is
789d75b8c0SIcenowy Zheng	  selected the module will be called sun8i-mixer.
79f4c08112SMaxime Ripard
8058d4d298SArnd Bergmannconfig DRM_SUN8I_TCON_TOP
8158d4d298SArnd Bergmann	tristate
8258d4d298SArnd Bergmann	default DRM_SUN4I if DRM_SUN8I_MIXER!=n
8358d4d298SArnd Bergmann	help
8458d4d298SArnd Bergmann	  TCON TOP is responsible for configuring display pipeline for
859c442b7aSSamuel Holland	  HDMI, TVE and LCD.
8658d4d298SArnd Bergmann
87f4c08112SMaxime Ripardendif
88