1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_SUN4I
3	tristate "DRM Support for Allwinner A10 Display Engine"
4	depends on DRM && COMMON_CLK
5	depends on ARCH_SUNXI || COMPILE_TEST
6	select DRM_GEM_DMA_HELPER
7	select DRM_KMS_HELPER
8	select DRM_PANEL
9	select REGMAP_MMIO
10	select VIDEOMODE_HELPERS
11	help
12	  Choose this option if you have an Allwinner SoC with a
13	  Display Engine. If M is selected the module will be called
14	  sun4i-drm.
15
16if DRM_SUN4I
17
18config DRM_SUN4I_HDMI
19	tristate "Allwinner A10/A10s/A20/A31 HDMI Controller Support"
20	depends on ARM || COMPILE_TEST
21	select DRM_DISPLAY_HDMI_HELPER
22	select DRM_DISPLAY_HDMI_STATE_HELPER
23	select DRM_DISPLAY_HELPER
24	default DRM_SUN4I
25	help
26	  Choose this option if you have an Allwinner A10/A10s/A20/A31
27	  SoC with an HDMI controller.
28
29config DRM_SUN4I_HDMI_CEC
30	bool "Allwinner A10/A10s/A20/A31 HDMI CEC Support"
31	depends on DRM_SUN4I_HDMI
32	select CEC_CORE
33	select CEC_PIN
34	help
35	  Choose this option if you have an Allwinner A10/A10s/A20/A31
36	  SoC with an HDMI controller and want to use CEC.
37
38config DRM_SUN4I_BACKEND
39	tristate "Support for Allwinner A10 Display Engine Backend"
40	depends on ARM || COMPILE_TEST
41	default DRM_SUN4I
42	help
43	  Choose this option if you have an Allwinner SoC with the
44	  original Allwinner Display Engine, which has a backend to
45	  do some alpha blending and feed graphics to TCON. If M is
46	  selected the module will be called sun4i-backend.
47
48config DRM_SUN6I_DSI
49	tristate "Allwinner A31/A64 MIPI-DSI Controller Support"
50	default DRM_SUN4I
51	select CRC_CCITT
52	select DRM_MIPI_DSI
53	select RESET_CONTROLLER
54	select PHY_SUN6I_MIPI_DPHY
55	help
56	  Choose this option if you want have an Allwinner SoC with
57	  MIPI-DSI support. If M is selected the module will be called
58	  sun6i_mipi_dsi.
59
60config DRM_SUN8I_DW_HDMI
61	tristate "Support for Allwinner version of DesignWare HDMI"
62	depends on DRM_SUN4I
63	default DRM_SUN4I
64	select DRM_DW_HDMI
65	help
66	  Choose this option if you have an Allwinner SoC with the
67	  DesignWare HDMI controller. SoCs that support HDMI and
68	  have a Display Engine 2.0 contain this controller. If M is
69	  selected the module will be called sun8i_dw_hdmi.
70
71config DRM_SUN8I_MIXER
72	tristate "Support for Allwinner Display Engine 2.0 Mixer"
73	default DRM_SUN4I
74	help
75	  Choose this option if you have an Allwinner SoC with the
76	  Allwinner Display Engine 2.0, which has a mixer to do some
77	  graphics mixture and feed graphics to TCON, If M is
78	  selected the module will be called sun8i-mixer.
79
80config DRM_SUN8I_TCON_TOP
81	tristate
82	default DRM_SUN4I if DRM_SUN8I_MIXER!=n
83	help
84	  TCON TOP is responsible for configuring display pipeline for
85	  HDMI, TVE and LCD.
86
87endif
88