xref: /linux/drivers/gpu/drm/sun4i/Kconfig (revision a4e2e54be9bf30ccdd72f70151735e534daea19b)
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*a4e2e54bSThomas Zimmermann	select DRM_CLIENT_SELECTION
74a83c26aSDanilo Krummrich	select DRM_GEM_DMA_HELPER
89026e0d1SMaxime Ripard	select DRM_KMS_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
209c442b7aSSamuel Holland	tristate "Allwinner A10/A10s/A20/A31 HDMI Controller Support"
219c442b7aSSamuel Holland	depends on ARM || COMPILE_TEST
22ea64761aSMaxime Ripard	select DRM_DISPLAY_HDMI_HELPER
23ea64761aSMaxime Ripard	select DRM_DISPLAY_HDMI_STATE_HELPER
24ea64761aSMaxime Ripard	select DRM_DISPLAY_HELPER
259c568101SMaxime Ripard	default DRM_SUN4I
269c568101SMaxime Ripard	help
279c442b7aSSamuel Holland	  Choose this option if you have an Allwinner A10/A10s/A20/A31
289c442b7aSSamuel Holland	  SoC with an HDMI controller.
299c568101SMaxime Ripard
30998140d2SHans Verkuilconfig DRM_SUN4I_HDMI_CEC
319c442b7aSSamuel Holland	bool "Allwinner A10/A10s/A20/A31 HDMI CEC Support"
32998140d2SHans Verkuil	depends on DRM_SUN4I_HDMI
33998140d2SHans Verkuil	select CEC_CORE
344ba72fc0SHans Verkuil	select CEC_PIN
35998140d2SHans Verkuil	help
369c442b7aSSamuel Holland	  Choose this option if you have an Allwinner A10/A10s/A20/A31
379c442b7aSSamuel Holland	  SoC with an HDMI controller and want to use CEC.
38998140d2SHans Verkuil
39a43a42adSIcenowy Zhengconfig DRM_SUN4I_BACKEND
40a43a42adSIcenowy Zheng	tristate "Support for Allwinner A10 Display Engine Backend"
419c442b7aSSamuel Holland	depends on ARM || COMPILE_TEST
42a43a42adSIcenowy Zheng	default DRM_SUN4I
43a43a42adSIcenowy Zheng	help
44a43a42adSIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
45a43a42adSIcenowy Zheng	  original Allwinner Display Engine, which has a backend to
46a43a42adSIcenowy Zheng	  do some alpha blending and feed graphics to TCON. If M is
47a43a42adSIcenowy Zheng	  selected the module will be called sun4i-backend.
489d75b8c0SIcenowy Zheng
49133add5bSMaxime Ripardconfig DRM_SUN6I_DSI
509c442b7aSSamuel Holland	tristate "Allwinner A31/A64 MIPI-DSI Controller Support"
519c442b7aSSamuel Holland	default DRM_SUN4I
52133add5bSMaxime Ripard	select CRC_CCITT
53133add5bSMaxime Ripard	select DRM_MIPI_DSI
54bb162bb2SJulian Braha	select RESET_CONTROLLER
555d134abfSMaxime Ripard	select PHY_SUN6I_MIPI_DPHY
56133add5bSMaxime Ripard	help
57133add5bSMaxime Ripard	  Choose this option if you want have an Allwinner SoC with
58133add5bSMaxime Ripard	  MIPI-DSI support. If M is selected the module will be called
59bb3b6fcbSMaxime Ripard	  sun6i_mipi_dsi.
60bb3b6fcbSMaxime Ripard
61b7c7436aSJernej Skrabecconfig DRM_SUN8I_DW_HDMI
62b7c7436aSJernej Skrabec	tristate "Support for Allwinner version of DesignWare HDMI"
63b7c7436aSJernej Skrabec	depends on DRM_SUN4I
649c442b7aSSamuel Holland	default DRM_SUN4I
65b7c7436aSJernej Skrabec	select DRM_DW_HDMI
66b7c7436aSJernej Skrabec	help
67b7c7436aSJernej Skrabec	  Choose this option if you have an Allwinner SoC with the
689c442b7aSSamuel Holland	  DesignWare HDMI controller. SoCs that support HDMI and
699c442b7aSSamuel Holland	  have a Display Engine 2.0 contain this controller. If M is
70b7c7436aSJernej Skrabec	  selected the module will be called sun8i_dw_hdmi.
71b7c7436aSJernej Skrabec
729d75b8c0SIcenowy Zhengconfig DRM_SUN8I_MIXER
739d75b8c0SIcenowy Zheng	tristate "Support for Allwinner Display Engine 2.0 Mixer"
749c442b7aSSamuel Holland	default DRM_SUN4I
759d75b8c0SIcenowy Zheng	help
769d75b8c0SIcenowy Zheng	  Choose this option if you have an Allwinner SoC with the
779d75b8c0SIcenowy Zheng	  Allwinner Display Engine 2.0, which has a mixer to do some
789d75b8c0SIcenowy Zheng	  graphics mixture and feed graphics to TCON, If M is
799d75b8c0SIcenowy Zheng	  selected the module will be called sun8i-mixer.
80f4c08112SMaxime Ripard
8158d4d298SArnd Bergmannconfig DRM_SUN8I_TCON_TOP
8258d4d298SArnd Bergmann	tristate
8358d4d298SArnd Bergmann	default DRM_SUN4I if DRM_SUN8I_MIXER!=n
8458d4d298SArnd Bergmann	help
8558d4d298SArnd Bergmann	  TCON TOP is responsible for configuring display pipeline for
869c442b7aSSamuel Holland	  HDMI, TVE and LCD.
8758d4d298SArnd Bergmann
88f4c08112SMaxime Ripardendif
89