xref: /openbmc/linux/drivers/gpu/drm/sun4i/Kconfig (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
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
6*4a83c26aSDanilo 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
219c568101SMaxime Ripard	default DRM_SUN4I
229c568101SMaxime Ripard	help
239c442b7aSSamuel Holland	  Choose this option if you have an Allwinner A10/A10s/A20/A31
249c442b7aSSamuel Holland	  SoC with an HDMI controller.
259c568101SMaxime Ripard
26998140d2SHans Verkuilconfig DRM_SUN4I_HDMI_CEC
279c442b7aSSamuel Holland	bool "Allwinner A10/A10s/A20/A31 HDMI CEC Support"
28998140d2SHans Verkuil	depends on DRM_SUN4I_HDMI
29998140d2SHans Verkuil	select CEC_CORE
304ba72fc0SHans Verkuil	select CEC_PIN
31998140d2SHans Verkuil	help
329c442b7aSSamuel Holland	  Choose this option if you have an Allwinner A10/A10s/A20/A31
339c442b7aSSamuel Holland	  SoC with an HDMI controller and want to use CEC.
34998140d2SHans Verkuil
35a43a42adSIcenowy Zhengconfig DRM_SUN4I_BACKEND
36a43a42adSIcenowy Zheng	tristate "Support for Allwinner A10 Display Engine Backend"
379c442b7aSSamuel Holland	depends on ARM || COMPILE_TEST
38a43a42adSIcenowy Zheng	default DRM_SUN4I
39a43a42adSIcenowy Zheng	help
40a43a42adSIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
41a43a42adSIcenowy Zheng	  original Allwinner Display Engine, which has a backend to
42a43a42adSIcenowy Zheng	  do some alpha blending and feed graphics to TCON. If M is
43a43a42adSIcenowy Zheng	  selected the module will be called sun4i-backend.
449d75b8c0SIcenowy Zheng
45133add5bSMaxime Ripardconfig DRM_SUN6I_DSI
469c442b7aSSamuel Holland	tristate "Allwinner A31/A64 MIPI-DSI Controller Support"
479c442b7aSSamuel Holland	default DRM_SUN4I
48133add5bSMaxime Ripard	select CRC_CCITT
49133add5bSMaxime Ripard	select DRM_MIPI_DSI
50bb162bb2SJulian Braha	select RESET_CONTROLLER
515d134abfSMaxime Ripard	select PHY_SUN6I_MIPI_DPHY
52133add5bSMaxime Ripard	help
53133add5bSMaxime Ripard	  Choose this option if you want have an Allwinner SoC with
54133add5bSMaxime Ripard	  MIPI-DSI support. If M is selected the module will be called
55bb3b6fcbSMaxime Ripard	  sun6i_mipi_dsi.
56bb3b6fcbSMaxime Ripard
57b7c7436aSJernej Skrabecconfig DRM_SUN8I_DW_HDMI
58b7c7436aSJernej Skrabec	tristate "Support for Allwinner version of DesignWare HDMI"
59b7c7436aSJernej Skrabec	depends on DRM_SUN4I
609c442b7aSSamuel Holland	default DRM_SUN4I
61b7c7436aSJernej Skrabec	select DRM_DW_HDMI
62b7c7436aSJernej Skrabec	help
63b7c7436aSJernej Skrabec	  Choose this option if you have an Allwinner SoC with the
649c442b7aSSamuel Holland	  DesignWare HDMI controller. SoCs that support HDMI and
659c442b7aSSamuel Holland	  have a Display Engine 2.0 contain this controller. If M is
66b7c7436aSJernej Skrabec	  selected the module will be called sun8i_dw_hdmi.
67b7c7436aSJernej Skrabec
689d75b8c0SIcenowy Zhengconfig DRM_SUN8I_MIXER
699d75b8c0SIcenowy Zheng	tristate "Support for Allwinner Display Engine 2.0 Mixer"
709c442b7aSSamuel Holland	default DRM_SUN4I
719d75b8c0SIcenowy Zheng	help
729d75b8c0SIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
739d75b8c0SIcenowy Zheng	  Allwinner Display Engine 2.0, which has a mixer to do some
749d75b8c0SIcenowy Zheng	  graphics mixture and feed graphics to TCON, If M is
759d75b8c0SIcenowy Zheng	  selected the module will be called sun8i-mixer.
76f4c08112SMaxime Ripard
7758d4d298SArnd Bergmannconfig DRM_SUN8I_TCON_TOP
7858d4d298SArnd Bergmann	tristate
7958d4d298SArnd Bergmann	default DRM_SUN4I if DRM_SUN8I_MIXER!=n
8058d4d298SArnd Bergmann	help
8158d4d298SArnd Bergmann	  TCON TOP is responsible for configuring display pipeline for
829c442b7aSSamuel Holland	  HDMI, TVE and LCD.
8358d4d298SArnd Bergmann
84f4c08112SMaxime Ripardendif
85