blob: 440b161b84237852d8c3f78ef5681e005a340642 [file] [log] [blame]
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glass52cb5042022-10-18 07:46:31 -06007config VIDEO
Simon Glass623d28f2016-01-18 19:52:15 -07008 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
Simon Glass52cb5042022-10-18 07:46:31 -060017if VIDEO
Simon Glass557786c2022-10-18 07:35:17 -060018
Simon Glass8e5a8b62021-11-19 13:24:01 -070019config VIDEO_LOGO
20 bool "Show the U-Boot logo on the display"
Simon Glass7a6528592021-11-19 13:24:04 -070021 default y if !SPLASH_SCREEN
Simon Glass87a3cd72021-11-19 13:24:03 -070022 select VIDEO_BMP_RLE8
Simon Glass8e5a8b62021-11-19 13:24:01 -070023 help
24 This enables showing the U-Boot logo on the display when a video
25 device is probed. It appears at the top right. The logo itself is at
26 tools/logos/u-boot_logo.bmp and looks best when the display has a
27 black background.
28
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020029config BACKLIGHT
30 bool "Enable panel backlight uclass support"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020031 default y
32 help
33 This provides backlight uclass driver that enables basic panel
34 backlight support.
35
Simon Glassc3d2f352020-07-02 21:12:33 -060036config VIDEO_PCI_DEFAULT_FB_SIZE
37 hex "Default framebuffer size to use if no drivers request it"
Simon Glassc3d2f352020-07-02 21:12:33 -060038 default 0x1000000 if X86 && PCI
39 default 0 if !(X86 && PCI)
40 help
41 Generally, video drivers request the amount of memory they need for
42 the frame buffer when they are bound, by setting the size field in
Dario Binacchi2ec85772021-01-23 19:43:52 +010043 struct video_uc_plat. That memory is then reserved for use after
Simon Glassc3d2f352020-07-02 21:12:33 -060044 relocation. But PCI drivers cannot be bound before relocation unless
45 they are mentioned in the devicetree.
46
47 With this value set appropriately, it is possible for PCI video
48 devices to have a framebuffer allocated by U-Boot.
49
50 Note: the framebuffer needs to be large enough to store all pixels at
51 maximum resolution. For example, at 1920 x 1200 with 32 bits per
52 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
53
Simon Glass73c9c372020-07-02 21:12:20 -060054config VIDEO_COPY
55 bool "Enable copying the frame buffer to a hardware copy"
Simon Glass73c9c372020-07-02 21:12:20 -060056 help
57 On some machines (e.g. x86), reading from the frame buffer is very
58 slow because it is uncached. To improve performance, this feature
59 allows the frame buffer to be kept in cached memory (allocated by
60 U-Boot) and then copied to the hardware frame-buffer as needed.
61
62 To use this, your video driver must set @copy_base in
Dario Binacchi2ec85772021-01-23 19:43:52 +010063 struct video_uc_plat.
Simon Glass73c9c372020-07-02 21:12:20 -060064
Patrick Delaunay4300f072017-08-03 12:36:06 +020065config BACKLIGHT_PWM
66 bool "Generic PWM based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020067 depends on BACKLIGHT && DM_PWM
Patrick Delaunay4300f072017-08-03 12:36:06 +020068 default y
69 help
70 If you have a LCD backlight adjustable by PWM, say Y to enable
71 this driver.
72 This driver can be use with "simple-panel" and
73 it understands the standard device tree
74 (leds/backlight/pwm-backlight.txt)
75
Patrick Delaunaya3c046f2017-08-03 12:36:07 +020076config BACKLIGHT_GPIO
77 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020078 depends on BACKLIGHT
Patrick Delaunaya3c046f2017-08-03 12:36:07 +020079 help
80 If you have a LCD backlight adjustable by GPIO, say Y to enable
81 this driver.
82 This driver can be used with "simple-panel" and
83 it understands the standard device tree
84 (leds/backlight/gpio-backlight.txt)
85
Simon Glass623d28f2016-01-18 19:52:15 -070086config VIDEO_BPP8
87 bool "Support 8-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +010088 default y
Simon Glass623d28f2016-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"
Anatolij Gustschindba36702020-02-04 22:43:06 +010097 default y
Simon Glass623d28f2016-01-18 19:52:15 -070098 help
99 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
100 Enabling this will include code to support this display. Without
101 this option, such displays will not be supported and console output
102 will be empty.
103
104config VIDEO_BPP32
105 bool "Support 32-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100106 default y
Simon Glass623d28f2016-01-18 19:52:15 -0700107 help
108 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
109 Enabling this will include code to support this display. Without
110 this option, such displays will not be supported and console output
111 will be empty.
112
Rob Clark06e7a0d2017-09-13 18:12:21 -0400113config VIDEO_ANSI
114 bool "Support ANSI escape sequences in video console"
Simon Glass80a8e802023-01-06 08:52:29 -0600115 default y if EFI_LOADER
Rob Clark06e7a0d2017-09-13 18:12:21 -0400116 help
117 Enable ANSI escape sequence decoding for a more fully functional
Simon Glass80a8e802023-01-06 08:52:29 -0600118 console. Functionality includes changing the text colour and moving
119 the cursor. These date from the 1970s and are still widely used today
120 to control a text terminal. U-Boot implements these by decoding the
121 sequences and performing the appropriate operation.
Rob Clark06e7a0d2017-09-13 18:12:21 -0400122
Yannick Fertréd08fb322019-10-07 15:29:04 +0200123config VIDEO_MIPI_DSI
124 bool "Support MIPI DSI interface"
Yannick Fertréd08fb322019-10-07 15:29:04 +0200125 help
126 Support MIPI DSI interface for driving a MIPI compatible device.
127 The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
128 serial interface between a host processor and a display module.
129
Simon Glass6e0721d2016-01-22 21:53:37 +0100130config CONSOLE_NORMAL
131 bool "Support a simple text console"
Simon Glass557786c2022-10-18 07:35:17 -0600132 default y
Simon Glass6e0721d2016-01-22 21:53:37 +0100133 help
134 Support drawing text on the frame buffer console so that it can be
135 used as a console. Rotation is not supported by this driver (see
136 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
137 for the display.
138
139config CONSOLE_ROTATION
Simon Glass87aae882016-01-18 19:52:19 -0700140 bool "Support rotated displays"
Simon Glass87aae882016-01-18 19:52:19 -0700141 help
142 Sometimes, for example if the display is mounted in portrait
143 mode or even if it's mounted landscape but rotated by 180degree,
144 we need to rotate our content of the display relative to the
145 framebuffer, so that user can read the messages which are
146 printed out. Enable this option to include a text driver which can
147 support this. The rotation is set by the 'rot' parameter in
148 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
149 degrees, 3=270 degrees.
150
Simon Glass2ef353e2016-01-14 18:10:42 -0700151config CONSOLE_TRUETYPE
152 bool "Support a console that uses TrueType fonts"
Simon Glass2ef353e2016-01-14 18:10:42 -0700153 help
154 TrueTrype fonts can provide outline-drawing capability rather than
155 needing to provide a bitmap for each font and size that is needed.
156 With this option you can adjust the text size and use a variety of
157 fonts. Note that this is noticeably slower than with normal console.
158
159config CONSOLE_TRUETYPE_SIZE
160 int "TrueType font size"
161 depends on CONSOLE_TRUETYPE
162 default 18
163 help
164 This sets the font size for the console. The size is measured in
165 pixels and is the nominal height of a character. Note that fonts
166 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
167 However that measurement depends on the size of your display and
168 there is no standard display density. At present there is not a
169 method to select the display's physical size, which would allow
170 U-Boot to calculate the correct font size.
171
Simon Glass79597762022-10-06 08:36:11 -0600172config CONSOLE_TRUETYPE_MAX_METRICS
173 int "TrueType maximum number of font / size combinations"
174 depends on CONSOLE_TRUETYPE
175 default 10 if EXPO
176 default 1
177 help
178 This sets the number of font / size combinations which can be used by
179 the console. For simple console use a single font is enough. When
180 boot menus are in use, this may need to be increased.
181
182 Note that a separate entry is needed for each font size, even if the
183 font itself is the same. This is because the entry caches various
184 font metrics which are expensive to regenerate each time the font
185 size changes.
186
Simon Glassd65a1422017-04-26 22:27:57 -0600187config SYS_WHITE_ON_BLACK
188 bool "Display console as white on a black background"
Trevor Woerner513f6402020-05-06 08:02:41 -0400189 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glassd65a1422017-04-26 22:27:57 -0600190 help
191 Normally the display is black on a white background, Enable this
192 option to invert this, i.e. white on a black background. This can be
193 better in low-light situations or to reduce eye strain in some
194 cases.
195
Rob Clarkf1411882017-08-03 12:47:01 -0400196config NO_FB_CLEAR
197 bool "Skip framebuffer clear"
198 help
199 If firmware (whatever loads u-boot) has already put a splash image
200 on screen, you might want to preserve it until whatever u-boot
201 loads takes over the screen. This, for example, can be used to
202 keep splash image on screen until grub graphical boot menu starts.
203
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200204config PANEL
205 bool "Enable panel uclass support"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200206 default y
207 help
208 This provides panel uclass driver that enables basic panel support.
209
210config SIMPLE_PANEL
211 bool "Enable simple panel support"
Asherah Connor81b0f612021-03-03 14:46:47 +1100212 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200213 default y
214 help
215 This turns on a simple panel driver that enables a compatible
216 video panel.
217
Simon Glassf8360fe2022-10-06 08:36:07 -0600218config PANEL_HX8238D
219 bool "Enable Himax HX-8238D LCD driver"
220 depends on PANEL
221 help
222 Support for HX-8238D LCD Panel
223 The HX8238-D is a single chip controller and driver LSI that
224 integrates the power circuit.
225 It can drive a maximum 960x240 dot graphics on a-TFT panel
226 displays in 16M colors with dithering.
227
Simon Glass2ef353e2016-01-14 18:10:42 -0700228source "drivers/video/fonts/Kconfig"
229
Simon Glass86f07462016-02-06 14:31:37 -0700230config VIDCONSOLE_AS_LCD
Patrick Delaunay60b92242020-07-01 14:56:10 +0200231 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay60b92242020-07-01 14:56:10 +0200232 help
233 This is a work-around for boards which have 'lcd' or 'vga' in their
234 stdout environment variable, but have moved to use driver model for
235 video. In this case the console will no-longer work. While it is
236 possible to update the environment, the breakage may be confusing for
237 users. This option will be removed around the end of 2020.
238
239config VIDCONSOLE_AS_NAME
240 string "Use 'vidconsole' when string defined here is seen in stdout"
241 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin47020642020-05-23 17:11:20 +0200242 default "lcd" if LCD || TEGRA_COMMON
243 default "vga" if !LCD
Simon Glass86f07462016-02-06 14:31:37 -0700244 help
Anatolij Gustschin47020642020-05-23 17:11:20 +0200245 This is a work-around for boards which have 'lcd' or 'vga' in their
246 stdout environment variable, but have moved to use driver model for
247 video. In this case the console will no-longer work. While it is
248 possible to update the environment, the breakage may be confusing for
249 users. This option will be removed around the end of 2020.
Simon Glass86f07462016-02-06 14:31:37 -0700250
Bin Menga0676be2016-10-09 04:14:16 -0700251config VIDEO_COREBOOT
252 bool "Enable coreboot framebuffer driver support"
Simon Glassd2398ab2021-03-15 18:00:27 +1300253 depends on X86
Bin Menga0676be2016-10-09 04:14:16 -0700254 help
255 Turn on this option to enable a framebuffer driver when U-Boot is
256 loaded by coreboot where the graphics device is configured by
257 coreboot already. This can in principle be used with any platform
258 that coreboot supports.
259
Bin Meng0f862b92018-06-12 08:36:22 -0700260config VIDEO_EFI
261 bool "Enable EFI framebuffer driver support"
Simon Glass04c26ff2021-11-03 21:09:10 -0600262 depends on EFI_STUB || EFI_APP
Bin Meng0f862b92018-06-12 08:36:22 -0700263 help
264 Turn on this option to enable a framebuffeer driver when U-Boot is
265 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
266 the graphics device is configured by the EFI BIOS already. This can
267 in principle be used with any platform that has an EFI BIOS.
268
Simon Glass42bf3ee2014-12-29 19:32:28 -0700269config VIDEO_VESA
270 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-12-29 19:32:28 -0700271 help
272 Turn on this option to enable a very simple driver which uses vesa
273 to discover the video mode and then provides a frame buffer for use
274 by U-Boot. This can in principle be used with any platform that
275 supports PCI and video cards that support VESA BIOS Extension (VBE).
276
Bin Meng072b79d2015-05-11 07:36:29 +0800277config FRAMEBUFFER_SET_VESA_MODE
278 bool "Set framebuffer graphics resolution"
Simon Glassdec49b72016-03-11 22:07:30 -0700279 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng072b79d2015-05-11 07:36:29 +0800280 help
281 Set VESA/native framebuffer mode (needed for bootsplash and graphical
282 framebuffer console)
283
284choice
285 prompt "framebuffer graphics resolution"
Bin Meng4da8a3f2018-04-11 22:02:16 -0700286 default FRAMEBUFFER_VESA_MODE_118
Bin Meng072b79d2015-05-11 07:36:29 +0800287 depends on FRAMEBUFFER_SET_VESA_MODE
288 help
289 This option sets the resolution used for the U-Boot framebuffer (and
290 bootsplash screen).
291
292config FRAMEBUFFER_VESA_MODE_100
293 bool "640x400 256-color"
294
295config FRAMEBUFFER_VESA_MODE_101
296 bool "640x480 256-color"
297
298config FRAMEBUFFER_VESA_MODE_102
299 bool "800x600 16-color"
300
301config FRAMEBUFFER_VESA_MODE_103
302 bool "800x600 256-color"
303
304config FRAMEBUFFER_VESA_MODE_104
305 bool "1024x768 16-color"
306
307config FRAMEBUFFER_VESA_MODE_105
Bin Meng932adc62015-08-09 23:26:59 -0700308 bool "1024x768 256-color"
Bin Meng072b79d2015-05-11 07:36:29 +0800309
310config FRAMEBUFFER_VESA_MODE_106
311 bool "1280x1024 16-color"
312
313config FRAMEBUFFER_VESA_MODE_107
314 bool "1280x1024 256-color"
315
316config FRAMEBUFFER_VESA_MODE_108
317 bool "80x60 text"
318
319config FRAMEBUFFER_VESA_MODE_109
320 bool "132x25 text"
321
322config FRAMEBUFFER_VESA_MODE_10A
323 bool "132x43 text"
324
325config FRAMEBUFFER_VESA_MODE_10B
326 bool "132x50 text"
327
328config FRAMEBUFFER_VESA_MODE_10C
329 bool "132x60 text"
330
331config FRAMEBUFFER_VESA_MODE_10D
332 bool "320x200 32k-color (1:5:5:5)"
333
334config FRAMEBUFFER_VESA_MODE_10E
335 bool "320x200 64k-color (5:6:5)"
336
337config FRAMEBUFFER_VESA_MODE_10F
338 bool "320x200 16.8M-color (8:8:8)"
339
340config FRAMEBUFFER_VESA_MODE_110
341 bool "640x480 32k-color (1:5:5:5)"
342
343config FRAMEBUFFER_VESA_MODE_111
344 bool "640x480 64k-color (5:6:5)"
345
346config FRAMEBUFFER_VESA_MODE_112
347 bool "640x480 16.8M-color (8:8:8)"
348
349config FRAMEBUFFER_VESA_MODE_113
350 bool "800x600 32k-color (1:5:5:5)"
351
352config FRAMEBUFFER_VESA_MODE_114
353 bool "800x600 64k-color (5:6:5)"
354
355config FRAMEBUFFER_VESA_MODE_115
356 bool "800x600 16.8M-color (8:8:8)"
357
358config FRAMEBUFFER_VESA_MODE_116
359 bool "1024x768 32k-color (1:5:5:5)"
360
361config FRAMEBUFFER_VESA_MODE_117
362 bool "1024x768 64k-color (5:6:5)"
363
364config FRAMEBUFFER_VESA_MODE_118
365 bool "1024x768 16.8M-color (8:8:8)"
366
367config FRAMEBUFFER_VESA_MODE_119
368 bool "1280x1024 32k-color (1:5:5:5)"
369
370config FRAMEBUFFER_VESA_MODE_11A
371 bool "1280x1024 64k-color (5:6:5)"
372
373config FRAMEBUFFER_VESA_MODE_11B
374 bool "1280x1024 16.8M-color (8:8:8)"
375
376config FRAMEBUFFER_VESA_MODE_USER
377 bool "Manually select VESA mode"
378
379endchoice
380
381# Map the config names to an integer (KB).
382config FRAMEBUFFER_VESA_MODE
383 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
384 hex
385 default 0x100 if FRAMEBUFFER_VESA_MODE_100
386 default 0x101 if FRAMEBUFFER_VESA_MODE_101
387 default 0x102 if FRAMEBUFFER_VESA_MODE_102
388 default 0x103 if FRAMEBUFFER_VESA_MODE_103
389 default 0x104 if FRAMEBUFFER_VESA_MODE_104
390 default 0x105 if FRAMEBUFFER_VESA_MODE_105
391 default 0x106 if FRAMEBUFFER_VESA_MODE_106
392 default 0x107 if FRAMEBUFFER_VESA_MODE_107
393 default 0x108 if FRAMEBUFFER_VESA_MODE_108
394 default 0x109 if FRAMEBUFFER_VESA_MODE_109
395 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
396 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
397 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
398 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
399 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
400 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
401 default 0x110 if FRAMEBUFFER_VESA_MODE_110
402 default 0x111 if FRAMEBUFFER_VESA_MODE_111
403 default 0x112 if FRAMEBUFFER_VESA_MODE_112
404 default 0x113 if FRAMEBUFFER_VESA_MODE_113
405 default 0x114 if FRAMEBUFFER_VESA_MODE_114
406 default 0x115 if FRAMEBUFFER_VESA_MODE_115
407 default 0x116 if FRAMEBUFFER_VESA_MODE_116
408 default 0x117 if FRAMEBUFFER_VESA_MODE_117
409 default 0x118 if FRAMEBUFFER_VESA_MODE_118
410 default 0x119 if FRAMEBUFFER_VESA_MODE_119
411 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
412 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
413 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
414
Hans de Goededfc1efe2015-08-08 16:03:29 +0200415config VIDEO_LCD_ANX9804
416 bool "ANX9804 bridge chip"
Hans de Goededfc1efe2015-08-08 16:03:29 +0200417 ---help---
418 Support for the ANX9804 bridge chip, which can take pixel data coming
419 from a parallel LCD interface and translate it on the fy into a DP
420 interface for driving eDP TFT displays. It uses I2C for configuration.
421
Tom Rini4c047422022-03-18 08:38:28 -0400422config ATMEL_LCD
423 bool "Atmel LCD panel support"
Simon Glass557786c2022-10-18 07:35:17 -0600424 depends on ARCH_AT91
Tom Rini4c047422022-03-18 08:38:28 -0400425
426config ATMEL_LCD_BGR555
427 bool "Display in BGR555 mode"
428 help
429 Use the BGR555 output mode. Otherwise RGB565 is used.
430
Simon Glass7b3fabb2022-01-23 07:04:14 -0700431config VIDEO_BCM2835
432 bool "Display support for BCM2835"
433 help
434 The graphics processor already sets up the display so this driver
435 simply checks the resolution and then sets up the frame buffer with
436 that same resolution (or as near as possible) and 32bpp depth, so
437 that U-Boot can access it with full colour depth.
438
Yannick Fertré5b855d42019-10-07 15:29:08 +0200439config VIDEO_LCD_ORISETECH_OTM8009A
440 bool "OTM8009A DSI LCD panel support"
Yannick Fertré5b855d42019-10-07 15:29:08 +0200441 select VIDEO_MIPI_DSI
Yannick Fertré5b855d42019-10-07 15:29:08 +0200442 help
443 Say Y here if you want to enable support for Orise Technology
444 otm8009a 480x800 dsi 2dl panel.
445
Yannick Fertréb038fed2019-10-07 15:29:09 +0200446config VIDEO_LCD_RAYDIUM_RM68200
447 bool "RM68200 DSI LCD panel support"
Yannick Fertréb038fed2019-10-07 15:29:09 +0200448 select VIDEO_MIPI_DSI
Yannick Fertréb038fed2019-10-07 15:29:09 +0200449 help
450 Say Y here if you want to enable support for Raydium RM68200
451 720x1280 DSI video mode panel.
452
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200453config VIDEO_LCD_SSD2828
454 bool "SSD2828 bridge chip"
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200455 ---help---
456 Support for the SSD2828 bridge chip, which can take pixel data coming
457 from a parallel LCD interface and translate it on the fly into MIPI DSI
458 interface for driving a MIPI compatible LCD panel. It uses SPI for
459 configuration.
460
461config VIDEO_LCD_SSD2828_TX_CLK
462 int "SSD2828 TX_CLK frequency (in MHz)"
463 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200464 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200465 ---help---
466 The frequency of the crystal, which is clocking SSD2828. It may be
467 anything in the 8MHz-30MHz range and the exact value should be
468 retrieved from the board schematics. Or in the case of Allwinner
469 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200470 FEX files. It can be also set to 0 for selecting PCLK from the
471 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200472
473config VIDEO_LCD_SSD2828_RESET
474 string "RESET pin of SSD2828"
475 depends on VIDEO_LCD_SSD2828
476 default ""
477 ---help---
478 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500479 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200480
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200481config VIDEO_LCD_TDO_TL070WSH30
482 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200483 select VIDEO_MIPI_DSI
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200484 help
485 Say Y here if you want to enable support for TDO TL070WSH30
486 1024x600 DSI video mode panel.
487
Hans de Goedec0482032015-01-20 09:22:26 +0100488config VIDEO_LCD_HITACHI_TX18D42VM
489 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedec0482032015-01-20 09:22:26 +0100490 ---help---
491 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
492 lcd controller which needs to be initialized over SPI, once that is
493 done they work like a regular LVDS panel.
494
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200495config VIDEO_LCD_SPI_CS
496 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100497 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200498 default ""
499 ---help---
500 This is one of the SPI communication pins, involved in setting up a
501 working LCD configuration. The exact role of SPI may differ for
502 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500503 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200504
505config VIDEO_LCD_SPI_SCLK
506 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100507 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200508 default ""
509 ---help---
510 This is one of the SPI communication pins, involved in setting up a
511 working LCD configuration. The exact role of SPI may differ for
512 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500513 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200514
515config VIDEO_LCD_SPI_MOSI
516 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100517 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200518 default ""
519 ---help---
520 This is one of the SPI communication pins, involved in setting up a
521 working LCD configuration. The exact role of SPI may differ for
522 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500523 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200524
525config VIDEO_LCD_SPI_MISO
526 string "SPI MISO pin for LCD related config job (optional)"
527 depends on VIDEO_LCD_SSD2828
528 default ""
529 ---help---
530 This is one of the SPI communication pins, involved in setting up a
531 working LCD configuration. The exact role of SPI may differ for
532 different hardware setups. If wired up, this pin may provide additional
533 useful functionality. Such as bi-directional communication with the
534 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500535 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200536 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600537
Neil Armstrongadd986c2018-07-24 17:45:28 +0200538source "drivers/video/meson/Kconfig"
539
Stefan Roeseab91fd52016-01-20 08:13:28 +0100540config VIDEO_MVEBU
541 bool "Armada XP LCD controller"
Stefan Roeseab91fd52016-01-20 08:13:28 +0100542 ---help---
543 Support for the LCD controller integrated in the Marvell
544 Armada XP SoC.
545
Adam Ford60a59d42018-08-02 08:50:20 -0500546config VIDEO_OMAP3
547 bool "Enable OMAP3+ DSS Support"
548 depends on ARCH_OMAP2PLUS
549 help
550 This enables the Display subsystem (DSS) on OMAP3+ boards.
551
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100552config I2C_EDID
553 bool "Enable EDID library"
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100554 help
555 This enables library for accessing EDID data from an LCD panel.
556
Simon Glass7d3d7762016-01-21 19:45:00 -0700557config DISPLAY
558 bool "Enable Display support"
559 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100560 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600561 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700562 This supports drivers that provide a display, such as eDP (Embedded
563 DisplayPort) and HDMI (High Definition Multimedia Interface).
564 The devices provide a simple interface to start up the display,
565 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600566
Liviu Dudau33967102018-09-28 13:49:31 +0100567config NXP_TDA19988
568 bool "Enable NXP TDA19988 support"
569 depends on DISPLAY
Liviu Dudau33967102018-09-28 13:49:31 +0100570 help
571 This enables support for the NXP TDA19988 HDMI encoder. This encoder
572 will convert RGB data streams into HDMI-encoded signals.
573
Songjun Wu72ac56a2017-04-11 16:33:30 +0800574config ATMEL_HLCD
575 bool "Enable ATMEL video support using HLCDC"
Songjun Wu72ac56a2017-04-11 16:33:30 +0800576 help
577 HLCDC supports video output to an attached LCD panel.
578
Tom Rini3eeabf52022-06-10 22:59:34 -0400579source "drivers/video/exynos/Kconfig"
580
Mario Sixc13ee192018-08-09 14:51:23 +0200581config LOGICORE_DP_TX
582 bool "Enable Logicore DP TX driver"
583 depends on DISPLAY
584 help
585 Enable the driver for the transmitter part of the Xilinx LogiCORE
586 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
587 video interface as defined by VESA DisplayPort v1.2.
588
589 Note that this is a pure transmitter device, and has no display
590 capabilities by itself.
591
Simon Glassdec49b72016-03-11 22:07:30 -0700592config VIDEO_BROADWELL_IGD
593 bool "Enable Intel Broadwell integrated graphics device"
594 depends on X86
595 help
Simon Glassa3fdd002016-10-05 20:42:14 -0600596 This enables support for integrated graphics on Intel broadwell
Simon Glassdec49b72016-03-11 22:07:30 -0700597 devices. Initialisation is mostly performed by a VGA boot ROM, with
598 some setup handled by U-Boot itself. The graphics adaptor works as
599 a VESA device and supports LCD panels, eDP and LVDS outputs.
600 Configuration of most aspects of device operation is performed using
601 a special tool which configures the VGA ROM, but the graphics
602 resolution can be selected in U-Boot.
603
Simon Glass03f2a512016-10-05 20:42:15 -0600604config VIDEO_IVYBRIDGE_IGD
605 bool "Enable Intel Ivybridge integration graphics support"
606 depends on X86
607 help
608 This enables support for integrated graphics on Intel ivybridge
609 devices. Initialisation is mostly performed by a VGA boot ROM, with
610 some setup handled by U-Boot itself. The graphics adaptor works as
611 a VESA device and supports LCD panels, eDP and LVDS outputs.
612 Configuration of most aspects of device operation is performed using
613 a special tool which configures the VGA ROM, but the graphics
614 resolution can be selected in U-Boot.
615
eric.gao@rock-chips.com735ddea2017-04-17 22:24:23 +0800616source "drivers/video/rockchip/Kconfig"
Simon Glass0139ae62016-01-21 19:45:03 -0700617
Liviu Dudau8373ed32018-09-28 13:50:53 +0100618config VIDEO_ARM_MALIDP
619 bool "Enable Arm Mali Display Processor support"
Simon Glass557786c2022-10-18 07:35:17 -0600620 depends on OF_CONTROL
Liviu Dudau8373ed32018-09-28 13:50:53 +0100621 select VEXPRESS_CLK
622 help
623 This enables support for Arm Ltd Mali Display Processors from
624 the DP500, DP550 and DP650 family.
625
Simon Glass161eea72016-01-18 19:52:24 -0700626config VIDEO_SANDBOX_SDL
627 bool "Enable sandbox video console using SDL"
Tom Riniea79bb72022-11-19 18:45:43 -0500628 depends on SANDBOX_SDL
Simon Glass161eea72016-01-18 19:52:24 -0700629 help
630 When using sandbox you can enable an emulated LCD display which
631 appears as an SDL (Simple DirectMedia Layer) window. This is a
632 console device and can display stdout output. Within U-Boot is is
633 a normal bitmap display and can display images as well as text.
634
Philippe CORNUdcbad9a2017-08-03 12:36:08 +0200635source "drivers/video/stm32/Kconfig"
636
Simon Glass89c03462016-01-30 16:37:51 -0700637config VIDEO_TEGRA20
638 bool "Enable LCD support on Tegra20"
Simon Glass54832f22016-01-30 16:37:54 -0700639 depends on OF_CONTROL
Simon Glass89c03462016-01-30 16:37:51 -0700640 help
641 Tegra20 supports video output to an attached LCD panel as well as
642 other options such as HDMI. Only the LCD is supported in U-Boot.
643 This option enables this support which can be used on devices which
644 have an LCD display connected.
645
Simon Glass3ef2a722015-04-14 21:03:42 -0600646config VIDEO_TEGRA124
647 bool "Enable video support on Tegra124"
648 help
649 Tegra124 supports many video output options including eDP and
650 HDMI. At present only eDP is supported by U-Boot. This option
651 enables this support which can be used on devices which
652 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600653
654source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900655
Anatolij Gustschin411e73d2019-03-18 23:29:32 +0100656source "drivers/video/imx/Kconfig"
Anatolij Gustschin983e2f2a2019-03-18 23:29:31 +0100657
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200658config VIDEO_MXS
659 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200660 help
661 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
662
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200663config VIDEO_NX
664 bool "Enable video support on Nexell SoC"
665 depends on ARCH_S5P6818 || ARCH_S5P4418
666 help
667 Nexell SoC supports many video output options including eDP and
668 HDMI. This option enables this support which can be used on devices
669 which have an eDP display connected.
670
Michal Simek32058b82020-12-03 09:31:35 +0100671config VIDEO_SEPS525
672 bool "Enable video support for Seps525"
Simon Glass557786c2022-10-18 07:35:17 -0600673 depends on DM_GPIO
Michal Simek32058b82020-12-03 09:31:35 +0100674 help
675 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
676 Currently driver is supporting only SPI interface.
677
Michal Simekab2829a2022-02-23 15:52:02 +0100678config VIDEO_ZYNQMP_DPSUB
679 bool "Enable video support for ZynqMP Display Port"
Simon Glass557786c2022-10-18 07:35:17 -0600680 depends on ZYNQMP_POWER_DOMAIN
Michal Simekab2829a2022-02-23 15:52:02 +0100681 help
682 Enable support for Xilinx ZynqMP Display Port. Currently this file
683 is used as placeholder for driver. The main reason is to record
684 compatible string and calling power domain driver.
685
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200686source "drivers/video/nexell/Kconfig"
687
Simon Glassd76f29a2016-10-17 20:12:57 -0600688config CONSOLE_SCROLL_LINES
689 int "Number of lines to scroll the console by"
Simon Glassd76f29a2016-10-17 20:12:57 -0600690 default 1
691 help
692 When the console need to be scrolled, this is the number of
693 lines to scroll by. It defaults to 1. Increasing this makes the
694 console jump but can help speed up operation when scrolling
695 is slow.
696
Philipp Tomsich3a53b3e2017-05-05 21:48:26 +0200697config VIDEO_DW_HDMI
698 bool
699 help
700 Enables the common driver code for the Designware HDMI TX
701 block found in SoCs from various vendors.
702 As this does not provide any functionality by itself (but
703 rather requires a SoC-specific glue driver to call it), it
704 can not be enabled from the configuration menu.
705
Yannick Fertré9712c822019-10-07 15:29:05 +0200706config VIDEO_DSI_HOST_SANDBOX
707 bool "Enable sandbox for dsi host"
708 depends on SANDBOX
709 select VIDEO_MIPI_DSI
710 help
711 Enable support for sandbox dsi host device used for testing
712 purposes.
713 Display Serial Interface (DSI) defines a serial bus and
714 a communication protocol between the host and the device
715 (panel, bridge).
716
Yannick Fertré764af462019-10-07 15:29:06 +0200717config VIDEO_DW_MIPI_DSI
718 bool
719 select VIDEO_MIPI_DSI
720 help
721 Enables the common driver code for the Synopsis Designware
722 MIPI DSI block found in SoCs from various vendors.
723 As this does not provide any functionality by itself (but
724 rather requires a SoC-specific glue driver to call it), it
725 can not be enabled from the configuration menu.
726
Rob Clarkcf7ab0c2017-08-03 12:47:00 -0400727config VIDEO_SIMPLE
728 bool "Simple display driver for preconfigured display"
729 help
730 Enables a simple generic display driver which utilizes the
731 simple-framebuffer devicetree bindings.
732
733 This driver assumes that the display hardware has been initialized
734 before u-boot starts, and u-boot will simply render to the pre-
735 allocated frame buffer surface.
736
Icenowy Zheng60e4b8f2017-10-26 11:14:46 +0800737config VIDEO_DT_SIMPLEFB
738 bool "Enable SimpleFB support for passing framebuffer to OS"
739 help
740 Enables the code to pass the framebuffer to the kernel as a
741 simple framebuffer in the device tree.
742 The video output is initialized by U-Boot, and kept by the
743 kernel.
744
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200745config VIDEO_MCDE_SIMPLE
746 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200747 help
748 Enables a simple display driver for ST-Ericsson MCDE
749 (Multichannel Display Engine), which reads the configuration from
750 the MCDE registers.
751
752 This driver assumes that the display hardware has been initialized
753 before u-boot starts, and u-boot will simply render to the pre-
754 allocated frame buffer surface.
755
Mario Six1b773202018-09-27 09:19:29 +0200756config OSD
757 bool "Enable OSD support"
758 depends on DM
Mario Six1b773202018-09-27 09:19:29 +0200759 help
760 This supports drivers that provide a OSD (on-screen display), which
761 is a (usually text-oriented) graphics buffer to show information on
762 a display.
Mario Six8ea19da2018-09-27 09:19:30 +0200763
Mario Six02ad6fb2018-09-27 09:19:31 +0200764config SANDBOX_OSD
765 bool "Enable sandbox OSD"
766 depends on OSD
767 help
768 Enable support for sandbox OSD device used for testing purposes.
769
Mario Six8ea19da2018-09-27 09:19:30 +0200770config IHS_VIDEO_OUT
771 bool "Enable IHS video out driver"
772 depends on OSD
773 help
774 Enable support for the gdsys Integrated Hardware Systems (IHS) video
775 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
776 textual overlays of the display outputs.
777
Simon Glass2d7a7942020-08-11 11:23:35 -0600778config SPLASH_SCREEN
779 bool "Show a splash-screen image"
780 help
781 If this option is set, the environment is checked for a variable
782 "splashimage". If found, the usual display of logo, copyright and
783 system information on the LCD is suppressed and the BMP image at the
784 address specified in "splashimage" is loaded instead. The console is
785 redirected to the "nulldev", too. This allows for a "silent" boot
786 where a splash screen is loaded very quickly after power-on.
787
788 The splash_screen_prepare() function is a weak function defined in
789 common/splash.c. It is called as part of the splash screen display
790 sequence. It gives the board an opportunity to prepare the splash
791 image data before it is processed and sent to the frame buffer by
792 U-Boot. Define your own version to use this feature.
793
Simon Glass8b883a32022-10-18 06:24:16 -0600794if SPLASH_SCREEN
795
Simon Glass2d7a7942020-08-11 11:23:35 -0600796config SPLASH_SCREEN_ALIGN
797 bool "Allow positioning the splash image anywhere on the display"
Simon Glass2d7a7942020-08-11 11:23:35 -0600798 help
799 If this option is set the splash image can be freely positioned
800 on the screen. Environment variable "splashpos" specifies the
801 position as "x,y". If a positive number is given it is used as
802 number of pixel from left/top. If a negative number is given it
803 is used as number of pixel from right/bottom. You can also
804 specify 'm' for centering the image.
805
806 Example:
807 setenv splashpos m,m
808 => image at center of screen
809
810 setenv splashpos 30,20
811 => image at x = 30 and y = 20
812
813 setenv splashpos -10,m
814 => vertically centered image
815 at x = dspWidth - bmpWidth - 9
816
Simon Glass45c0a7e2022-10-18 06:30:56 -0600817config HIDE_LOGO_VERSION
818 bool "Hide the version information on the splash screen"
819 help
820 Normally the U-Boot version string is shown on the display when the
821 splash screen is enabled. This information is not otherwise visible
822 since video starts up after U-Boot has displayed the initial banner.
823
824 Enable this option to hide this information.
825
Simon Glass2d7a7942020-08-11 11:23:35 -0600826config SPLASH_SOURCE
827 bool "Control the source of the splash image"
Simon Glass2d7a7942020-08-11 11:23:35 -0600828 help
829 Use the splash_source.c library. This library provides facilities to
830 declare board specific splash image locations, routines for loading
831 splash image from supported locations, and a way of controlling the
832 selected splash location using the "splashsource" environment
833 variable.
834
835 This CONFIG works as follows:
836
837 - If splashsource is set to a supported location name as defined by
838 board code, use that splash location.
839 - If splashsource is undefined, use the first splash location as
840 default.
841 - If splashsource is set to an unsupported value, do not load a splash
842 screen.
843
844 A splash source location can describe either storage with raw data, a
845 storage formatted with a file system or a FIT image. In case of a
846 filesystem, the splash screen data is loaded as a file. The name of
847 the splash screen file can be controlled with the environment variable
848 "splashfile".
849
850 To enable loading the splash image from a FIT image, CONFIG_FIT must
851 be enabled. The FIT image has to start at the 'offset' field address
852 in the selected splash location. The name of splash image within the
853 FIT shall be specified by the environment variable "splashfile".
854
855 In case the environment variable "splashfile" is not defined the
856 default name 'splash.bmp' will be used.
857
Simon Glass8b883a32022-10-18 06:24:16 -0600858endif # SPLASH_SCREEN
859
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +0200860config VIDEO_BMP_GZIP
861 bool "Gzip compressed BMP image support"
862 depends on CMD_BMP || SPLASH_SCREEN
863 help
864 If this option is set, additionally to standard BMP
865 images, gzipped BMP images can be displayed via the
866 splashscreen support or the bmp command.
867
Simon Glass858198c2022-10-18 06:46:08 -0600868config VIDEO_LOGO_MAX_SIZE
Simon Glasscda7d0c2022-10-18 06:49:18 -0600869 hex "Maximum size of the bitmap logo in bytes"
870 default 0x100000
871 help
872 Sets the maximum uncompressed size of the logo. This is needed when
873 decompressing a BMP file using the gzip algorithm, since it cannot
874 read the size from the bitmap header.
Simon Glass858198c2022-10-18 06:46:08 -0600875
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200876config VIDEO_BMP_RLE8
877 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200878 help
879 If this option is set, the 8-bit RLE compressed BMP images
880 is supported.
881
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200882config BMP_16BPP
883 bool "16-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200884 help
885 Support display of bitmaps file with 16-bit-per-pixel
886
887config BMP_24BPP
888 bool "24-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200889 help
890 Support display of bitmaps file with 24-bit-per-pixel.
891
892config BMP_32BPP
893 bool "32-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200894 help
895 Support display of bitmaps file with 32-bit-per-pixel.
896
Simon Glass52cb5042022-10-18 07:46:31 -0600897endif # VIDEO
Simon Glass557786c2022-10-18 07:35:17 -0600898
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900899endmenu