blob: 6e79694fd192bed12bd01853bcb0d15df40dfcad [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
Simon Glasse0337a52024-07-31 08:44:10 -060010 imply CYCLIC
Simon Glass623d28f2016-01-18 19:52:15 -070011 help
12 This enables driver model for LCD and video devices. These support
13 a bitmap display of various sizes and depths which can be drawn on
14 to display a command-line console or splash screen. Enabling this
15 option compiles in the video uclass and routes all LCD/video access
16 through this.
17
Simon Glasse0337a52024-07-31 08:44:10 -060018 If CYCLIC is enabled (which it is by default), the cyclic subsystem
19 is used to flush pending output to the display periodically, rather
20 than this happening with every chunk of output. This allows for more
21 efficient operation and faster display output.
22
Simon Glass52cb5042022-10-18 07:46:31 -060023if VIDEO
Simon Glass557786c2022-10-18 07:35:17 -060024
Dzmitry Sankouski7fa964a2023-03-07 13:21:14 +030025config VIDEO_FONT_4X6
26 bool "4 x 6 font size"
27 help
28 Font for video console driver, 4 x 6 pixels.
29 Provides character bitmap data in header file.
30 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
31
32config VIDEO_FONT_8X16
33 bool "8 x 16 font size"
34 default y
35 help
36 Font for video console driver, 8 x 16 pixels
37 Provides character bitmap data in header file.
38 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
39
Dzmitry Sankouski7932a992023-02-27 20:37:07 +030040config VIDEO_FONT_SUN12X22
41 bool "12 x 22 font size"
42 help
43 Font for video console driver, 12 x 22 pixels
44 Provides character bitmap data in header file.
45 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
46
Dzmitry Sankouskiefadfde2023-02-27 20:37:08 +030047config VIDEO_FONT_16X32
48 bool "16 x 32 font size"
49 help
50 Font for video console driver, 16 x 32 pixels
51 Provides character bitmap data in header file.
52 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
53
Simon Glass8e5a8b62021-11-19 13:24:01 -070054config VIDEO_LOGO
55 bool "Show the U-Boot logo on the display"
Simon Glass7a6528592021-11-19 13:24:04 -070056 default y if !SPLASH_SCREEN
Simon Glass87a3cd72021-11-19 13:24:03 -070057 select VIDEO_BMP_RLE8
Simon Glass8e5a8b62021-11-19 13:24:01 -070058 help
59 This enables showing the U-Boot logo on the display when a video
60 device is probed. It appears at the top right. The logo itself is at
61 tools/logos/u-boot_logo.bmp and looks best when the display has a
62 black background.
63
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020064config BACKLIGHT
65 bool "Enable panel backlight uclass support"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020066 default y
67 help
68 This provides backlight uclass driver that enables basic panel
69 backlight support.
70
Simon Glassc3d2f352020-07-02 21:12:33 -060071config VIDEO_PCI_DEFAULT_FB_SIZE
72 hex "Default framebuffer size to use if no drivers request it"
Bin Meng88fdb442023-07-23 12:40:30 +080073 default 0x1000000 if X86
Bin Meng7c509a02023-07-23 12:40:31 +080074 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinif18679c2023-08-02 11:09:43 -040075 default 0x0 if !X86 && !VIDEO_BOCHS
Simon Glassc3d2f352020-07-02 21:12:33 -060076 help
77 Generally, video drivers request the amount of memory they need for
78 the frame buffer when they are bound, by setting the size field in
Dario Binacchi2ec85772021-01-23 19:43:52 +010079 struct video_uc_plat. That memory is then reserved for use after
Simon Glassc3d2f352020-07-02 21:12:33 -060080 relocation. But PCI drivers cannot be bound before relocation unless
81 they are mentioned in the devicetree.
82
83 With this value set appropriately, it is possible for PCI video
84 devices to have a framebuffer allocated by U-Boot.
85
86 Note: the framebuffer needs to be large enough to store all pixels at
Bin Meng05241702023-07-23 12:40:29 +080087 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Simon Glassc3d2f352020-07-02 21:12:33 -060088 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
89
Simon Glass73c9c372020-07-02 21:12:20 -060090config VIDEO_COPY
91 bool "Enable copying the frame buffer to a hardware copy"
Simon Glass73c9c372020-07-02 21:12:20 -060092 help
93 On some machines (e.g. x86), reading from the frame buffer is very
94 slow because it is uncached. To improve performance, this feature
95 allows the frame buffer to be kept in cached memory (allocated by
96 U-Boot) and then copied to the hardware frame-buffer as needed.
97
98 To use this, your video driver must set @copy_base in
Dario Binacchi2ec85772021-01-23 19:43:52 +010099 struct video_uc_plat.
Simon Glass73c9c372020-07-02 21:12:20 -0600100
Patrick Delaunay4300f072017-08-03 12:36:06 +0200101config BACKLIGHT_PWM
102 bool "Generic PWM based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200103 depends on BACKLIGHT && DM_PWM
Patrick Delaunay4300f072017-08-03 12:36:06 +0200104 default y
105 help
106 If you have a LCD backlight adjustable by PWM, say Y to enable
107 this driver.
108 This driver can be use with "simple-panel" and
109 it understands the standard device tree
110 (leds/backlight/pwm-backlight.txt)
111
Patrick Delaunaya3c046f2017-08-03 12:36:07 +0200112config BACKLIGHT_GPIO
113 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200114 depends on BACKLIGHT
Patrick Delaunaya3c046f2017-08-03 12:36:07 +0200115 help
116 If you have a LCD backlight adjustable by GPIO, say Y to enable
117 this driver.
118 This driver can be used with "simple-panel" and
119 it understands the standard device tree
120 (leds/backlight/gpio-backlight.txt)
121
Simon Glass623d28f2016-01-18 19:52:15 -0700122config VIDEO_BPP8
123 bool "Support 8-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100124 default y
Simon Glass623d28f2016-01-18 19:52:15 -0700125 help
126 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
127 Enabling this will include code to support this display. Without
128 this option, such displays will not be supported and console output
129 will be empty.
130
131config VIDEO_BPP16
132 bool "Support 16-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100133 default y
Simon Glass623d28f2016-01-18 19:52:15 -0700134 help
135 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
136 Enabling this will include code to support this display. Without
137 this option, such displays will not be supported and console output
138 will be empty.
139
140config VIDEO_BPP32
141 bool "Support 32-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100142 default y
Simon Glass623d28f2016-01-18 19:52:15 -0700143 help
144 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
145 Enabling this will include code to support this display. Without
146 this option, such displays will not be supported and console output
147 will be empty.
148
Rob Clark06e7a0d2017-09-13 18:12:21 -0400149config VIDEO_ANSI
150 bool "Support ANSI escape sequences in video console"
Simon Glass80a8e802023-01-06 08:52:29 -0600151 default y if EFI_LOADER
Rob Clark06e7a0d2017-09-13 18:12:21 -0400152 help
153 Enable ANSI escape sequence decoding for a more fully functional
Simon Glass80a8e802023-01-06 08:52:29 -0600154 console. Functionality includes changing the text colour and moving
155 the cursor. These date from the 1970s and are still widely used today
156 to control a text terminal. U-Boot implements these by decoding the
157 sequences and performing the appropriate operation.
Rob Clark06e7a0d2017-09-13 18:12:21 -0400158
Yannick Fertréd08fb322019-10-07 15:29:04 +0200159config VIDEO_MIPI_DSI
160 bool "Support MIPI DSI interface"
Yannick Fertréd08fb322019-10-07 15:29:04 +0200161 help
162 Support MIPI DSI interface for driving a MIPI compatible device.
163 The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
164 serial interface between a host processor and a display module.
165
Simon Glass6e0721d2016-01-22 21:53:37 +0100166config CONSOLE_NORMAL
167 bool "Support a simple text console"
Simon Glass557786c2022-10-18 07:35:17 -0600168 default y
Simon Glass6e0721d2016-01-22 21:53:37 +0100169 help
170 Support drawing text on the frame buffer console so that it can be
171 used as a console. Rotation is not supported by this driver (see
172 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
173 for the display.
174
175config CONSOLE_ROTATION
Simon Glass87aae882016-01-18 19:52:19 -0700176 bool "Support rotated displays"
Simon Glass87aae882016-01-18 19:52:19 -0700177 help
178 Sometimes, for example if the display is mounted in portrait
179 mode or even if it's mounted landscape but rotated by 180degree,
180 we need to rotate our content of the display relative to the
181 framebuffer, so that user can read the messages which are
182 printed out. Enable this option to include a text driver which can
183 support this. The rotation is set by the 'rot' parameter in
184 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
185 degrees, 3=270 degrees.
186
Simon Glass2ef353e2016-01-14 18:10:42 -0700187config CONSOLE_TRUETYPE
188 bool "Support a console that uses TrueType fonts"
Simon Glass0b226042024-01-04 08:10:39 -0700189 select X86_HARDFP if X86
Simon Glass2ef353e2016-01-14 18:10:42 -0700190 help
191 TrueTrype fonts can provide outline-drawing capability rather than
192 needing to provide a bitmap for each font and size that is needed.
193 With this option you can adjust the text size and use a variety of
194 fonts. Note that this is noticeably slower than with normal console.
195
196config CONSOLE_TRUETYPE_SIZE
197 int "TrueType font size"
198 depends on CONSOLE_TRUETYPE
199 default 18
200 help
201 This sets the font size for the console. The size is measured in
202 pixels and is the nominal height of a character. Note that fonts
203 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
204 However that measurement depends on the size of your display and
205 there is no standard display density. At present there is not a
206 method to select the display's physical size, which would allow
207 U-Boot to calculate the correct font size.
208
Simon Glass79597762022-10-06 08:36:11 -0600209config CONSOLE_TRUETYPE_MAX_METRICS
210 int "TrueType maximum number of font / size combinations"
211 depends on CONSOLE_TRUETYPE
212 default 10 if EXPO
213 default 1
214 help
215 This sets the number of font / size combinations which can be used by
216 the console. For simple console use a single font is enough. When
217 boot menus are in use, this may need to be increased.
218
219 Note that a separate entry is needed for each font size, even if the
220 font itself is the same. This is because the entry caches various
221 font metrics which are expensive to regenerate each time the font
222 size changes.
223
Simon Glassd65a1422017-04-26 22:27:57 -0600224config SYS_WHITE_ON_BLACK
225 bool "Display console as white on a black background"
Trevor Woerner513f6402020-05-06 08:02:41 -0400226 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glassd65a1422017-04-26 22:27:57 -0600227 help
228 Normally the display is black on a white background, Enable this
229 option to invert this, i.e. white on a black background. This can be
230 better in low-light situations or to reduce eye strain in some
231 cases.
232
Rob Clarkf1411882017-08-03 12:47:01 -0400233config NO_FB_CLEAR
234 bool "Skip framebuffer clear"
235 help
236 If firmware (whatever loads u-boot) has already put a splash image
237 on screen, you might want to preserve it until whatever u-boot
238 loads takes over the screen. This, for example, can be used to
239 keep splash image on screen until grub graphical boot menu starts.
240
Simon Glasse0337a52024-07-31 08:44:10 -0600241config VIDEO_SYNC_MS
242 int "Video-sync period in milliseconds for foreground processing"
243 default 300 if SANDBOX
244 default 100
245 help
246 This sets the requested, maximum time before a video sync will take
247 place, in milliseconds. Note that the time between video syncs
248 may be longer than this, since syncs only happen when the video system
249 is used, e.g. by outputting a character to the console.
250
251 It may also be shorter, since the video uclass will automatically
252 force a sync in certain situations.
253
254 Many video-output systems require a sync operation before any output
255 is visible. This may flush the CPU cache or perhaps copy the
256 display contents to a hardware framebuffer. Without this, change to
257 the video may never be displayed.
258
259config VIDEO_SYNC_CYCLIC_MS
260 int "Video-sync period in milliseconds for cyclic processing"
261 depends on CYCLIC
262 default 100 if SANDBOX
263 default 10
264 help
265 This sets the frequency of cyclic video syncs. The cyclic system is
266 used to ensure that when U-Boot is idle, it syncs the video. This
267 improves the responsiveness of the command line to new characters
268 being entered.
269
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200270config PANEL
271 bool "Enable panel uclass support"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200272 default y
273 help
274 This provides panel uclass driver that enables basic panel support.
275
276config SIMPLE_PANEL
277 bool "Enable simple panel support"
Asherah Connor81b0f612021-03-03 14:46:47 +1100278 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200279 default y
280 help
281 This turns on a simple panel driver that enables a compatible
282 video panel.
283
Simon Glassf8360fe2022-10-06 08:36:07 -0600284config PANEL_HX8238D
285 bool "Enable Himax HX-8238D LCD driver"
286 depends on PANEL
287 help
288 Support for HX-8238D LCD Panel
289 The HX8238-D is a single chip controller and driver LSI that
290 integrates the power circuit.
291 It can drive a maximum 960x240 dot graphics on a-TFT panel
292 displays in 16M colors with dithering.
293
Simon Glass2ef353e2016-01-14 18:10:42 -0700294source "drivers/video/fonts/Kconfig"
295
Simon Glass86f07462016-02-06 14:31:37 -0700296config VIDCONSOLE_AS_LCD
Patrick Delaunay60b92242020-07-01 14:56:10 +0200297 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay60b92242020-07-01 14:56:10 +0200298 help
299 This is a work-around for boards which have 'lcd' or 'vga' in their
300 stdout environment variable, but have moved to use driver model for
301 video. In this case the console will no-longer work. While it is
302 possible to update the environment, the breakage may be confusing for
303 users. This option will be removed around the end of 2020.
304
305config VIDCONSOLE_AS_NAME
306 string "Use 'vidconsole' when string defined here is seen in stdout"
307 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin47020642020-05-23 17:11:20 +0200308 default "lcd" if LCD || TEGRA_COMMON
309 default "vga" if !LCD
Simon Glass86f07462016-02-06 14:31:37 -0700310 help
Anatolij Gustschin47020642020-05-23 17:11:20 +0200311 This is a work-around for boards which have 'lcd' or 'vga' in their
312 stdout environment variable, but have moved to use driver model for
313 video. In this case the console will no-longer work. While it is
314 possible to update the environment, the breakage may be confusing for
315 users. This option will be removed around the end of 2020.
Simon Glass86f07462016-02-06 14:31:37 -0700316
Simon Glass90ca96a2023-07-15 21:39:18 -0600317config VIDEO_BOCHS
318 bool "Enable Bochs video emulation for QEMU"
Simon Glass90ca96a2023-07-15 21:39:18 -0600319 help
320 Enable this to use the Bochs video support provided in the QEMU
321 emulator. This appears as a PCI device which U-Boot can set up to
322 provide a frame buffer.
323
324if VIDEO_BOCHS
325
326config VIDEO_BOCHS_SIZE_X
327 int "Width of display (X resolution)"
328 default 1280
329 help
330 Sets the width of the display.
331
332 These two options control the size of the display set up by QEMU.
333 Typical sizes are 1024 x 768 or 1280 x 1024.
334
335config VIDEO_BOCHS_SIZE_Y
336 int "High of display (Y resolution)"
337 default 1024
338 help
339 Sets the height of the display.
340
341 These two options control the size of the display set up by QEMU.
342 Typical sizes are 1024 x 768 or 1280 x 1024.
343
344endif
345
Bin Menga0676be2016-10-09 04:14:16 -0700346config VIDEO_COREBOOT
347 bool "Enable coreboot framebuffer driver support"
Simon Glassd2398ab2021-03-15 18:00:27 +1300348 depends on X86
Bin Menga0676be2016-10-09 04:14:16 -0700349 help
350 Turn on this option to enable a framebuffer driver when U-Boot is
351 loaded by coreboot where the graphics device is configured by
352 coreboot already. This can in principle be used with any platform
353 that coreboot supports.
354
Bin Meng0f862b92018-06-12 08:36:22 -0700355config VIDEO_EFI
356 bool "Enable EFI framebuffer driver support"
Simon Glass04c26ff2021-11-03 21:09:10 -0600357 depends on EFI_STUB || EFI_APP
Bin Meng0f862b92018-06-12 08:36:22 -0700358 help
359 Turn on this option to enable a framebuffeer driver when U-Boot is
360 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
361 the graphics device is configured by the EFI BIOS already. This can
362 in principle be used with any platform that has an EFI BIOS.
363
Simon Glass42bf3ee2014-12-29 19:32:28 -0700364config VIDEO_VESA
365 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-12-29 19:32:28 -0700366 help
367 Turn on this option to enable a very simple driver which uses vesa
368 to discover the video mode and then provides a frame buffer for use
369 by U-Boot. This can in principle be used with any platform that
370 supports PCI and video cards that support VESA BIOS Extension (VBE).
371
Bin Meng072b79d2015-05-11 07:36:29 +0800372config FRAMEBUFFER_SET_VESA_MODE
373 bool "Set framebuffer graphics resolution"
Simon Glassdec49b72016-03-11 22:07:30 -0700374 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng072b79d2015-05-11 07:36:29 +0800375 help
376 Set VESA/native framebuffer mode (needed for bootsplash and graphical
377 framebuffer console)
378
379choice
380 prompt "framebuffer graphics resolution"
Bin Meng4da8a3f2018-04-11 22:02:16 -0700381 default FRAMEBUFFER_VESA_MODE_118
Bin Meng072b79d2015-05-11 07:36:29 +0800382 depends on FRAMEBUFFER_SET_VESA_MODE
383 help
384 This option sets the resolution used for the U-Boot framebuffer (and
385 bootsplash screen).
386
387config FRAMEBUFFER_VESA_MODE_100
388 bool "640x400 256-color"
389
390config FRAMEBUFFER_VESA_MODE_101
391 bool "640x480 256-color"
392
393config FRAMEBUFFER_VESA_MODE_102
394 bool "800x600 16-color"
395
396config FRAMEBUFFER_VESA_MODE_103
397 bool "800x600 256-color"
398
399config FRAMEBUFFER_VESA_MODE_104
400 bool "1024x768 16-color"
401
402config FRAMEBUFFER_VESA_MODE_105
Bin Meng932adc62015-08-09 23:26:59 -0700403 bool "1024x768 256-color"
Bin Meng072b79d2015-05-11 07:36:29 +0800404
405config FRAMEBUFFER_VESA_MODE_106
406 bool "1280x1024 16-color"
407
408config FRAMEBUFFER_VESA_MODE_107
409 bool "1280x1024 256-color"
410
411config FRAMEBUFFER_VESA_MODE_108
412 bool "80x60 text"
413
414config FRAMEBUFFER_VESA_MODE_109
415 bool "132x25 text"
416
417config FRAMEBUFFER_VESA_MODE_10A
418 bool "132x43 text"
419
420config FRAMEBUFFER_VESA_MODE_10B
421 bool "132x50 text"
422
423config FRAMEBUFFER_VESA_MODE_10C
424 bool "132x60 text"
425
426config FRAMEBUFFER_VESA_MODE_10D
427 bool "320x200 32k-color (1:5:5:5)"
428
429config FRAMEBUFFER_VESA_MODE_10E
430 bool "320x200 64k-color (5:6:5)"
431
432config FRAMEBUFFER_VESA_MODE_10F
433 bool "320x200 16.8M-color (8:8:8)"
434
435config FRAMEBUFFER_VESA_MODE_110
436 bool "640x480 32k-color (1:5:5:5)"
437
438config FRAMEBUFFER_VESA_MODE_111
439 bool "640x480 64k-color (5:6:5)"
440
441config FRAMEBUFFER_VESA_MODE_112
442 bool "640x480 16.8M-color (8:8:8)"
443
444config FRAMEBUFFER_VESA_MODE_113
445 bool "800x600 32k-color (1:5:5:5)"
446
447config FRAMEBUFFER_VESA_MODE_114
448 bool "800x600 64k-color (5:6:5)"
449
450config FRAMEBUFFER_VESA_MODE_115
451 bool "800x600 16.8M-color (8:8:8)"
452
453config FRAMEBUFFER_VESA_MODE_116
454 bool "1024x768 32k-color (1:5:5:5)"
455
456config FRAMEBUFFER_VESA_MODE_117
457 bool "1024x768 64k-color (5:6:5)"
458
459config FRAMEBUFFER_VESA_MODE_118
460 bool "1024x768 16.8M-color (8:8:8)"
461
462config FRAMEBUFFER_VESA_MODE_119
463 bool "1280x1024 32k-color (1:5:5:5)"
464
465config FRAMEBUFFER_VESA_MODE_11A
466 bool "1280x1024 64k-color (5:6:5)"
467
468config FRAMEBUFFER_VESA_MODE_11B
469 bool "1280x1024 16.8M-color (8:8:8)"
470
471config FRAMEBUFFER_VESA_MODE_USER
472 bool "Manually select VESA mode"
473
474endchoice
475
476# Map the config names to an integer (KB).
477config FRAMEBUFFER_VESA_MODE
478 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
479 hex
480 default 0x100 if FRAMEBUFFER_VESA_MODE_100
481 default 0x101 if FRAMEBUFFER_VESA_MODE_101
482 default 0x102 if FRAMEBUFFER_VESA_MODE_102
483 default 0x103 if FRAMEBUFFER_VESA_MODE_103
484 default 0x104 if FRAMEBUFFER_VESA_MODE_104
485 default 0x105 if FRAMEBUFFER_VESA_MODE_105
486 default 0x106 if FRAMEBUFFER_VESA_MODE_106
487 default 0x107 if FRAMEBUFFER_VESA_MODE_107
488 default 0x108 if FRAMEBUFFER_VESA_MODE_108
489 default 0x109 if FRAMEBUFFER_VESA_MODE_109
490 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
491 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
492 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
493 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
494 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
495 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
496 default 0x110 if FRAMEBUFFER_VESA_MODE_110
497 default 0x111 if FRAMEBUFFER_VESA_MODE_111
498 default 0x112 if FRAMEBUFFER_VESA_MODE_112
499 default 0x113 if FRAMEBUFFER_VESA_MODE_113
500 default 0x114 if FRAMEBUFFER_VESA_MODE_114
501 default 0x115 if FRAMEBUFFER_VESA_MODE_115
502 default 0x116 if FRAMEBUFFER_VESA_MODE_116
503 default 0x117 if FRAMEBUFFER_VESA_MODE_117
504 default 0x118 if FRAMEBUFFER_VESA_MODE_118
505 default 0x119 if FRAMEBUFFER_VESA_MODE_119
506 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
507 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
508 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
509
Hans de Goededfc1efe2015-08-08 16:03:29 +0200510config VIDEO_LCD_ANX9804
511 bool "ANX9804 bridge chip"
Hans de Goededfc1efe2015-08-08 16:03:29 +0200512 ---help---
513 Support for the ANX9804 bridge chip, which can take pixel data coming
514 from a parallel LCD interface and translate it on the fy into a DP
515 interface for driving eDP TFT displays. It uses I2C for configuration.
516
Tom Rini4c047422022-03-18 08:38:28 -0400517config ATMEL_LCD
518 bool "Atmel LCD panel support"
Simon Glass557786c2022-10-18 07:35:17 -0600519 depends on ARCH_AT91
Tom Rini4c047422022-03-18 08:38:28 -0400520
521config ATMEL_LCD_BGR555
522 bool "Display in BGR555 mode"
523 help
524 Use the BGR555 output mode. Otherwise RGB565 is used.
525
Simon Glass7b3fabb2022-01-23 07:04:14 -0700526config VIDEO_BCM2835
527 bool "Display support for BCM2835"
528 help
529 The graphics processor already sets up the display so this driver
530 simply checks the resolution and then sets up the frame buffer with
531 that same resolution (or as near as possible) and 32bpp depth, so
532 that U-Boot can access it with full colour depth.
533
Svyatoslav Ryhelbd932b72023-04-25 10:51:47 +0300534config VIDEO_LCD_ENDEAVORU
535 tristate "Endeavoru 720x1280 DSI video mode panel"
536 depends on PANEL && BACKLIGHT
537 select VIDEO_MIPI_DSI
538 help
539 Say Y here if you want to enable support for the IPS-LCD panel
540 module for HTC One X. Driver supports a family of panels,
541 made at least by 3 vendors (Sharp, Sony and AUO), but set up
542 using the same DSI command sequence. The panel has a 720x1280
543 resolution and uses 24 bit RGB per pixel.
544
Ondrej Jirman55453d42023-05-25 14:34:35 +0200545config VIDEO_LCD_HIMAX_HX8394
546 bool "Himax HX8394 DSI LCD panel support"
547 depends on PANEL && BACKLIGHT
548 select VIDEO_MIPI_DSI
549 help
550 Say Y here if you want to enable support for Himax HX8394
551 dsi 4dl panel.
552
Yannick Fertré5b855d42019-10-07 15:29:08 +0200553config VIDEO_LCD_ORISETECH_OTM8009A
554 bool "OTM8009A DSI LCD panel support"
Yannick Fertré5b855d42019-10-07 15:29:08 +0200555 select VIDEO_MIPI_DSI
Yannick Fertré5b855d42019-10-07 15:29:08 +0200556 help
557 Say Y here if you want to enable support for Orise Technology
558 otm8009a 480x800 dsi 2dl panel.
559
Svyatoslav Ryhel9497e752024-01-31 08:57:15 +0200560config VIDEO_LCD_LG_LD070WX3
561 bool "LD070WX3 DSI LCD panel support"
562 depends on PANEL && BACKLIGHT
563 select VIDEO_MIPI_DSI
564 help
565 Say Y here if you want to enable support for LG LD070WX3
566 800x1280 DSI video mode panel.
567
Yannick Fertréb038fed2019-10-07 15:29:09 +0200568config VIDEO_LCD_RAYDIUM_RM68200
569 bool "RM68200 DSI LCD panel support"
Yannick Fertréb038fed2019-10-07 15:29:09 +0200570 select VIDEO_MIPI_DSI
Yannick Fertréb038fed2019-10-07 15:29:09 +0200571 help
572 Say Y here if you want to enable support for Raydium RM68200
573 720x1280 DSI video mode panel.
574
Svyatoslav Ryhelb9054982023-04-25 10:51:44 +0300575config VIDEO_LCD_RENESAS_R61307
576 tristate "Renesas R61307 DSI video mode panel"
577 depends on PANEL && BACKLIGHT
578 select VIDEO_MIPI_DSI
579 help
580 Say Y here if you want to enable support for KOE tx13d100vm0eaa
581 IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
582 resolution and uses 24 bit RGB per pixel.
583
Svyatoslav Ryhelfcbbd562023-04-25 10:51:45 +0300584config VIDEO_LCD_RENESAS_R69328
585 tristate "Renesas R69328 720x1280 DSI video mode panel"
586 depends on PANEL && BACKLIGHT
587 select VIDEO_MIPI_DSI
588 help
589 Say Y here if you want to enable support for JDI dx12d100vm0eaa
590 IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
591 resolution and uses 24 bit RGB per pixel.
592
Anton Bambura7c84e5d2024-01-31 08:57:16 +0200593config VIDEO_LCD_SAMSUNG_LTL106HL02
594 tristate "Samsung LTL106HL02 1920x1080 DSI video mode panel"
595 depends on PANEL && BACKLIGHT
596 select VIDEO_MIPI_DSI
597 help
598 Say Y here if you want to enable support for Samsung LTL106HL02
599 LCD module found in Microsoft Surface 2. The panel has a FullHD
600 resolution (1920x1080).
601
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200602config VIDEO_LCD_SSD2828
603 bool "SSD2828 bridge chip"
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200604 ---help---
605 Support for the SSD2828 bridge chip, which can take pixel data coming
606 from a parallel LCD interface and translate it on the fly into MIPI DSI
607 interface for driving a MIPI compatible LCD panel. It uses SPI for
608 configuration.
609
610config VIDEO_LCD_SSD2828_TX_CLK
611 int "SSD2828 TX_CLK frequency (in MHz)"
612 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200613 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200614 ---help---
615 The frequency of the crystal, which is clocking SSD2828. It may be
616 anything in the 8MHz-30MHz range and the exact value should be
617 retrieved from the board schematics. Or in the case of Allwinner
618 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200619 FEX files. It can be also set to 0 for selecting PCLK from the
620 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200621
622config VIDEO_LCD_SSD2828_RESET
623 string "RESET pin of SSD2828"
624 depends on VIDEO_LCD_SSD2828
625 default ""
626 ---help---
627 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500628 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200629
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200630config VIDEO_LCD_TDO_TL070WSH30
631 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200632 select VIDEO_MIPI_DSI
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200633 help
634 Say Y here if you want to enable support for TDO TL070WSH30
635 1024x600 DSI video mode panel.
636
Hans de Goedec0482032015-01-20 09:22:26 +0100637config VIDEO_LCD_HITACHI_TX18D42VM
638 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedec0482032015-01-20 09:22:26 +0100639 ---help---
640 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
641 lcd controller which needs to be initialized over SPI, once that is
642 done they work like a regular LVDS panel.
643
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200644config VIDEO_LCD_SPI_CS
645 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100646 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200647 default ""
648 ---help---
649 This is one of the SPI communication pins, involved in setting up a
650 working LCD configuration. The exact role of SPI may differ for
651 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500652 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200653
654config VIDEO_LCD_SPI_SCLK
655 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100656 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200657 default ""
658 ---help---
659 This is one of the SPI communication pins, involved in setting up a
660 working LCD configuration. The exact role of SPI may differ for
661 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500662 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200663
664config VIDEO_LCD_SPI_MOSI
665 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100666 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200667 default ""
668 ---help---
669 This is one of the SPI communication pins, involved in setting up a
670 working LCD configuration. The exact role of SPI may differ for
671 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500672 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200673
674config VIDEO_LCD_SPI_MISO
675 string "SPI MISO pin for LCD related config job (optional)"
676 depends on VIDEO_LCD_SSD2828
677 default ""
678 ---help---
679 This is one of the SPI communication pins, involved in setting up a
680 working LCD configuration. The exact role of SPI may differ for
681 different hardware setups. If wired up, this pin may provide additional
682 useful functionality. Such as bi-directional communication with the
683 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500684 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200685 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600686
Neil Armstrongadd986c2018-07-24 17:45:28 +0200687source "drivers/video/meson/Kconfig"
688
Stefan Roeseab91fd52016-01-20 08:13:28 +0100689config VIDEO_MVEBU
690 bool "Armada XP LCD controller"
Stefan Roeseab91fd52016-01-20 08:13:28 +0100691 ---help---
692 Support for the LCD controller integrated in the Marvell
693 Armada XP SoC.
694
Adam Ford60a59d42018-08-02 08:50:20 -0500695config VIDEO_OMAP3
696 bool "Enable OMAP3+ DSS Support"
697 depends on ARCH_OMAP2PLUS
698 help
699 This enables the Display subsystem (DSS) on OMAP3+ boards.
700
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100701config I2C_EDID
702 bool "Enable EDID library"
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100703 help
704 This enables library for accessing EDID data from an LCD panel.
705
Simon Glass7d3d7762016-01-21 19:45:00 -0700706config DISPLAY
707 bool "Enable Display support"
708 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100709 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600710 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700711 This supports drivers that provide a display, such as eDP (Embedded
712 DisplayPort) and HDMI (High Definition Multimedia Interface).
713 The devices provide a simple interface to start up the display,
714 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600715
Liviu Dudau33967102018-09-28 13:49:31 +0100716config NXP_TDA19988
717 bool "Enable NXP TDA19988 support"
718 depends on DISPLAY
Liviu Dudau33967102018-09-28 13:49:31 +0100719 help
720 This enables support for the NXP TDA19988 HDMI encoder. This encoder
721 will convert RGB data streams into HDMI-encoded signals.
722
Songjun Wu72ac56a2017-04-11 16:33:30 +0800723config ATMEL_HLCD
724 bool "Enable ATMEL video support using HLCDC"
Songjun Wu72ac56a2017-04-11 16:33:30 +0800725 help
726 HLCDC supports video output to an attached LCD panel.
727
Svyatoslav Ryhel3e9488a2023-04-25 10:51:42 +0300728config BACKLIGHT_LM3533
729 bool "Backlight Driver for LM3533"
730 depends on BACKLIGHT
731 select DM_I2C
732 help
733 Say Y to enable the backlight driver for National Semiconductor / TI
734 LM3533 Lighting Power chip. Only Bank A is supported as for now.
735 Supported backlight level range is from 2 to 255 with step of 1.
736
Dario Binacchi260bdb32023-01-28 16:55:31 +0100737source "drivers/video/ti/Kconfig"
738
Tom Rini3eeabf52022-06-10 22:59:34 -0400739source "drivers/video/exynos/Kconfig"
740
Mario Sixc13ee192018-08-09 14:51:23 +0200741config LOGICORE_DP_TX
742 bool "Enable Logicore DP TX driver"
743 depends on DISPLAY
744 help
745 Enable the driver for the transmitter part of the Xilinx LogiCORE
746 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
747 video interface as defined by VESA DisplayPort v1.2.
748
749 Note that this is a pure transmitter device, and has no display
750 capabilities by itself.
751
Simon Glassdec49b72016-03-11 22:07:30 -0700752config VIDEO_BROADWELL_IGD
753 bool "Enable Intel Broadwell integrated graphics device"
754 depends on X86
755 help
Simon Glassa3fdd002016-10-05 20:42:14 -0600756 This enables support for integrated graphics on Intel broadwell
Simon Glassdec49b72016-03-11 22:07:30 -0700757 devices. Initialisation is mostly performed by a VGA boot ROM, with
758 some setup handled by U-Boot itself. The graphics adaptor works as
759 a VESA device and supports LCD panels, eDP and LVDS outputs.
760 Configuration of most aspects of device operation is performed using
761 a special tool which configures the VGA ROM, but the graphics
762 resolution can be selected in U-Boot.
763
Simon Glass03f2a512016-10-05 20:42:15 -0600764config VIDEO_IVYBRIDGE_IGD
765 bool "Enable Intel Ivybridge integration graphics support"
766 depends on X86
767 help
768 This enables support for integrated graphics on Intel ivybridge
769 devices. Initialisation is mostly performed by a VGA boot ROM, with
770 some setup handled by U-Boot itself. The graphics adaptor works as
771 a VESA device and supports LCD panels, eDP and LVDS outputs.
772 Configuration of most aspects of device operation is performed using
773 a special tool which configures the VGA ROM, but the graphics
774 resolution can be selected in U-Boot.
775
eric.gao@rock-chips.com735ddea2017-04-17 22:24:23 +0800776source "drivers/video/rockchip/Kconfig"
Simon Glass0139ae62016-01-21 19:45:03 -0700777
Liviu Dudau8373ed32018-09-28 13:50:53 +0100778config VIDEO_ARM_MALIDP
779 bool "Enable Arm Mali Display Processor support"
Simon Glass557786c2022-10-18 07:35:17 -0600780 depends on OF_CONTROL
Liviu Dudau8373ed32018-09-28 13:50:53 +0100781 select VEXPRESS_CLK
782 help
783 This enables support for Arm Ltd Mali Display Processors from
784 the DP500, DP550 and DP650 family.
785
Simon Glass161eea72016-01-18 19:52:24 -0700786config VIDEO_SANDBOX_SDL
787 bool "Enable sandbox video console using SDL"
Tom Riniea79bb72022-11-19 18:45:43 -0500788 depends on SANDBOX_SDL
Simon Glass161eea72016-01-18 19:52:24 -0700789 help
790 When using sandbox you can enable an emulated LCD display which
791 appears as an SDL (Simple DirectMedia Layer) window. This is a
792 console device and can display stdout output. Within U-Boot is is
793 a normal bitmap display and can display images as well as text.
794
Philippe CORNUdcbad9a2017-08-03 12:36:08 +0200795source "drivers/video/stm32/Kconfig"
796
Nikhil M Jain94272742023-01-31 15:35:17 +0530797source "drivers/video/tidss/Kconfig"
798
Simon Glass3ef2a722015-04-14 21:03:42 -0600799config VIDEO_TEGRA124
800 bool "Enable video support on Tegra124"
801 help
802 Tegra124 supports many video output options including eDP and
803 HDMI. At present only eDP is supported by U-Boot. This option
804 enables this support which can be used on devices which
805 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600806
807source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900808
Svyatoslav Ryheld15683f2023-03-27 11:11:41 +0300809source "drivers/video/tegra20/Kconfig"
810
Anatolij Gustschin411e73d2019-03-18 23:29:32 +0100811source "drivers/video/imx/Kconfig"
Anatolij Gustschin983e2f2a2019-03-18 23:29:31 +0100812
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200813config VIDEO_MXS
814 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200815 help
816 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
817
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200818config VIDEO_NX
819 bool "Enable video support on Nexell SoC"
820 depends on ARCH_S5P6818 || ARCH_S5P4418
821 help
822 Nexell SoC supports many video output options including eDP and
823 HDMI. This option enables this support which can be used on devices
824 which have an eDP display connected.
825
Michal Simek32058b82020-12-03 09:31:35 +0100826config VIDEO_SEPS525
827 bool "Enable video support for Seps525"
Simon Glass557786c2022-10-18 07:35:17 -0600828 depends on DM_GPIO
Michal Simek32058b82020-12-03 09:31:35 +0100829 help
830 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
831 Currently driver is supporting only SPI interface.
832
Venkatesh Yadav Abbarapue3679802023-05-17 10:42:09 +0200833source "drivers/video/zynqmp/Kconfig"
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200834source "drivers/video/nexell/Kconfig"
835
Simon Glassd76f29a2016-10-17 20:12:57 -0600836config CONSOLE_SCROLL_LINES
837 int "Number of lines to scroll the console by"
Simon Glassd76f29a2016-10-17 20:12:57 -0600838 default 1
839 help
840 When the console need to be scrolled, this is the number of
841 lines to scroll by. It defaults to 1. Increasing this makes the
842 console jump but can help speed up operation when scrolling
843 is slow.
844
Philipp Tomsich3a53b3e2017-05-05 21:48:26 +0200845config VIDEO_DW_HDMI
846 bool
847 help
848 Enables the common driver code for the Designware HDMI TX
849 block found in SoCs from various vendors.
850 As this does not provide any functionality by itself (but
851 rather requires a SoC-specific glue driver to call it), it
852 can not be enabled from the configuration menu.
853
Yannick Fertré9712c822019-10-07 15:29:05 +0200854config VIDEO_DSI_HOST_SANDBOX
855 bool "Enable sandbox for dsi host"
856 depends on SANDBOX
857 select VIDEO_MIPI_DSI
858 help
859 Enable support for sandbox dsi host device used for testing
860 purposes.
861 Display Serial Interface (DSI) defines a serial bus and
862 a communication protocol between the host and the device
863 (panel, bridge).
864
Yannick Fertré764af462019-10-07 15:29:06 +0200865config VIDEO_DW_MIPI_DSI
866 bool
867 select VIDEO_MIPI_DSI
868 help
869 Enables the common driver code for the Synopsis Designware
870 MIPI DSI block found in SoCs from various vendors.
871 As this does not provide any functionality by itself (but
872 rather requires a SoC-specific glue driver to call it), it
873 can not be enabled from the configuration menu.
874
Rob Clarkcf7ab0c2017-08-03 12:47:00 -0400875config VIDEO_SIMPLE
876 bool "Simple display driver for preconfigured display"
877 help
878 Enables a simple generic display driver which utilizes the
879 simple-framebuffer devicetree bindings.
880
881 This driver assumes that the display hardware has been initialized
882 before u-boot starts, and u-boot will simply render to the pre-
883 allocated frame buffer surface.
884
Icenowy Zheng60e4b8f2017-10-26 11:14:46 +0800885config VIDEO_DT_SIMPLEFB
886 bool "Enable SimpleFB support for passing framebuffer to OS"
887 help
888 Enables the code to pass the framebuffer to the kernel as a
889 simple framebuffer in the device tree.
890 The video output is initialized by U-Boot, and kept by the
891 kernel.
892
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200893config VIDEO_MCDE_SIMPLE
894 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200895 help
896 Enables a simple display driver for ST-Ericsson MCDE
897 (Multichannel Display Engine), which reads the configuration from
898 the MCDE registers.
899
900 This driver assumes that the display hardware has been initialized
901 before u-boot starts, and u-boot will simply render to the pre-
902 allocated frame buffer surface.
903
Mario Six1b773202018-09-27 09:19:29 +0200904config OSD
905 bool "Enable OSD support"
906 depends on DM
Mario Six1b773202018-09-27 09:19:29 +0200907 help
908 This supports drivers that provide a OSD (on-screen display), which
909 is a (usually text-oriented) graphics buffer to show information on
910 a display.
Mario Six8ea19da2018-09-27 09:19:30 +0200911
Mario Six02ad6fb2018-09-27 09:19:31 +0200912config SANDBOX_OSD
913 bool "Enable sandbox OSD"
914 depends on OSD
915 help
916 Enable support for sandbox OSD device used for testing purposes.
917
Mario Six8ea19da2018-09-27 09:19:30 +0200918config IHS_VIDEO_OUT
919 bool "Enable IHS video out driver"
920 depends on OSD
921 help
922 Enable support for the gdsys Integrated Hardware Systems (IHS) video
923 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
924 textual overlays of the display outputs.
925
Nikhil M Jain085f1dd2023-07-18 14:27:32 +0530926config VIDEO_REMOVE
927 bool "Remove video driver"
928 help
929 Use this option to specify if user wants to call remove method of
930 video driver in u-boot proper stage.
931
Simon Glass2d7a7942020-08-11 11:23:35 -0600932config SPLASH_SCREEN
933 bool "Show a splash-screen image"
934 help
935 If this option is set, the environment is checked for a variable
936 "splashimage". If found, the usual display of logo, copyright and
937 system information on the LCD is suppressed and the BMP image at the
938 address specified in "splashimage" is loaded instead. The console is
939 redirected to the "nulldev", too. This allows for a "silent" boot
940 where a splash screen is loaded very quickly after power-on.
941
942 The splash_screen_prepare() function is a weak function defined in
943 common/splash.c. It is called as part of the splash screen display
944 sequence. It gives the board an opportunity to prepare the splash
945 image data before it is processed and sent to the frame buffer by
946 U-Boot. Define your own version to use this feature.
947
Simon Glass8b883a32022-10-18 06:24:16 -0600948if SPLASH_SCREEN
949
Simon Glass2d7a7942020-08-11 11:23:35 -0600950config SPLASH_SCREEN_ALIGN
951 bool "Allow positioning the splash image anywhere on the display"
Simon Glass2d7a7942020-08-11 11:23:35 -0600952 help
953 If this option is set the splash image can be freely positioned
954 on the screen. Environment variable "splashpos" specifies the
955 position as "x,y". If a positive number is given it is used as
956 number of pixel from left/top. If a negative number is given it
957 is used as number of pixel from right/bottom. You can also
958 specify 'm' for centering the image.
959
960 Example:
961 setenv splashpos m,m
962 => image at center of screen
963
964 setenv splashpos 30,20
965 => image at x = 30 and y = 20
966
967 setenv splashpos -10,m
968 => vertically centered image
969 at x = dspWidth - bmpWidth - 9
970
Simon Glass45c0a7e2022-10-18 06:30:56 -0600971config HIDE_LOGO_VERSION
972 bool "Hide the version information on the splash screen"
973 help
974 Normally the U-Boot version string is shown on the display when the
975 splash screen is enabled. This information is not otherwise visible
976 since video starts up after U-Boot has displayed the initial banner.
977
978 Enable this option to hide this information.
979
Simon Glass2d7a7942020-08-11 11:23:35 -0600980config SPLASH_SOURCE
981 bool "Control the source of the splash image"
Simon Glass2d7a7942020-08-11 11:23:35 -0600982 help
983 Use the splash_source.c library. This library provides facilities to
984 declare board specific splash image locations, routines for loading
985 splash image from supported locations, and a way of controlling the
986 selected splash location using the "splashsource" environment
987 variable.
988
989 This CONFIG works as follows:
990
991 - If splashsource is set to a supported location name as defined by
992 board code, use that splash location.
993 - If splashsource is undefined, use the first splash location as
994 default.
995 - If splashsource is set to an unsupported value, do not load a splash
996 screen.
997
998 A splash source location can describe either storage with raw data, a
999 storage formatted with a file system or a FIT image. In case of a
1000 filesystem, the splash screen data is loaded as a file. The name of
1001 the splash screen file can be controlled with the environment variable
1002 "splashfile".
1003
1004 To enable loading the splash image from a FIT image, CONFIG_FIT must
1005 be enabled. The FIT image has to start at the 'offset' field address
1006 in the selected splash location. The name of splash image within the
1007 FIT shall be specified by the environment variable "splashfile".
1008
1009 In case the environment variable "splashfile" is not defined the
1010 default name 'splash.bmp' will be used.
1011
Simon Glass8b883a32022-10-18 06:24:16 -06001012endif # SPLASH_SCREEN
1013
Simon Glasse0e27fe2023-09-14 10:55:42 -06001014config BMP
1015 bool "Enable bmp image display"
1016 help
1017 Enable bmp functions to display bmp image and get bmp info.
1018
1019 BMP is a simple graphics-image file format designed to store bitmap
1020 images. It is primarily used on Windows devices.
1021
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +02001022config VIDEO_BMP_GZIP
1023 bool "Gzip compressed BMP image support"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301024 depends on BMP || SPLASH_SCREEN
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +02001025 help
1026 If this option is set, additionally to standard BMP
1027 images, gzipped BMP images can be displayed via the
1028 splashscreen support or the bmp command.
1029
Simon Glass858198c2022-10-18 06:46:08 -06001030config VIDEO_LOGO_MAX_SIZE
Simon Glasscda7d0c2022-10-18 06:49:18 -06001031 hex "Maximum size of the bitmap logo in bytes"
1032 default 0x100000
1033 help
1034 Sets the maximum uncompressed size of the logo. This is needed when
1035 decompressing a BMP file using the gzip algorithm, since it cannot
1036 read the size from the bitmap header.
Simon Glass858198c2022-10-18 06:46:08 -06001037
Patrick Delaunayc47fe772020-09-28 11:30:15 +02001038config VIDEO_BMP_RLE8
1039 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayc47fe772020-09-28 11:30:15 +02001040 help
1041 If this option is set, the 8-bit RLE compressed BMP images
1042 is supported.
1043
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001044config BMP_16BPP
1045 bool "16-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001046 help
1047 Support display of bitmaps file with 16-bit-per-pixel
1048
1049config BMP_24BPP
1050 bool "24-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001051 help
1052 Support display of bitmaps file with 24-bit-per-pixel.
1053
1054config BMP_32BPP
1055 bool "32-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001056 help
1057 Support display of bitmaps file with 32-bit-per-pixel.
1058
Simon Glass52cb5042022-10-18 07:46:31 -06001059endif # VIDEO
Simon Glass557786c2022-10-18 07:35:17 -06001060
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301061config SPL_VIDEO
John Keeping0a2daf32023-05-09 12:02:50 +01001062 bool "Enable driver model support for LCD/video in SPL"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301063 depends on SPL_DM
1064 help
1065 The video subsystem adds a small amount of overhead to the image.
1066 If this is acceptable and you have a need to use video drivers in
1067 SPL, enable this option. It might provide a cleaner interface to
1068 setting up video within SPL, and allows the same drivers to be
1069 used as U-Boot proper.
1070
1071if SPL_VIDEO
1072source "drivers/video/tidss/Kconfig"
1073
Simon Glass896409c2023-07-30 11:16:05 -06001074config SPL_VIDEO_HANDOFF
1075 bool "Pass the video frame-buffer through to U-Boot proper"
1076 depends on SPL_BLOBLIST
1077 default y if !X86
1078 help
1079 Enable this to set up video-handoff information in SPL which can be
1080 picked up in U-Boot proper. This includes the frame buffer and
1081 various other pieces of information. With this enabled, SPL can set
1082 up video and avoid re-initing it later.
1083
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301084config SPL_VIDEO_LOGO
1085 bool "Show the U-Boot logo on the display at SPL"
1086 default y if !SPL_SPLASH_SCREEN
1087 select SPL_VIDEO_BMP_RLE8
1088 help
1089 This enables showing the U-Boot logo on the display when a video
1090 device is probed. It appears at the top right. The logo itself is at
1091 tools/logos/u-boot_logo.bmp and looks best when the display has a
1092 black background.
1093
1094config SPL_SPLASH_SCREEN
1095 bool "Show a splash-screen image at SPL"
1096 help
1097 If this option is set, the environment is checked for a variable
1098 "splashimage" at spl stage.
1099
1100config SPL_SYS_WHITE_ON_BLACK
1101 bool "Display console as white on a black background at SPL"
1102 help
1103 Normally the display is black on a white background, Enable this
1104 option to invert this, i.e. white on a black background at spl stage.
1105 This can be better in low-light situations or to reduce eye strain in
1106 some cases.
1107
1108config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
1109 hex "Default framebuffer size to use if no drivers request it at SPL"
Bin Meng88fdb442023-07-23 12:40:30 +08001110 default 0x1000000 if X86
Bin Meng7c509a02023-07-23 12:40:31 +08001111 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinif18679c2023-08-02 11:09:43 -04001112 default 0x0 if !X86 && !VIDEO_BOCHS
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301113 help
1114 Generally, video drivers request the amount of memory they need for
1115 the frame buffer when they are bound, by setting the size field in
1116 struct video_uc_plat. That memory is then reserved for use after
1117 relocation. But PCI drivers cannot be bound before relocation unless
1118 they are mentioned in the devicetree.
1119
1120 With this value set appropriately, it is possible for PCI video
1121 devices to have a framebuffer allocated by U-Boot.
1122
1123 Note: the framebuffer needs to be large enough to store all pixels at
Bin Meng05241702023-07-23 12:40:29 +08001124 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301125 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
1126
1127config SPL_CONSOLE_SCROLL_LINES
1128 int "Number of lines to scroll the console by at SPL"
1129 default 1
1130 help
1131 When the console need to be scrolled, this is the number of
1132 lines to scroll by. It defaults to 1. Increasing this makes the
1133 console jump but can help speed up operation when scrolling
1134 is slow.
1135
1136config SPL_CONSOLE_NORMAL
1137 bool "Support a simple text console at SPL"
1138 default y
1139 help
1140 Support drawing text on the frame buffer console so that it can be
1141 used as a console. Rotation is not supported by this driver (see
1142 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
1143 for the display.
1144
1145config SPL_BACKLIGHT
1146 bool "Enable panel backlight uclass support at SPL"
1147 default y
1148 help
1149 This provides backlight uclass driver that enables basic panel
1150 backlight support.
1151
1152config SPL_PANEL
1153 bool "Enable panel uclass support at SPL"
1154 default y
1155 help
1156 This provides panel uclass driver that enables basic panel support.
1157
1158config SPL_SIMPLE_PANEL
1159 bool "Enable simple panel support at SPL"
1160 depends on SPL_PANEL && SPL_BACKLIGHT && SPL_DM_GPIO
1161 default y
1162 help
1163 This turns on a simple panel driver that enables a compatible
1164 video panel.
1165
1166config SPL_SYS_WHITE_ON_BLACK
1167 bool "Display console as white on a black background at SPL"
1168 help
1169 Normally the display is black on a white background, Enable this
1170 option to invert this, i.e. white on a black background at spl stage.
1171 This can be better in low-light situations or to reduce eye strain in
1172 some cases.
1173
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301174config SPL_VIDEO_REMOVE
1175 bool "Remove video driver after SPL stage"
1176 help
1177 if this option is enabled video driver will be removed at the end of
Bin Menga036d632023-08-03 18:40:08 +08001178 SPL stage, before loading the next stage.
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301179
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301180if SPL_SPLASH_SCREEN
1181
1182config SPL_SPLASH_SCREEN_ALIGN
1183 bool "Allow positioning the splash image anywhere on the display at SPL"
1184 help
1185 If this option is set the splash image can be freely positioned
1186 on the screen only at SPL. Environment variable "splashpos" specifies
1187 the position as "x,y". If a positive number is given it is used as
1188 number of pixel from left/top. If a negative number is given it
1189 is used as number of pixel from right/bottom.
1190
1191config SPL_SPLASH_SOURCE
1192 bool "Control the source of the splash image at SPL"
1193 help
1194 Use the splash_source.c library. This library provides facilities to
1195 declare board specific splash image locations, routines for loading
1196 splash image from supported locations, and a way of controlling the
1197 selected splash location using the "splashsource" environment
1198 variable.
1199
1200 This CONFIG works as follows:
1201
1202 - If splashsource is set to a supported location name as defined by
1203 board code, use that splash location.
1204 - If splashsource is undefined, use the first splash location as
1205 default.
1206 - If splashsource is set to an unsupported value, do not load a splash
1207 screen.
1208
1209 A splash source location can describe either storage with raw data, a
1210 storage formatted with a file system or a FIT image. In case of a
1211 filesystem, the splash screen data is loaded as a file. The name of
1212 the splash screen file can be controlled with the environment variable
1213 "splashfile".
1214
1215 To enable loading the splash image from a FIT image, CONFIG_FIT must
1216 be enabled. The FIT image has to start at the 'offset' field address
1217 in the selected splash location. The name of splash image within the
1218 FIT shall be specified by the environment variable "splashfile".
1219
1220 In case the environment variable "splashfile" is not defined the
1221 default name 'splash.bmp' will be used.
1222
1223endif # SPL_SPLASH_SCREEN
1224
Simon Glasse0e27fe2023-09-14 10:55:42 -06001225config SPL_BMP
1226 bool "Enable bmp image display at SPL"
1227 help
1228 Enable bmp functions to display bmp image and get bmp info in SPL.
1229
1230 BMP is a simple graphics-image file format designed to store bitmap
1231 images. It is primarily used on Windows devices.
1232
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301233config SPL_VIDEO_BMP_GZIP
1234 bool "Gzip compressed BMP image support at SPL"
1235 depends on SPL_SPLASH_SCREEN || SPL_BMP
1236 help
1237 If this option is set, additionally to standard BMP
1238 images, gzipped BMP images can be displayed via the
1239 splashscreen supportat SPL stage.
1240
1241config SPL_VIDEO_LOGO_MAX_SIZE
1242 hex "Maximum size of the bitmap logo in bytes at SPL"
1243 default 0x100000
1244 help
1245 Sets the maximum uncompressed size of the logo. This is needed when
1246 decompressing a BMP file using the gzip algorithm, since it cannot
1247 read the size from the bitmap header.
1248
1249config SPL_VIDEO_BMP_RLE8
1250 bool "Run length encoded BMP image (RLE8) support at SPL"
1251 help
1252 If this option is set, the 8-bit RLE compressed BMP images
1253 is supported.
1254
1255config SPL_BMP_16BPP
1256 bool "16-bit-per-pixel BMP image support at SPL"
1257 help
1258 Support display of bitmaps file with 16-bit-per-pixel
1259
1260config SPL_BMP_24BPP
1261 bool "24-bit-per-pixel BMP image support at SPL"
1262 help
1263 Support display of bitmaps file with 24-bit-per-pixel.
1264
1265config SPL_BMP_32BPP
1266 bool "32-bit-per-pixel BMP image support at SPL"
1267 help
1268 Support display of bitmaps file with 32-bit-per-pixel.
1269
1270config SPL_VIDEO_BPP8
1271 bool "Support 8-bit-per-pixel displays at SPL"
1272 default y
1273 help
1274 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
1275 Enabling this will include code to support this display. Without
1276 this option, such displays will not be supported and console output
1277 will be empty.
1278
1279config SPL_VIDEO_BPP16
1280 bool "Support 16-bit-per-pixel displays at SPL"
1281 default y
1282 help
1283 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
1284 Enabling this will include code to support this display. Without
1285 this option, such displays will not be supported and console output
1286 will be empty.
1287
1288config SPL_VIDEO_BPP32
1289 bool "Support 32-bit-per-pixel displays at SPL"
1290 default y
1291 help
1292 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
1293 Enabling this will include code to support this display. Without
1294 this option, such displays will not be supported and console output
1295 will be empty.
1296
1297config SPL_HIDE_LOGO_VERSION
1298 bool "Hide the version information on the splash screen at SPL"
1299 help
1300 Normally the U-Boot version string is shown on the display when the
1301 splash screen is enabled. This information is not otherwise visible
1302 since video starts up after U-Boot has displayed the initial banner.
1303
1304 Enable this option to hide this information.
1305endif
1306
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001307endmenu