blob: bdacf67795464a2c2dde818eb32a2e80960c9a27 [file] [log] [blame]
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glass1acafc72016-01-18 19:52:15 -07007config 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
Anatolij Gustschine26e5202020-05-26 00:20:49 +020017config BACKLIGHT
18 bool "Enable panel backlight uclass support"
19 depends on DM_VIDEO
20 default y
21 help
22 This provides backlight uclass driver that enables basic panel
23 backlight support.
24
Simon Glass551ca0e2020-07-02 21:12:33 -060025config VIDEO_PCI_DEFAULT_FB_SIZE
26 hex "Default framebuffer size to use if no drivers request it"
27 depends on DM_VIDEO
28 default 0x1000000 if X86 && PCI
29 default 0 if !(X86 && PCI)
30 help
31 Generally, video drivers request the amount of memory they need for
32 the frame buffer when they are bound, by setting the size field in
Dario Binacchi196947b2021-01-23 19:43:52 +010033 struct video_uc_plat. That memory is then reserved for use after
Simon Glass551ca0e2020-07-02 21:12:33 -060034 relocation. But PCI drivers cannot be bound before relocation unless
35 they are mentioned in the devicetree.
36
37 With this value set appropriately, it is possible for PCI video
38 devices to have a framebuffer allocated by U-Boot.
39
40 Note: the framebuffer needs to be large enough to store all pixels at
41 maximum resolution. For example, at 1920 x 1200 with 32 bits per
42 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
43
Simon Glass9beac5d2020-07-02 21:12:20 -060044config VIDEO_COPY
45 bool "Enable copying the frame buffer to a hardware copy"
46 depends on DM_VIDEO
47 help
48 On some machines (e.g. x86), reading from the frame buffer is very
49 slow because it is uncached. To improve performance, this feature
50 allows the frame buffer to be kept in cached memory (allocated by
51 U-Boot) and then copied to the hardware frame-buffer as needed.
52
53 To use this, your video driver must set @copy_base in
Dario Binacchi196947b2021-01-23 19:43:52 +010054 struct video_uc_plat.
Simon Glass9beac5d2020-07-02 21:12:20 -060055
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020056config BACKLIGHT_PWM
57 bool "Generic PWM based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020058 depends on BACKLIGHT && DM_PWM
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020059 default y
60 help
61 If you have a LCD backlight adjustable by PWM, say Y to enable
62 this driver.
63 This driver can be use with "simple-panel" and
64 it understands the standard device tree
65 (leds/backlight/pwm-backlight.txt)
66
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +020067config BACKLIGHT_GPIO
68 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020069 depends on BACKLIGHT
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +020070 help
71 If you have a LCD backlight adjustable by GPIO, say Y to enable
72 this driver.
73 This driver can be used with "simple-panel" and
74 it understands the standard device tree
75 (leds/backlight/gpio-backlight.txt)
76
Anatolij Gustschin39b95552020-05-25 21:47:19 +020077config CMD_VIDCONSOLE
78 bool "Enable vidconsole commands lcdputs and setcurs"
79 depends on DM_VIDEO
80 default y
81 help
82 Enabling this will provide 'setcurs' and 'lcdputs' commands which
83 support cursor positioning and drawing strings on video framebuffer.
84
Simon Glass1acafc72016-01-18 19:52:15 -070085config VIDEO_BPP8
86 bool "Support 8-bit-per-pixel displays"
87 depends on DM_VIDEO
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +010088 default y
Simon Glass1acafc72016-01-18 19:52:15 -070089 help
90 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
91 Enabling this will include code to support this display. Without
92 this option, such displays will not be supported and console output
93 will be empty.
94
95config VIDEO_BPP16
96 bool "Support 16-bit-per-pixel displays"
97 depends on DM_VIDEO
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +010098 default y
Simon Glass1acafc72016-01-18 19:52:15 -070099 help
100 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
101 Enabling this will include code to support this display. Without
102 this option, such displays will not be supported and console output
103 will be empty.
104
105config VIDEO_BPP32
106 bool "Support 32-bit-per-pixel displays"
107 depends on DM_VIDEO
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100108 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700109 help
110 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
111 Enabling this will include code to support this display. Without
112 this option, such displays will not be supported and console output
113 will be empty.
114
Rob Clarka085aa12017-09-13 18:12:21 -0400115config VIDEO_ANSI
116 bool "Support ANSI escape sequences in video console"
117 depends on DM_VIDEO
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100118 default y
Rob Clarka085aa12017-09-13 18:12:21 -0400119 help
120 Enable ANSI escape sequence decoding for a more fully functional
121 console.
122
Yannick Fertré66c37242019-10-07 15:29:04 +0200123config VIDEO_MIPI_DSI
124 bool "Support MIPI DSI interface"
125 depends on DM_VIDEO
126 help
127 Support MIPI DSI interface for driving a MIPI compatible device.
128 The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
129 serial interface between a host processor and a display module.
130
Simon Glass6e42e252016-01-22 21:53:37 +0100131config CONSOLE_NORMAL
132 bool "Support a simple text console"
133 depends on DM_VIDEO
134 default y if DM_VIDEO
135 help
136 Support drawing text on the frame buffer console so that it can be
137 used as a console. Rotation is not supported by this driver (see
138 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
139 for the display.
140
141config CONSOLE_ROTATION
Simon Glassb5146b22016-01-18 19:52:19 -0700142 bool "Support rotated displays"
143 depends on DM_VIDEO
144 help
145 Sometimes, for example if the display is mounted in portrait
146 mode or even if it's mounted landscape but rotated by 180degree,
147 we need to rotate our content of the display relative to the
148 framebuffer, so that user can read the messages which are
149 printed out. Enable this option to include a text driver which can
150 support this. The rotation is set by the 'rot' parameter in
151 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
152 degrees, 3=270 degrees.
153
Simon Glassa29b0122016-01-14 18:10:42 -0700154config CONSOLE_TRUETYPE
155 bool "Support a console that uses TrueType fonts"
156 depends on DM_VIDEO
157 help
158 TrueTrype fonts can provide outline-drawing capability rather than
159 needing to provide a bitmap for each font and size that is needed.
160 With this option you can adjust the text size and use a variety of
161 fonts. Note that this is noticeably slower than with normal console.
162
163config CONSOLE_TRUETYPE_SIZE
164 int "TrueType font size"
165 depends on CONSOLE_TRUETYPE
166 default 18
167 help
168 This sets the font size for the console. The size is measured in
169 pixels and is the nominal height of a character. Note that fonts
170 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
171 However that measurement depends on the size of your display and
172 there is no standard display density. At present there is not a
173 method to select the display's physical size, which would allow
174 U-Boot to calculate the correct font size.
175
Simon Glass983b1032017-04-26 22:27:57 -0600176config SYS_WHITE_ON_BLACK
177 bool "Display console as white on a black background"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400178 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glass983b1032017-04-26 22:27:57 -0600179 help
180 Normally the display is black on a white background, Enable this
181 option to invert this, i.e. white on a black background. This can be
182 better in low-light situations or to reduce eye strain in some
183 cases.
184
Rob Clark8ef05352017-08-03 12:47:01 -0400185config NO_FB_CLEAR
186 bool "Skip framebuffer clear"
187 help
188 If firmware (whatever loads u-boot) has already put a splash image
189 on screen, you might want to preserve it until whatever u-boot
190 loads takes over the screen. This, for example, can be used to
191 keep splash image on screen until grub graphical boot menu starts.
192
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200193config PANEL
194 bool "Enable panel uclass support"
195 depends on DM_VIDEO
196 default y
197 help
198 This provides panel uclass driver that enables basic panel support.
199
200config SIMPLE_PANEL
201 bool "Enable simple panel support"
Marcin Juszkiewicz9a3122f2020-11-05 17:30:26 +0100202 depends on PANEL && BACKLIGHT
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200203 default y
204 help
205 This turns on a simple panel driver that enables a compatible
206 video panel.
207
Simon Glassa29b0122016-01-14 18:10:42 -0700208source "drivers/video/fonts/Kconfig"
209
Simon Glassa2931b32016-02-06 14:31:37 -0700210config VIDCONSOLE_AS_LCD
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200211 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Simon Glassa2931b32016-02-06 14:31:37 -0700212 depends on DM_VIDEO
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200213 help
214 This is a work-around for boards which have 'lcd' or 'vga' in their
215 stdout environment variable, but have moved to use driver model for
216 video. In this case the console will no-longer work. While it is
217 possible to update the environment, the breakage may be confusing for
218 users. This option will be removed around the end of 2020.
219
220config VIDCONSOLE_AS_NAME
221 string "Use 'vidconsole' when string defined here is seen in stdout"
222 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200223 default "lcd" if LCD || TEGRA_COMMON
224 default "vga" if !LCD
Simon Glassa2931b32016-02-06 14:31:37 -0700225 help
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200226 This is a work-around for boards which have 'lcd' or 'vga' in their
227 stdout environment variable, but have moved to use driver model for
228 video. In this case the console will no-longer work. While it is
229 possible to update the environment, the breakage may be confusing for
230 users. This option will be removed around the end of 2020.
Simon Glassa2931b32016-02-06 14:31:37 -0700231
Bin Meng13b2bfc2016-10-09 04:14:16 -0700232config VIDEO_COREBOOT
233 bool "Enable coreboot framebuffer driver support"
234 depends on X86 && SYS_COREBOOT
235 help
236 Turn on this option to enable a framebuffer driver when U-Boot is
237 loaded by coreboot where the graphics device is configured by
238 coreboot already. This can in principle be used with any platform
239 that coreboot supports.
240
Bin Meng4a08c742018-06-12 08:36:22 -0700241config VIDEO_EFI
242 bool "Enable EFI framebuffer driver support"
243 depends on EFI_STUB
244 help
245 Turn on this option to enable a framebuffeer driver when U-Boot is
246 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
247 the graphics device is configured by the EFI BIOS already. This can
248 in principle be used with any platform that has an EFI BIOS.
249
Simon Glass6b1ba982014-12-29 19:32:28 -0700250config VIDEO_VESA
251 bool "Enable VESA video driver support"
Simon Glass6b1ba982014-12-29 19:32:28 -0700252 default n
253 help
254 Turn on this option to enable a very simple driver which uses vesa
255 to discover the video mode and then provides a frame buffer for use
256 by U-Boot. This can in principle be used with any platform that
257 supports PCI and video cards that support VESA BIOS Extension (VBE).
258
Bin Meng6bde2dc2015-05-11 07:36:29 +0800259config FRAMEBUFFER_SET_VESA_MODE
260 bool "Set framebuffer graphics resolution"
Simon Glass97cb0922016-03-11 22:07:30 -0700261 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng6bde2dc2015-05-11 07:36:29 +0800262 help
263 Set VESA/native framebuffer mode (needed for bootsplash and graphical
264 framebuffer console)
265
266choice
267 prompt "framebuffer graphics resolution"
Bin Meng17b07d72018-04-11 22:02:16 -0700268 default FRAMEBUFFER_VESA_MODE_118
Bin Meng6bde2dc2015-05-11 07:36:29 +0800269 depends on FRAMEBUFFER_SET_VESA_MODE
270 help
271 This option sets the resolution used for the U-Boot framebuffer (and
272 bootsplash screen).
273
274config FRAMEBUFFER_VESA_MODE_100
275 bool "640x400 256-color"
276
277config FRAMEBUFFER_VESA_MODE_101
278 bool "640x480 256-color"
279
280config FRAMEBUFFER_VESA_MODE_102
281 bool "800x600 16-color"
282
283config FRAMEBUFFER_VESA_MODE_103
284 bool "800x600 256-color"
285
286config FRAMEBUFFER_VESA_MODE_104
287 bool "1024x768 16-color"
288
289config FRAMEBUFFER_VESA_MODE_105
Bin Meng57dccb52015-08-09 23:26:59 -0700290 bool "1024x768 256-color"
Bin Meng6bde2dc2015-05-11 07:36:29 +0800291
292config FRAMEBUFFER_VESA_MODE_106
293 bool "1280x1024 16-color"
294
295config FRAMEBUFFER_VESA_MODE_107
296 bool "1280x1024 256-color"
297
298config FRAMEBUFFER_VESA_MODE_108
299 bool "80x60 text"
300
301config FRAMEBUFFER_VESA_MODE_109
302 bool "132x25 text"
303
304config FRAMEBUFFER_VESA_MODE_10A
305 bool "132x43 text"
306
307config FRAMEBUFFER_VESA_MODE_10B
308 bool "132x50 text"
309
310config FRAMEBUFFER_VESA_MODE_10C
311 bool "132x60 text"
312
313config FRAMEBUFFER_VESA_MODE_10D
314 bool "320x200 32k-color (1:5:5:5)"
315
316config FRAMEBUFFER_VESA_MODE_10E
317 bool "320x200 64k-color (5:6:5)"
318
319config FRAMEBUFFER_VESA_MODE_10F
320 bool "320x200 16.8M-color (8:8:8)"
321
322config FRAMEBUFFER_VESA_MODE_110
323 bool "640x480 32k-color (1:5:5:5)"
324
325config FRAMEBUFFER_VESA_MODE_111
326 bool "640x480 64k-color (5:6:5)"
327
328config FRAMEBUFFER_VESA_MODE_112
329 bool "640x480 16.8M-color (8:8:8)"
330
331config FRAMEBUFFER_VESA_MODE_113
332 bool "800x600 32k-color (1:5:5:5)"
333
334config FRAMEBUFFER_VESA_MODE_114
335 bool "800x600 64k-color (5:6:5)"
336
337config FRAMEBUFFER_VESA_MODE_115
338 bool "800x600 16.8M-color (8:8:8)"
339
340config FRAMEBUFFER_VESA_MODE_116
341 bool "1024x768 32k-color (1:5:5:5)"
342
343config FRAMEBUFFER_VESA_MODE_117
344 bool "1024x768 64k-color (5:6:5)"
345
346config FRAMEBUFFER_VESA_MODE_118
347 bool "1024x768 16.8M-color (8:8:8)"
348
349config FRAMEBUFFER_VESA_MODE_119
350 bool "1280x1024 32k-color (1:5:5:5)"
351
352config FRAMEBUFFER_VESA_MODE_11A
353 bool "1280x1024 64k-color (5:6:5)"
354
355config FRAMEBUFFER_VESA_MODE_11B
356 bool "1280x1024 16.8M-color (8:8:8)"
357
358config FRAMEBUFFER_VESA_MODE_USER
359 bool "Manually select VESA mode"
360
361endchoice
362
363# Map the config names to an integer (KB).
364config FRAMEBUFFER_VESA_MODE
365 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
366 hex
367 default 0x100 if FRAMEBUFFER_VESA_MODE_100
368 default 0x101 if FRAMEBUFFER_VESA_MODE_101
369 default 0x102 if FRAMEBUFFER_VESA_MODE_102
370 default 0x103 if FRAMEBUFFER_VESA_MODE_103
371 default 0x104 if FRAMEBUFFER_VESA_MODE_104
372 default 0x105 if FRAMEBUFFER_VESA_MODE_105
373 default 0x106 if FRAMEBUFFER_VESA_MODE_106
374 default 0x107 if FRAMEBUFFER_VESA_MODE_107
375 default 0x108 if FRAMEBUFFER_VESA_MODE_108
376 default 0x109 if FRAMEBUFFER_VESA_MODE_109
377 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
378 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
379 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
380 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
381 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
382 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
383 default 0x110 if FRAMEBUFFER_VESA_MODE_110
384 default 0x111 if FRAMEBUFFER_VESA_MODE_111
385 default 0x112 if FRAMEBUFFER_VESA_MODE_112
386 default 0x113 if FRAMEBUFFER_VESA_MODE_113
387 default 0x114 if FRAMEBUFFER_VESA_MODE_114
388 default 0x115 if FRAMEBUFFER_VESA_MODE_115
389 default 0x116 if FRAMEBUFFER_VESA_MODE_116
390 default 0x117 if FRAMEBUFFER_VESA_MODE_117
391 default 0x118 if FRAMEBUFFER_VESA_MODE_118
392 default 0x119 if FRAMEBUFFER_VESA_MODE_119
393 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
394 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
395 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
396
Hans de Goede66525bb2015-08-08 16:03:29 +0200397config VIDEO_LCD_ANX9804
398 bool "ANX9804 bridge chip"
399 default n
400 ---help---
401 Support for the ANX9804 bridge chip, which can take pixel data coming
402 from a parallel LCD interface and translate it on the fy into a DP
403 interface for driving eDP TFT displays. It uses I2C for configuration.
404
Yannick Fertré78157b22019-10-07 15:29:08 +0200405config VIDEO_LCD_ORISETECH_OTM8009A
406 bool "OTM8009A DSI LCD panel support"
407 depends on DM_VIDEO
408 select VIDEO_MIPI_DSI
409 default n
410 help
411 Say Y here if you want to enable support for Orise Technology
412 otm8009a 480x800 dsi 2dl panel.
413
Yannick Fertré06ef1312019-10-07 15:29:09 +0200414config VIDEO_LCD_RAYDIUM_RM68200
415 bool "RM68200 DSI LCD panel support"
416 depends on DM_VIDEO
417 select VIDEO_MIPI_DSI
418 default n
419 help
420 Say Y here if you want to enable support for Raydium RM68200
421 720x1280 DSI video mode panel.
422
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200423config VIDEO_LCD_SSD2828
424 bool "SSD2828 bridge chip"
425 default n
426 ---help---
427 Support for the SSD2828 bridge chip, which can take pixel data coming
428 from a parallel LCD interface and translate it on the fly into MIPI DSI
429 interface for driving a MIPI compatible LCD panel. It uses SPI for
430 configuration.
431
432config VIDEO_LCD_SSD2828_TX_CLK
433 int "SSD2828 TX_CLK frequency (in MHz)"
434 depends on VIDEO_LCD_SSD2828
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200435 default 0
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200436 ---help---
437 The frequency of the crystal, which is clocking SSD2828. It may be
438 anything in the 8MHz-30MHz range and the exact value should be
439 retrieved from the board schematics. Or in the case of Allwinner
440 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200441 FEX files. It can be also set to 0 for selecting PCLK from the
442 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200443
444config VIDEO_LCD_SSD2828_RESET
445 string "RESET pin of SSD2828"
446 depends on VIDEO_LCD_SSD2828
447 default ""
448 ---help---
449 The reset pin of SSD2828 chip. This takes a string in the format
450 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
451
Neil Armstrongc823f242020-09-29 11:53:53 +0200452config VIDEO_LCD_TDO_TL070WSH30
453 bool "TDO TL070WSH30 DSI LCD panel support"
454 depends on DM_VIDEO
455 select VIDEO_MIPI_DSI
456 default n
457 help
458 Say Y here if you want to enable support for TDO TL070WSH30
459 1024x600 DSI video mode panel.
460
Hans de Goedea5464f22015-01-20 09:22:26 +0100461config VIDEO_LCD_HITACHI_TX18D42VM
462 bool "Hitachi tx18d42vm LVDS LCD panel support"
463 depends on VIDEO
464 default n
465 ---help---
466 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
467 lcd controller which needs to be initialized over SPI, once that is
468 done they work like a regular LVDS panel.
469
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200470config VIDEO_LCD_SPI_CS
471 string "SPI CS pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100472 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200473 default ""
474 ---help---
475 This is one of the SPI communication pins, involved in setting up a
476 working LCD configuration. The exact role of SPI may differ for
477 different hardware setups. The option takes a string in the format
478 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
479
480config VIDEO_LCD_SPI_SCLK
481 string "SPI SCLK pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100482 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200483 default ""
484 ---help---
485 This is one of the SPI communication pins, involved in setting up a
486 working LCD configuration. The exact role of SPI may differ for
487 different hardware setups. The option takes a string in the format
488 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
489
490config VIDEO_LCD_SPI_MOSI
491 string "SPI MOSI pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100492 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200493 default ""
494 ---help---
495 This is one of the SPI communication pins, involved in setting up a
496 working LCD configuration. The exact role of SPI may differ for
497 different hardware setups. The option takes a string in the format
498 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
499
500config VIDEO_LCD_SPI_MISO
501 string "SPI MISO pin for LCD related config job (optional)"
502 depends on VIDEO_LCD_SSD2828
503 default ""
504 ---help---
505 This is one of the SPI communication pins, involved in setting up a
506 working LCD configuration. The exact role of SPI may differ for
507 different hardware setups. If wired up, this pin may provide additional
508 useful functionality. Such as bi-directional communication with the
509 hardware and LCD panel id retrieval (if the panel can report it). The
510 option takes a string in the format understood by 'name_to_gpio'
511 function, e.g. PH1 for pin 1 of port H.
Simon Glass51f2c992015-04-14 21:03:38 -0600512
Neil Armstrong3bed4222018-07-24 17:45:28 +0200513source "drivers/video/meson/Kconfig"
514
Stefan Roese913d1be2016-01-20 08:13:28 +0100515config VIDEO_MVEBU
516 bool "Armada XP LCD controller"
517 default n
518 ---help---
519 Support for the LCD controller integrated in the Marvell
520 Armada XP SoC.
521
Adam Ford244eaea2018-08-02 08:50:20 -0500522config VIDEO_OMAP3
523 bool "Enable OMAP3+ DSS Support"
524 depends on ARCH_OMAP2PLUS
525 help
526 This enables the Display subsystem (DSS) on OMAP3+ boards.
527
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100528config I2C_EDID
529 bool "Enable EDID library"
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100530 default n
531 help
532 This enables library for accessing EDID data from an LCD panel.
533
Simon Glass2dcf1432016-01-21 19:45:00 -0700534config DISPLAY
535 bool "Enable Display support"
536 depends on DM
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100537 default n
538 select I2C_EDID
Simon Glass51f2c992015-04-14 21:03:38 -0600539 help
Simon Glass2dcf1432016-01-21 19:45:00 -0700540 This supports drivers that provide a display, such as eDP (Embedded
541 DisplayPort) and HDMI (High Definition Multimedia Interface).
542 The devices provide a simple interface to start up the display,
543 read display information and enable it.
Simon Glasse7e88232015-04-14 21:03:42 -0600544
Liviu Dudau055da182018-09-28 13:49:31 +0100545config NXP_TDA19988
546 bool "Enable NXP TDA19988 support"
547 depends on DISPLAY
548 default n
549 help
550 This enables support for the NXP TDA19988 HDMI encoder. This encoder
551 will convert RGB data streams into HDMI-encoded signals.
552
Songjun Wu79278312017-04-11 16:33:30 +0800553config ATMEL_HLCD
554 bool "Enable ATMEL video support using HLCDC"
Songjun Wu79278312017-04-11 16:33:30 +0800555 help
556 HLCDC supports video output to an attached LCD panel.
557
Dario Binacchi260cbc92020-12-30 00:16:31 +0100558source "drivers/video/ti/Kconfig"
Dario Binacchi96b109b2020-02-22 14:05:45 +0100559
Mario Six25a9f972018-08-09 14:51:23 +0200560config LOGICORE_DP_TX
561 bool "Enable Logicore DP TX driver"
562 depends on DISPLAY
563 help
564 Enable the driver for the transmitter part of the Xilinx LogiCORE
565 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
566 video interface as defined by VESA DisplayPort v1.2.
567
568 Note that this is a pure transmitter device, and has no display
569 capabilities by itself.
570
Simon Glass97cb0922016-03-11 22:07:30 -0700571config VIDEO_BROADWELL_IGD
572 bool "Enable Intel Broadwell integrated graphics device"
573 depends on X86
574 help
Simon Glass1df91272016-10-05 20:42:14 -0600575 This enables support for integrated graphics on Intel broadwell
Simon Glass97cb0922016-03-11 22:07:30 -0700576 devices. Initialisation is mostly performed by a VGA boot ROM, with
577 some setup handled by U-Boot itself. The graphics adaptor works as
578 a VESA device and supports LCD panels, eDP and LVDS outputs.
579 Configuration of most aspects of device operation is performed using
580 a special tool which configures the VGA ROM, but the graphics
581 resolution can be selected in U-Boot.
582
Simon Glass2c943802016-10-05 20:42:15 -0600583config VIDEO_IVYBRIDGE_IGD
584 bool "Enable Intel Ivybridge integration graphics support"
585 depends on X86
586 help
587 This enables support for integrated graphics on Intel ivybridge
588 devices. Initialisation is mostly performed by a VGA boot ROM, with
589 some setup handled by U-Boot itself. The graphics adaptor works as
590 a VESA device and supports LCD panels, eDP and LVDS outputs.
591 Configuration of most aspects of device operation is performed using
592 a special tool which configures the VGA ROM, but the graphics
593 resolution can be selected in U-Boot.
594
Sanchayan Maityb215fb32017-04-11 11:12:09 +0530595config VIDEO_FSL_DCU_FB
596 bool "Enable Freescale Display Control Unit"
Igor Opaniukbe3f1a52019-06-10 14:47:50 +0300597 depends on VIDEO || DM_VIDEO
Sanchayan Maityb215fb32017-04-11 11:12:09 +0530598 help
599 This enables support for Freescale Display Control Unit (DCU4)
600 module found on Freescale Vybrid and QorIQ family of SoCs.
601
Stefan Agner77810e62017-04-11 11:12:10 +0530602config VIDEO_FSL_DCU_MAX_FB_SIZE_MB
603 int "Freescale DCU framebuffer size"
604 depends on VIDEO_FSL_DCU_FB
605 default 4194304
606 help
607 Set maximum framebuffer size to be used for Freescale Display
608 Controller Unit (DCU4).
609
eric.gao@rock-chips.comb98f0a32017-04-17 22:24:23 +0800610source "drivers/video/rockchip/Kconfig"
Simon Glassc2539482016-01-21 19:45:03 -0700611
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100612config VIDEO_ARM_MALIDP
613 bool "Enable Arm Mali Display Processor support"
614 depends on DM_VIDEO && OF_CONTROL
615 select VEXPRESS_CLK
616 help
617 This enables support for Arm Ltd Mali Display Processors from
618 the DP500, DP550 and DP650 family.
619
Simon Glass1e69ad02016-01-18 19:52:24 -0700620config VIDEO_SANDBOX_SDL
621 bool "Enable sandbox video console using SDL"
622 depends on SANDBOX
623 help
624 When using sandbox you can enable an emulated LCD display which
625 appears as an SDL (Simple DirectMedia Layer) window. This is a
626 console device and can display stdout output. Within U-Boot is is
627 a normal bitmap display and can display images as well as text.
628
Philippe CORNU72719d22017-08-03 12:36:08 +0200629source "drivers/video/stm32/Kconfig"
630
Simon Glassd2f90652016-01-30 16:37:51 -0700631config VIDEO_TEGRA20
632 bool "Enable LCD support on Tegra20"
Simon Glass40d56a92016-01-30 16:37:54 -0700633 depends on OF_CONTROL
Simon Glassd2f90652016-01-30 16:37:51 -0700634 help
635 Tegra20 supports video output to an attached LCD panel as well as
636 other options such as HDMI. Only the LCD is supported in U-Boot.
637 This option enables this support which can be used on devices which
638 have an LCD display connected.
639
Simon Glasse7e88232015-04-14 21:03:42 -0600640config VIDEO_TEGRA124
641 bool "Enable video support on Tegra124"
Simon Glassd7659212016-01-30 16:37:50 -0700642 depends on DM_VIDEO
Simon Glasse7e88232015-04-14 21:03:42 -0600643 help
644 Tegra124 supports many video output options including eDP and
645 HDMI. At present only eDP is supported by U-Boot. This option
646 enables this support which can be used on devices which
647 have an eDP display connected.
Simon Glass801ab9e2015-07-02 18:16:08 -0600648
649source "drivers/video/bridge/Kconfig"
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900650
Anatolij Gustschinbffd1312019-03-18 23:29:32 +0100651source "drivers/video/imx/Kconfig"
Anatolij Gustschin57f065f2019-03-18 23:29:31 +0100652
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200653config VIDEO_NX
654 bool "Enable video support on Nexell SoC"
655 depends on ARCH_S5P6818 || ARCH_S5P4418
656 help
657 Nexell SoC supports many video output options including eDP and
658 HDMI. This option enables this support which can be used on devices
659 which have an eDP display connected.
660
Michal Simekb66d7af2020-12-03 09:31:35 +0100661config VIDEO_SEPS525
662 bool "Enable video support for Seps525"
663 depends on DM_VIDEO
664 help
665 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
666 Currently driver is supporting only SPI interface.
667
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200668source "drivers/video/nexell/Kconfig"
669
Simon Glass27604b12016-10-17 20:12:40 -0600670config VIDEO
671 bool "Enable legacy video support"
672 depends on !DM_VIDEO
673 help
674 Define this for video support, without using driver model. Some
675 drivers use this because they are not yet converted to driver
676 model. Video drivers typically provide a colour text console and
677 cursor.
678
Simon Glassbdba2b32016-10-17 20:12:41 -0600679config CFB_CONSOLE
680 bool "Enable colour frame buffer console"
Anatolij Gustschin9dec5a02020-10-26 19:50:58 +0100681 depends on VIDEO || ARCH_OMAP2PLUS
Simon Glassbdba2b32016-10-17 20:12:41 -0600682 default y if VIDEO
683 help
684 Enables the colour frame buffer driver. This supports colour
685 output on a bitmap display from an in-memory frame buffer.
686 Several colour devices are supported along with various options to
687 adjust the supported features. The driver is implemented in
688 cfb_console.c
689
690 The following defines are needed (cf. smiLynxEM, i8042)
691 VIDEO_FB_LITTLE_ENDIAN graphic memory organisation
692 (default big endian)
693 VIDEO_HW_RECTFILL graphic chip supports
694 rectangle fill (cf. smiLynxEM)
695 VIDEO_HW_BITBLT graphic chip supports
696 bit-blit (cf. smiLynxEM)
697 VIDEO_VISIBLE_COLS visible pixel columns (cols=pitch)
698 VIDEO_VISIBLE_ROWS visible pixel rows
699 VIDEO_PIXEL_SIZE bytes per pixel
700 VIDEO_DATA_FORMAT graphic data format
701 (0-5, cf. cfb_console.c)
702 VIDEO_FB_ADRS framebuffer address
703 VIDEO_KBD_INIT_FCT keyboard int fct (i.e. rx51_kp_init())
704 VIDEO_TSTC_FCT test char fct (i.e. rx51_kp_tstc)
705 VIDEO_GETC_FCT get char fct (i.e. rx51_kp_getc)
706 CONFIG_VIDEO_LOGO display Linux logo in upper left corner
707 CONFIG_VIDEO_BMP_LOGO use bmp_logo.h instead of linux_logo.h
708 for logo. Requires CONFIG_VIDEO_LOGO
709 CONFIG_CONSOLE_EXTRA_INFO
710 additional board info beside
711 the logo
712 CONFIG_HIDE_LOGO_VERSION
713 do not display bootloader
714 version string
715
716 When CONFIG_CFB_CONSOLE is defined, the video console is the
717 default console. The serial console can be forced by setting the
718 environment 'console=serial'.
719
Simon Glassc6745192016-10-17 20:12:42 -0600720config CFB_CONSOLE_ANSI
721 bool "Support ANSI escape sequences"
722 depends on CFB_CONSOLE
723 help
724 This allows the colour buffer frame buffer driver to support
725 a limited number of ANSI escape sequences (cursor control,
726 erase functions and limited graphics rendition control). Normal
727 output from U-Boot will pass through this filter.
728
Simon Glass1e1a0fb2016-10-17 20:12:49 -0600729config VGA_AS_SINGLE_DEVICE
730 bool "Set the video as an output-only device"
731 depends on CFB_CONSOLE
732 default y
733 help
734 If enable the framebuffer device will be initialized as an
735 output-only device. The Keyboard driver will not be set up. This
736 may be used if you have no keyboard device, or more than one
737 (USB Keyboard, AT Keyboard).
738
Simon Glass0872d442016-10-17 20:12:51 -0600739config VIDEO_SW_CURSOR
740 bool "Enable a software cursor"
741 depends on CFB_CONSOLE
742 default y if CFB_CONSOLE
743 help
744 This draws a cursor after the last character. No blinking is
745 provided. This makes it possible to see the current cursor
746 position when entering text on the console. It is recommended to
747 enable this.
748
Simon Glassfbda6832016-10-17 20:12:53 -0600749config CONSOLE_EXTRA_INFO
750 bool "Display additional board information"
751 depends on CFB_CONSOLE
752 help
753 Display additional board information strings that normally go to
754 the serial port. When this option is enabled, a board-specific
755 function video_get_info_str() is called to get the string for
756 each line of the display. The function should return the string,
757 which can be empty if there is nothing to display for that line.
758
Simon Glassb87ca802016-10-17 20:12:57 -0600759config CONSOLE_SCROLL_LINES
760 int "Number of lines to scroll the console by"
761 depends on CFB_CONSOLE || DM_VIDEO || LCD
762 default 1
763 help
764 When the console need to be scrolled, this is the number of
765 lines to scroll by. It defaults to 1. Increasing this makes the
766 console jump but can help speed up operation when scrolling
767 is slow.
768
Simon Glass002f9672016-10-17 20:12:44 -0600769config SYS_CONSOLE_BG_COL
770 hex "Background colour"
Bin Mengc674e002017-08-03 21:56:50 -0700771 depends on CFB_CONSOLE
Simon Glass002f9672016-10-17 20:12:44 -0600772 default 0x00
773 help
774 Defines the background colour for the console. The value is from
775 0x00 to 0xff and the meaning depends on the graphics card.
776 Typically, 0x00 means black and 0xff means white. Do not set
777 the background and foreground to the same colour or you will see
778 nothing.
779
780config SYS_CONSOLE_FG_COL
781 hex "Foreground colour"
Bin Mengc674e002017-08-03 21:56:50 -0700782 depends on CFB_CONSOLE
Simon Glass002f9672016-10-17 20:12:44 -0600783 default 0xa0
784 help
785 Defines the foreground colour for the console. The value is from
786 0x00 to 0xff and the meaning depends on the graphics card.
787 Typically, 0x00 means black and 0xff means white. Do not set
788 the background and foreground to the same colour or you will see
789 nothing.
790
Simon Glassf8b19a82016-10-17 20:12:56 -0600791config LCD
792 bool "Enable legacy LCD support"
793 help
794 Define this to enable LCD support (for output to LCD display).
795 You will also need to select an LCD driver using an additional
796 CONFIG option. See the README for details. Drives which have been
797 converted to driver model will instead used CONFIG_DM_VIDEO.
798
Philipp Tomsich8517f642017-05-05 21:48:26 +0200799config VIDEO_DW_HDMI
800 bool
801 help
802 Enables the common driver code for the Designware HDMI TX
803 block found in SoCs from various vendors.
804 As this does not provide any functionality by itself (but
805 rather requires a SoC-specific glue driver to call it), it
806 can not be enabled from the configuration menu.
807
Yannick Fertré23f965a2019-10-07 15:29:05 +0200808config VIDEO_DSI_HOST_SANDBOX
809 bool "Enable sandbox for dsi host"
810 depends on SANDBOX
811 select VIDEO_MIPI_DSI
812 help
813 Enable support for sandbox dsi host device used for testing
814 purposes.
815 Display Serial Interface (DSI) defines a serial bus and
816 a communication protocol between the host and the device
817 (panel, bridge).
818
Yannick Fertréd4f7ea82019-10-07 15:29:06 +0200819config VIDEO_DW_MIPI_DSI
820 bool
821 select VIDEO_MIPI_DSI
822 help
823 Enables the common driver code for the Synopsis Designware
824 MIPI DSI block found in SoCs from various vendors.
825 As this does not provide any functionality by itself (but
826 rather requires a SoC-specific glue driver to call it), it
827 can not be enabled from the configuration menu.
828
Rob Clark971d7e62017-08-03 12:47:00 -0400829config VIDEO_SIMPLE
830 bool "Simple display driver for preconfigured display"
831 help
832 Enables a simple generic display driver which utilizes the
833 simple-framebuffer devicetree bindings.
834
835 This driver assumes that the display hardware has been initialized
836 before u-boot starts, and u-boot will simply render to the pre-
837 allocated frame buffer surface.
838
Icenowy Zhengf6bdddc2017-10-26 11:14:46 +0800839config VIDEO_DT_SIMPLEFB
840 bool "Enable SimpleFB support for passing framebuffer to OS"
841 help
842 Enables the code to pass the framebuffer to the kernel as a
843 simple framebuffer in the device tree.
844 The video output is initialized by U-Boot, and kept by the
845 kernel.
846
Mario Six39a336f2018-09-27 09:19:29 +0200847config OSD
848 bool "Enable OSD support"
849 depends on DM
850 default n
851 help
852 This supports drivers that provide a OSD (on-screen display), which
853 is a (usually text-oriented) graphics buffer to show information on
854 a display.
Mario Six9671f692018-09-27 09:19:30 +0200855
Mario Six4eea5312018-09-27 09:19:31 +0200856config SANDBOX_OSD
857 bool "Enable sandbox OSD"
858 depends on OSD
859 help
860 Enable support for sandbox OSD device used for testing purposes.
861
Mario Six9671f692018-09-27 09:19:30 +0200862config IHS_VIDEO_OUT
863 bool "Enable IHS video out driver"
864 depends on OSD
865 help
866 Enable support for the gdsys Integrated Hardware Systems (IHS) video
867 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
868 textual overlays of the display outputs.
869
Simon Glass35bd70c2020-08-11 11:23:35 -0600870config SPLASH_SCREEN
871 bool "Show a splash-screen image"
872 help
873 If this option is set, the environment is checked for a variable
874 "splashimage". If found, the usual display of logo, copyright and
875 system information on the LCD is suppressed and the BMP image at the
876 address specified in "splashimage" is loaded instead. The console is
877 redirected to the "nulldev", too. This allows for a "silent" boot
878 where a splash screen is loaded very quickly after power-on.
879
880 The splash_screen_prepare() function is a weak function defined in
881 common/splash.c. It is called as part of the splash screen display
882 sequence. It gives the board an opportunity to prepare the splash
883 image data before it is processed and sent to the frame buffer by
884 U-Boot. Define your own version to use this feature.
885
886config SPLASHIMAGE_GUARD
887 bool "Support unaligned BMP images"
888 depends on SPLASH_SCREEN
889 help
890 If this option is set, then U-Boot will prevent the environment
891 variable "splashimage" from being set to a problematic address
892 (see doc/README.displaying-bmps).
893
894 This option is useful for targets where, due to alignment
895 restrictions, an improperly aligned BMP image will cause a data
896 abort. If you think you will not have problems with unaligned
897 accesses (for example because your toolchain prevents them)
898 there is no need to set this option.
899
900config SPLASH_SCREEN_ALIGN
901 bool "Allow positioning the splash image anywhere on the display"
902 depends on SPLASH_SCREEN || CMD_BMP
903 help
904 If this option is set the splash image can be freely positioned
905 on the screen. Environment variable "splashpos" specifies the
906 position as "x,y". If a positive number is given it is used as
907 number of pixel from left/top. If a negative number is given it
908 is used as number of pixel from right/bottom. You can also
909 specify 'm' for centering the image.
910
911 Example:
912 setenv splashpos m,m
913 => image at center of screen
914
915 setenv splashpos 30,20
916 => image at x = 30 and y = 20
917
918 setenv splashpos -10,m
919 => vertically centered image
920 at x = dspWidth - bmpWidth - 9
921
922config SPLASH_SOURCE
923 bool "Control the source of the splash image"
924 depends on SPLASH_SCREEN
925 help
926 Use the splash_source.c library. This library provides facilities to
927 declare board specific splash image locations, routines for loading
928 splash image from supported locations, and a way of controlling the
929 selected splash location using the "splashsource" environment
930 variable.
931
932 This CONFIG works as follows:
933
934 - If splashsource is set to a supported location name as defined by
935 board code, use that splash location.
936 - If splashsource is undefined, use the first splash location as
937 default.
938 - If splashsource is set to an unsupported value, do not load a splash
939 screen.
940
941 A splash source location can describe either storage with raw data, a
942 storage formatted with a file system or a FIT image. In case of a
943 filesystem, the splash screen data is loaded as a file. The name of
944 the splash screen file can be controlled with the environment variable
945 "splashfile".
946
947 To enable loading the splash image from a FIT image, CONFIG_FIT must
948 be enabled. The FIT image has to start at the 'offset' field address
949 in the selected splash location. The name of splash image within the
950 FIT shall be specified by the environment variable "splashfile".
951
952 In case the environment variable "splashfile" is not defined the
953 default name 'splash.bmp' will be used.
954
Patrick Delaunay0ed6c0f2020-09-28 11:30:14 +0200955config VIDEO_BMP_GZIP
956 bool "Gzip compressed BMP image support"
957 depends on CMD_BMP || SPLASH_SCREEN
958 help
959 If this option is set, additionally to standard BMP
960 images, gzipped BMP images can be displayed via the
961 splashscreen support or the bmp command.
962
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200963config VIDEO_BMP_RLE8
964 bool "Run length encoded BMP image (RLE8) support"
965 depends on DM_VIDEO || CFB_CONSOLE
966 help
967 If this option is set, the 8-bit RLE compressed BMP images
968 is supported.
969
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200970config BMP_16BPP
971 bool "16-bit-per-pixel BMP image support"
972 depends on DM_VIDEO || LCD
973 help
974 Support display of bitmaps file with 16-bit-per-pixel
975
976config BMP_24BPP
977 bool "24-bit-per-pixel BMP image support"
978 depends on DM_VIDEO || LCD
979 help
980 Support display of bitmaps file with 24-bit-per-pixel.
981
982config BMP_32BPP
983 bool "32-bit-per-pixel BMP image support"
984 depends on DM_VIDEO || LCD
985 help
986 Support display of bitmaps file with 32-bit-per-pixel.
987
Anatolij Gustschin8c9940d2020-10-18 20:32:35 +0200988config VIDEO_VCXK
989 bool "Enable VCXK video controller driver support"
990 default n
991 help
992 This enables VCXK driver which can be used with VC2K, VC4K
993 and VC8K devices on various boards from BuS Elektronik GmbH.
994
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900995endmenu