]> git.ipfire.org Git - people/ms/u-boot.git/blame - drivers/video/Kconfig
video kconfig console_normal
[people/ms/u-boot.git] / drivers / video / Kconfig
CommitLineData
0b11dbf7
MY
1#
2# Video configuration
3#
4
5menu "Graphics support"
6
1acafc73
SG
7config DM_VIDEO
8 bool "Enable driver model support for LCD/video"
9 depends on DM
10 help
11 This enables driver model for LCD and video devices. These support
12 a bitmap display of various sizes and depths which can be drawn on
13 to display a command-line console or splash screen. Enabling this
14 option compiles in the video uclass and routes all LCD/video access
15 through this.
16
17config VIDEO_BPP8
18 bool "Support 8-bit-per-pixel displays"
19 depends on DM_VIDEO
20 default y if DM_VIDEO
21 help
22 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
23 Enabling this will include code to support this display. Without
24 this option, such displays will not be supported and console output
25 will be empty.
26
27config VIDEO_BPP16
28 bool "Support 16-bit-per-pixel displays"
29 depends on DM_VIDEO
30 default y if DM_VIDEO
31 help
32 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
33 Enabling this will include code to support this display. Without
34 this option, such displays will not be supported and console output
35 will be empty.
36
37config VIDEO_BPP32
38 bool "Support 32-bit-per-pixel displays"
39 depends on DM_VIDEO
40 default y if DM_VIDEO
41 help
42 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
43 Enabling this will include code to support this display. Without
44 this option, such displays will not be supported and console output
45 will be empty.
46
6e42e251
SG
47config CONSOLE_NORMAL
48 bool "Support a simple text console"
49 depends on DM_VIDEO
50 default y if DM_VIDEO
51 help
52 Support drawing text on the frame buffer console so that it can be
53 used as a console. Rotation is not supported by this driver (see
54 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
55 for the display.
56
57config CONSOLE_ROTATION
b5146b28
SG
58 bool "Support rotated displays"
59 depends on DM_VIDEO
60 help
61 Sometimes, for example if the display is mounted in portrait
62 mode or even if it's mounted landscape but rotated by 180degree,
63 we need to rotate our content of the display relative to the
64 framebuffer, so that user can read the messages which are
65 printed out. Enable this option to include a text driver which can
66 support this. The rotation is set by the 'rot' parameter in
67 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
68 degrees, 3=270 degrees.
69
6b1ba984
SG
70config VIDEO_VESA
71 bool "Enable VESA video driver support"
6b1ba984
SG
72 default n
73 help
74 Turn on this option to enable a very simple driver which uses vesa
75 to discover the video mode and then provides a frame buffer for use
76 by U-Boot. This can in principle be used with any platform that
77 supports PCI and video cards that support VESA BIOS Extension (VBE).
78
6bde2dc5
BM
79config FRAMEBUFFER_SET_VESA_MODE
80 bool "Set framebuffer graphics resolution"
81 depends on VIDEO_VESA
82 help
83 Set VESA/native framebuffer mode (needed for bootsplash and graphical
84 framebuffer console)
85
86choice
87 prompt "framebuffer graphics resolution"
88 default FRAMEBUFFER_VESA_MODE_117
89 depends on FRAMEBUFFER_SET_VESA_MODE
90 help
91 This option sets the resolution used for the U-Boot framebuffer (and
92 bootsplash screen).
93
94config FRAMEBUFFER_VESA_MODE_100
95 bool "640x400 256-color"
96
97config FRAMEBUFFER_VESA_MODE_101
98 bool "640x480 256-color"
99
100config FRAMEBUFFER_VESA_MODE_102
101 bool "800x600 16-color"
102
103config FRAMEBUFFER_VESA_MODE_103
104 bool "800x600 256-color"
105
106config FRAMEBUFFER_VESA_MODE_104
107 bool "1024x768 16-color"
108
109config FRAMEBUFFER_VESA_MODE_105
57dccb55 110 bool "1024x768 256-color"
6bde2dc5
BM
111
112config FRAMEBUFFER_VESA_MODE_106
113 bool "1280x1024 16-color"
114
115config FRAMEBUFFER_VESA_MODE_107
116 bool "1280x1024 256-color"
117
118config FRAMEBUFFER_VESA_MODE_108
119 bool "80x60 text"
120
121config FRAMEBUFFER_VESA_MODE_109
122 bool "132x25 text"
123
124config FRAMEBUFFER_VESA_MODE_10A
125 bool "132x43 text"
126
127config FRAMEBUFFER_VESA_MODE_10B
128 bool "132x50 text"
129
130config FRAMEBUFFER_VESA_MODE_10C
131 bool "132x60 text"
132
133config FRAMEBUFFER_VESA_MODE_10D
134 bool "320x200 32k-color (1:5:5:5)"
135
136config FRAMEBUFFER_VESA_MODE_10E
137 bool "320x200 64k-color (5:6:5)"
138
139config FRAMEBUFFER_VESA_MODE_10F
140 bool "320x200 16.8M-color (8:8:8)"
141
142config FRAMEBUFFER_VESA_MODE_110
143 bool "640x480 32k-color (1:5:5:5)"
144
145config FRAMEBUFFER_VESA_MODE_111
146 bool "640x480 64k-color (5:6:5)"
147
148config FRAMEBUFFER_VESA_MODE_112
149 bool "640x480 16.8M-color (8:8:8)"
150
151config FRAMEBUFFER_VESA_MODE_113
152 bool "800x600 32k-color (1:5:5:5)"
153
154config FRAMEBUFFER_VESA_MODE_114
155 bool "800x600 64k-color (5:6:5)"
156
157config FRAMEBUFFER_VESA_MODE_115
158 bool "800x600 16.8M-color (8:8:8)"
159
160config FRAMEBUFFER_VESA_MODE_116
161 bool "1024x768 32k-color (1:5:5:5)"
162
163config FRAMEBUFFER_VESA_MODE_117
164 bool "1024x768 64k-color (5:6:5)"
165
166config FRAMEBUFFER_VESA_MODE_118
167 bool "1024x768 16.8M-color (8:8:8)"
168
169config FRAMEBUFFER_VESA_MODE_119
170 bool "1280x1024 32k-color (1:5:5:5)"
171
172config FRAMEBUFFER_VESA_MODE_11A
173 bool "1280x1024 64k-color (5:6:5)"
174
175config FRAMEBUFFER_VESA_MODE_11B
176 bool "1280x1024 16.8M-color (8:8:8)"
177
178config FRAMEBUFFER_VESA_MODE_USER
179 bool "Manually select VESA mode"
180
181endchoice
182
183# Map the config names to an integer (KB).
184config FRAMEBUFFER_VESA_MODE
185 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
186 hex
187 default 0x100 if FRAMEBUFFER_VESA_MODE_100
188 default 0x101 if FRAMEBUFFER_VESA_MODE_101
189 default 0x102 if FRAMEBUFFER_VESA_MODE_102
190 default 0x103 if FRAMEBUFFER_VESA_MODE_103
191 default 0x104 if FRAMEBUFFER_VESA_MODE_104
192 default 0x105 if FRAMEBUFFER_VESA_MODE_105
193 default 0x106 if FRAMEBUFFER_VESA_MODE_106
194 default 0x107 if FRAMEBUFFER_VESA_MODE_107
195 default 0x108 if FRAMEBUFFER_VESA_MODE_108
196 default 0x109 if FRAMEBUFFER_VESA_MODE_109
197 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
198 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
199 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
200 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
201 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
202 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
203 default 0x110 if FRAMEBUFFER_VESA_MODE_110
204 default 0x111 if FRAMEBUFFER_VESA_MODE_111
205 default 0x112 if FRAMEBUFFER_VESA_MODE_112
206 default 0x113 if FRAMEBUFFER_VESA_MODE_113
207 default 0x114 if FRAMEBUFFER_VESA_MODE_114
208 default 0x115 if FRAMEBUFFER_VESA_MODE_115
209 default 0x116 if FRAMEBUFFER_VESA_MODE_116
210 default 0x117 if FRAMEBUFFER_VESA_MODE_117
211 default 0x118 if FRAMEBUFFER_VESA_MODE_118
212 default 0x119 if FRAMEBUFFER_VESA_MODE_119
213 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
214 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
215 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
216
66525bb7
HG
217config VIDEO_LCD_ANX9804
218 bool "ANX9804 bridge chip"
219 default n
220 ---help---
221 Support for the ANX9804 bridge chip, which can take pixel data coming
222 from a parallel LCD interface and translate it on the fy into a DP
223 interface for driving eDP TFT displays. It uses I2C for configuration.
224
b8329acf
SS
225config VIDEO_LCD_SSD2828
226 bool "SSD2828 bridge chip"
227 default n
228 ---help---
229 Support for the SSD2828 bridge chip, which can take pixel data coming
230 from a parallel LCD interface and translate it on the fly into MIPI DSI
231 interface for driving a MIPI compatible LCD panel. It uses SPI for
232 configuration.
233
234config VIDEO_LCD_SSD2828_TX_CLK
235 int "SSD2828 TX_CLK frequency (in MHz)"
236 depends on VIDEO_LCD_SSD2828
dddccd69 237 default 0
b8329acf
SS
238 ---help---
239 The frequency of the crystal, which is clocking SSD2828. It may be
240 anything in the 8MHz-30MHz range and the exact value should be
241 retrieved from the board schematics. Or in the case of Allwinner
242 hardware, it can be usually found as 'lcd_xtal_freq' variable in
dddccd69
SS
243 FEX files. It can be also set to 0 for selecting PCLK from the
244 parallel LCD interface instead of TX_CLK as the PLL clock source.
b8329acf
SS
245
246config VIDEO_LCD_SSD2828_RESET
247 string "RESET pin of SSD2828"
248 depends on VIDEO_LCD_SSD2828
249 default ""
250 ---help---
251 The reset pin of SSD2828 chip. This takes a string in the format
252 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
253
a5464f2b
HG
254config VIDEO_LCD_HITACHI_TX18D42VM
255 bool "Hitachi tx18d42vm LVDS LCD panel support"
256 depends on VIDEO
257 default n
258 ---help---
259 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
260 lcd controller which needs to be initialized over SPI, once that is
261 done they work like a regular LVDS panel.
262
b8329acf
SS
263config VIDEO_LCD_SPI_CS
264 string "SPI CS pin for LCD related config job"
a5464f2b 265 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
b8329acf
SS
266 default ""
267 ---help---
268 This is one of the SPI communication pins, involved in setting up a
269 working LCD configuration. The exact role of SPI may differ for
270 different hardware setups. The option takes a string in the format
271 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
272
273config VIDEO_LCD_SPI_SCLK
274 string "SPI SCLK pin for LCD related config job"
a5464f2b 275 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
b8329acf
SS
276 default ""
277 ---help---
278 This is one of the SPI communication pins, involved in setting up a
279 working LCD configuration. The exact role of SPI may differ for
280 different hardware setups. The option takes a string in the format
281 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
282
283config VIDEO_LCD_SPI_MOSI
284 string "SPI MOSI pin for LCD related config job"
a5464f2b 285 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
b8329acf
SS
286 default ""
287 ---help---
288 This is one of the SPI communication pins, involved in setting up a
289 working LCD configuration. The exact role of SPI may differ for
290 different hardware setups. The option takes a string in the format
291 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
292
293config VIDEO_LCD_SPI_MISO
294 string "SPI MISO pin for LCD related config job (optional)"
295 depends on VIDEO_LCD_SSD2828
296 default ""
297 ---help---
298 This is one of the SPI communication pins, involved in setting up a
299 working LCD configuration. The exact role of SPI may differ for
300 different hardware setups. If wired up, this pin may provide additional
301 useful functionality. Such as bi-directional communication with the
302 hardware and LCD panel id retrieval (if the panel can report it). The
303 option takes a string in the format understood by 'name_to_gpio'
304 function, e.g. PH1 for pin 1 of port H.
51f2c99e 305
913d1be2
SR
306config VIDEO_MVEBU
307 bool "Armada XP LCD controller"
308 default n
309 ---help---
310 Support for the LCD controller integrated in the Marvell
311 Armada XP SoC.
312
7588c312
AG
313config I2C_EDID
314 bool "Enable EDID library"
315 depends on DM_I2C
316 default n
317 help
318 This enables library for accessing EDID data from an LCD panel.
319
2dcf1433
SG
320config DISPLAY
321 bool "Enable Display support"
322 depends on DM
7588c312
AG
323 default n
324 select I2C_EDID
51f2c99e 325 help
2dcf1433
SG
326 This supports drivers that provide a display, such as eDP (Embedded
327 DisplayPort) and HDMI (High Definition Multimedia Interface).
328 The devices provide a simple interface to start up the display,
329 read display information and enable it.
e7e8823c 330
c2539483
SG
331config VIDEO_ROCKCHIP
332 bool "Enable Rockchip video support"
333 depends on DM_VIDEO
334 help
335 Rockchip SoCs provide video output capabilities for High-Definition
336 Multimedia Interface (HDMI), Low-voltage Differential Signalling
337 (LVDS), embedded DisplayPort (eDP) and Display Serial Interface
338 (DSI). This driver supports the on-chip video output device, and
339 targets the Rockchip RK3288.
340
1e69ad01
SG
341config VIDEO_SANDBOX_SDL
342 bool "Enable sandbox video console using SDL"
343 depends on SANDBOX
344 help
345 When using sandbox you can enable an emulated LCD display which
346 appears as an SDL (Simple DirectMedia Layer) window. This is a
347 console device and can display stdout output. Within U-Boot is is
348 a normal bitmap display and can display images as well as text.
349
e7e8823c
SG
350config VIDEO_TEGRA124
351 bool "Enable video support on Tegra124"
352 help
353 Tegra124 supports many video output options including eDP and
354 HDMI. At present only eDP is supported by U-Boot. This option
355 enables this support which can be used on devices which
356 have an eDP display connected.
801ab9e9
SG
357
358source "drivers/video/bridge/Kconfig"
0b11dbf7
MY
359
360endmenu