xref: /rk3399_rockchip-uboot/drivers/video/drm/Kconfig (revision d00abaefa3f43fcedb2fa99566f07389c9bc4b08)
1menuconfig DRM_ROCKCHIP
2	bool "Rockchip DRM Support"
3	depends on DM_VIDEO && OF_LIVE
4	select VIDEO_BRIDGE
5	select PHY
6	help
7	  Rockchip SoCs provide video output capabilities for High-Definition
8	  Multimedia Interface (HDMI), Low-voltage Differential Signalling
9	  (LVDS), embedded DisplayPort (eDP) and Display Serial Interface (DSI).
10
11	  This driver supports the on-chip video output device, and targets the
12	  Rockchip RK3288 and RK3399.
13
14config DRM_MEM_RESERVED_SIZE_MBYTES
15	int "Size in Mega Bytes"
16	depends on DRM_ROCKCHIP
17	default 32
18
19config DRM_DP_HELPER
20	bool
21	depends on DRM_ROCKCHIP
22
23config DRM_MAXIM_MAX96745
24	bool "Maxim max96745 GMSL2 Serializer"
25	depends on DRM_ROCKCHIP
26	select I2C_MUX_MAX96745
27	select PINCTRL_MAX96745
28	help
29	  Driver for Maxim MAX96745 GMSL2 Serializer with eDP1.4a/DP1.4 Input.
30
31config DRM_MAXIM_MAX96755F
32	bool "Maxim max96755F GMSL2 Serializer"
33	depends on DRM_ROCKCHIP
34	select I2C_MUX_MAX96755F
35	select PINCTRL_MAX96755F
36	help
37	  Driver for Maxim MAX96755F GMSL2 Serializer with MIPI-DSI Input.
38
39config DRM_PANEL_ROHM_BU18RL82
40	bool "Rohm BU18RL82-based panels"
41	depends on DRM_ROCKCHIP
42	help
43	  Say Y if you want to enable support for panels based on the
44	  Rohm BU18RL82.
45
46config DRM_PANEL_MAXIM_MAX96752F
47	bool "Maxim MAX96752F-based panels"
48	depends on DRM_ROCKCHIP
49	help
50	  Say Y if you want to enable support for panels based on the
51	  Maxim MAX96752F.
52
53config DRM_ROCKCHIP_PANEL
54	bool "Rockchip Panel Support"
55	depends on DRM_ROCKCHIP
56	select DRM_MIPI_DSI
57
58config DRM_ROHM_BU18XL82
59	bool "ROHM clockless serializer BU18TL82 and  deserializer BU18RL82"
60	depends on DRM_ROCKCHIP && I2C_MUX
61	help
62	  Driver for ROHM clockless serdes with MIPI or LVDS Input.
63
64config DRM_ROCKCHIP_DW_HDMI
65	bool "Rockchip specific extensions for Synopsys DW HDMI"
66	depends on DRM_ROCKCHIP
67	help
68	 This selects support for Rockchip SoC specific extensions
69	 for the Synopsys DesignWare HDMI driver. If you want to
70	 enable HDMI on, you should selet this option.
71
72config DRM_ROCKCHIP_DW_HDMI_QP
73	bool "Rockchip specific extensions for Synopsys DW HDMI QP"
74	depends on DRM_ROCKCHIP
75	help
76	 This selects support for Rockchip SoC specific extensions
77	 for the Synopsys DesignWare HDMI QP driver. If you want to
78	 enable HDMI on, you should select this option.
79
80config DRM_ROCKCHIP_INNO_HDMI
81	bool "Rockchip specific extensions for INNO HDMI"
82	depends on DRM_ROCKCHIP
83	help
84	 This selects support for Rockchip SoC specific extensions
85	 for the Synopsys DesignWare HDMI driver. If you want to
86	 enable HDMI on, you should selet this option.
87
88config ROCKCHIP_INNO_HDMI_PHY
89	bool "Rockchip specific extensions for INNO HDMI PHY"
90	depends on DRM_ROCKCHIP
91	help
92	 This selects support for INNO HDMI PHY. If you want to
93	 use HDMI or TVE in RK322XH or RK322X, you should selet
94	 this option.
95
96config DRM_ROCKCHIP_INNO_MIPI_PHY
97	tristate "Rockchip INNO MIPI PHY driver"
98	depends on DRM_ROCKCHIP
99	help
100	  Enable this to support the Rockchip MIPI PHY
101	  with Innosilicon IP block.
102
103config DRM_ROCKCHIP_INNO_VIDEO_PHY
104	tristate "Rockchip INNO LVDS/TTL PHY driver"
105	depends on DRM_ROCKCHIP
106	help
107	  Enable this to support the Rockchip LVDS/TTL PHY
108	  with Innosilicon IP block.
109
110config DRM_ROCKCHIP_INNO_VIDEO_COMBO_PHY
111	tristate "Rockchip INNO MIPI/LVDS/TTL PHY driver"
112	depends on DRM_ROCKCHIP
113	help
114	  Enable this to support the Rockchip MIPI/LVDS/TTL PHY
115	  with Innosilicon IP block.
116
117config DRM_MIPI_DSI
118	bool
119	depends on DRM_ROCKCHIP
120
121config DRM_DSC
122	bool
123	depends on DRM_ROCKCHIP
124
125config DRM_ROCKCHIP_DW_MIPI_DSI
126	tristate "Rockchip specific extensions for Synopsys DW MIPI DSI"
127	depends on DRM_ROCKCHIP
128	select DRM_MIPI_DSI
129	select DRM_ROCKCHIP_PANEL
130	help
131	 This selects support for Rockchip SoC specific extensions
132	 for the Synopsys DesignWare HDMI driver. If you want to
133	 enable MIPI DSI on RK3288 based SoC, you should selet this
134	 option.
135
136config DRM_ROCKCHIP_DW_MIPI_DSI2
137	tristate "Rockchip specific extensions for Synopsys DW MIPI DSI2"
138	depends on DRM_ROCKCHIP
139	select DRM_MIPI_DSI
140	select DRM_DSC
141	select DRM_ROCKCHIP_PANEL
142	help
143	 This selects support for Rockchip SoC specific extensions
144	 for the Synopsys DesignWare MIPI DSI2 driver. If you want to
145	 enable MIPI DSI2 on RK3588 based SoC, you should selet this
146	 option.
147
148config DRM_ROCKCHIP_DW_DP
149	bool "Rockchip specific extensions for Synopsys DW DP driver"
150	depends on DRM_ROCKCHIP
151	select DRM_DP_HELPER
152	help
153	  This selects support for Rockchip SoC specific extensions
154	  for the Synopsys DW DP driver. If you want to enable DP
155	  on RK3588 based SoC, you should select this option.
156
157config DRM_ROCKCHIP_ANALOGIX_DP
158	bool "Rockchip specific extensions for Analogix DP driver"
159	depends on DRM_ROCKCHIP
160	select DRM_ROCKCHIP_PANEL
161	select DRM_DP_HELPER
162	help
163	  This selects support for Rockchip SoC specific extensions
164	  for the Analogix Core DP driver. If you want to enable DP
165	  on RK3288 based SoC, you should selet this option.
166
167config DRM_ROCKCHIP_LVDS
168	bool "Rockchip LVDS Support"
169	depends on DRM_ROCKCHIP
170	select DRM_ROCKCHIP_PANEL
171	help
172	  Choose this option to enable support for Rockchip LVDS controllers.
173	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
174	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
175	  driver.
176
177config DRM_ROCKCHIP_RGB
178	bool "Rockchip RGB Support"
179	depends on DRM_ROCKCHIP
180	select DRM_ROCKCHIP_PANEL
181	help
182	  Choose this option to enable support for Rockchip RGB driver.
183	  say Y to enable its driver.
184
185config DRM_ROCKCHIP_RK618
186	bool "Rockchip RK618 display bridge driver"
187	depends on DRM_ROCKCHIP
188	select DRM_ROCKCHIP_PANEL
189	select VIDEO_BRIDGE
190	help
191	  Choose this option to enable support for Rockchip RK618 display
192	  bridge chips driver. say Y to enable its driver.
193
194config DRM_ROCKCHIP_RK628
195	bool "Rockchip RK628 display bridge driver"
196	depends on DRM_ROCKCHIP
197	help
198	  Choose this option to enable support for Rockchip RK628 display
199	  bridge chips driver. say Y to enable its driver.
200
201config DRM_ROCKCHIP_RK1000
202	bool "Rockchip RK1000 display bridge driver"
203	depends on DRM_ROCKCHIP
204	select DRM_ROCKCHIP_PANEL
205	select VIDEO_BRIDGE
206	help
207	  Choose this option to enable support for Rockchip RK1000 display
208	  bridge chips driver. say Y to enable its driver.
209
210config DRM_ROCKCHIP_SAMSUNG_MIPI_DCPHY
211	tristate "Rockchip SAMSUNG MIPI DCPHY driver"
212	depends on DRM_ROCKCHIP
213	help
214	  Enable this to support the Rockchip MIPI DCPHY
215	  with SAMSUNG IP block.
216
217config PHY_ROCKCHIP_SAMSUNG_HDPTX_HDMI
218	bool "Rockchip Samsung HDMI/DP Combo PHY HDMI driver"
219	depends on DRM_ROCKCHIP
220	select LIB_RATIONAL
221	help
222	  Support for Rockchip HDMI/DP Combo PHY HDMI with Samsung
223	  IP block.
224
225config DRM_ROCKCHIP_TVE
226	bool "Rockchip TVE Support"
227	depends on DRM_ROCKCHIP
228	help
229	  Choose this option to enable support for Rockchip TVE.
230	  Say Y to enable TVE driver.
231
232config ROCKCHIP_CUBIC_LUT_SIZE
233	int "Rockchip cubic lut size"
234	depends on DRM_ROCKCHIP
235	default 0
236	help
237	  Used to calc cubic lut size.
238
239config DRM_SII902X
240	bool "Silicon Image sii902x RGB/HDMI bridge"
241	depends on DRM_ROCKCHIP
242	help
243	  Silicon Image sii902x bridge chip driver.
244
245config ROCKCHIP_VIDCONSOLE
246	bool "Rockchip video console support"
247	depends on DRM_ROCKCHIP
248	default n
249	help
250	  Used to enable video console mode.
251	  This mode can be used to print text info on screen.
252
253config ROCKCHIP_VIDCONSOLE_MEM_RESERVED_SIZE_MBYTES
254	int "Size in Mega Bytes"
255	depends on ROCKCHIP_VIDCONSOLE
256	depends on DRM_ROCKCHIP
257	default 16
258	help
259	  Used to set the framebuffer size of video console.
260	  It can be calculated by:
261	    size = ROUNDUP(width x height x bpp / 8 / 1024 / 1024)
262
263config ROCKCHIP_VIDCONSOLE_WIDTH
264	int "Rockchip video console horizontal resolution"
265	depends on ROCKCHIP_VIDCONSOLE
266	default 0
267	help
268	  Used to set the width of video console.
269
270config ROCKCHIP_VIDCONSOLE_HEIGHT
271	int "Rockchip video console vertical resolution"
272	depends on ROCKCHIP_VIDCONSOLE
273	default 0
274	help
275	  Used to set the height of video console.
276
277config ROCKCHIP_VIDCONSOLE_BPP
278	int
279	depends on ROCKCHIP_VIDCONSOLE
280	default 32 if ROCKCHIP_VIDCONSOLE_BPP32
281	default 16 if ROCKCHIP_VIDCONSOLE_BPP16
282	default 8 if ROCKCHIP_VIDCONSOLE_BPP8
283	default 0
284
285choice
286	prompt "Rockchip video console bits per pixel"
287	depends on ROCKCHIP_VIDCONSOLE
288	default ROCKCHIP_VIDCONSOLE_BPP32
289	help
290	  Used to set the bits per pixel of video console.
291
292config ROCKCHIP_VIDCONSOLE_BPP32
293	bool "Rockchip video console BPP32"
294	depends on VIDEO_BPP32
295
296config ROCKCHIP_VIDCONSOLE_BPP16
297	bool "Rockchip video console BPP16"
298	depends on VIDEO_BPP16
299
300config ROCKCHIP_VIDCONSOLE_BPP8
301	bool "Rockchip video console BPP8"
302	depends on VIDEO_BPP8
303
304endchoice
305
306source "drivers/video/drm/display-serdes/Kconfig"
307
308