blob: 3c3cebaacd02b847e2817d465123b088edfc70c0 [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
Svyatoslav Ryhelecb12092023-12-23 21:50:31 +0200602config VIDEO_LCD_SHARP_LQ101R1SX01
603 tristate "Sharp LQ101R1SX01 2560x1600 DSI video mode panel"
604 depends on PANEL && BACKLIGHT
605 select VIDEO_MIPI_DSI
606 help
607 Say Y here if you want to enable support for Sharp LQ101R1SX01
608 LCD module found in ASUS Transformer TF701T. The panel has a
609 WQXGA resolution (2560x1600).
610
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200611config VIDEO_LCD_SSD2828
612 bool "SSD2828 bridge chip"
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200613 ---help---
614 Support for the SSD2828 bridge chip, which can take pixel data coming
615 from a parallel LCD interface and translate it on the fly into MIPI DSI
616 interface for driving a MIPI compatible LCD panel. It uses SPI for
617 configuration.
618
619config VIDEO_LCD_SSD2828_TX_CLK
620 int "SSD2828 TX_CLK frequency (in MHz)"
621 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200622 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200623 ---help---
624 The frequency of the crystal, which is clocking SSD2828. It may be
625 anything in the 8MHz-30MHz range and the exact value should be
626 retrieved from the board schematics. Or in the case of Allwinner
627 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200628 FEX files. It can be also set to 0 for selecting PCLK from the
629 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200630
631config VIDEO_LCD_SSD2828_RESET
632 string "RESET pin of SSD2828"
633 depends on VIDEO_LCD_SSD2828
634 default ""
635 ---help---
636 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500637 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200638
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200639config VIDEO_LCD_TDO_TL070WSH30
640 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200641 select VIDEO_MIPI_DSI
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200642 help
643 Say Y here if you want to enable support for TDO TL070WSH30
644 1024x600 DSI video mode panel.
645
Hans de Goedec0482032015-01-20 09:22:26 +0100646config VIDEO_LCD_HITACHI_TX18D42VM
647 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedec0482032015-01-20 09:22:26 +0100648 ---help---
649 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
650 lcd controller which needs to be initialized over SPI, once that is
651 done they work like a regular LVDS panel.
652
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200653config VIDEO_LCD_SPI_CS
654 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100655 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200656 default ""
657 ---help---
658 This is one of the SPI communication pins, involved in setting up a
659 working LCD configuration. The exact role of SPI may differ for
660 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500661 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200662
663config VIDEO_LCD_SPI_SCLK
664 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100665 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200666 default ""
667 ---help---
668 This is one of the SPI communication pins, involved in setting up a
669 working LCD configuration. The exact role of SPI may differ for
670 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500671 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200672
673config VIDEO_LCD_SPI_MOSI
674 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100675 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200676 default ""
677 ---help---
678 This is one of the SPI communication pins, involved in setting up a
679 working LCD configuration. The exact role of SPI may differ for
680 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500681 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200682
683config VIDEO_LCD_SPI_MISO
684 string "SPI MISO pin for LCD related config job (optional)"
685 depends on VIDEO_LCD_SSD2828
686 default ""
687 ---help---
688 This is one of the SPI communication pins, involved in setting up a
689 working LCD configuration. The exact role of SPI may differ for
690 different hardware setups. If wired up, this pin may provide additional
691 useful functionality. Such as bi-directional communication with the
692 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500693 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200694 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600695
Neil Armstrongadd986c2018-07-24 17:45:28 +0200696source "drivers/video/meson/Kconfig"
697
Stefan Roeseab91fd52016-01-20 08:13:28 +0100698config VIDEO_MVEBU
699 bool "Armada XP LCD controller"
Stefan Roeseab91fd52016-01-20 08:13:28 +0100700 ---help---
701 Support for the LCD controller integrated in the Marvell
702 Armada XP SoC.
703
Adam Ford60a59d42018-08-02 08:50:20 -0500704config VIDEO_OMAP3
705 bool "Enable OMAP3+ DSS Support"
706 depends on ARCH_OMAP2PLUS
707 help
708 This enables the Display subsystem (DSS) on OMAP3+ boards.
709
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100710config I2C_EDID
711 bool "Enable EDID library"
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100712 help
713 This enables library for accessing EDID data from an LCD panel.
714
Simon Glass7d3d7762016-01-21 19:45:00 -0700715config DISPLAY
716 bool "Enable Display support"
717 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100718 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600719 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700720 This supports drivers that provide a display, such as eDP (Embedded
721 DisplayPort) and HDMI (High Definition Multimedia Interface).
722 The devices provide a simple interface to start up the display,
723 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600724
Liviu Dudau33967102018-09-28 13:49:31 +0100725config NXP_TDA19988
726 bool "Enable NXP TDA19988 support"
727 depends on DISPLAY
Liviu Dudau33967102018-09-28 13:49:31 +0100728 help
729 This enables support for the NXP TDA19988 HDMI encoder. This encoder
730 will convert RGB data streams into HDMI-encoded signals.
731
Songjun Wu72ac56a2017-04-11 16:33:30 +0800732config ATMEL_HLCD
733 bool "Enable ATMEL video support using HLCDC"
Songjun Wu72ac56a2017-04-11 16:33:30 +0800734 help
735 HLCDC supports video output to an attached LCD panel.
736
Svyatoslav Ryhel3e9488a2023-04-25 10:51:42 +0300737config BACKLIGHT_LM3533
738 bool "Backlight Driver for LM3533"
739 depends on BACKLIGHT
740 select DM_I2C
741 help
742 Say Y to enable the backlight driver for National Semiconductor / TI
743 LM3533 Lighting Power chip. Only Bank A is supported as for now.
744 Supported backlight level range is from 2 to 255 with step of 1.
745
Dario Binacchi260bdb32023-01-28 16:55:31 +0100746source "drivers/video/ti/Kconfig"
747
Tom Rini3eeabf52022-06-10 22:59:34 -0400748source "drivers/video/exynos/Kconfig"
749
Mario Sixc13ee192018-08-09 14:51:23 +0200750config LOGICORE_DP_TX
751 bool "Enable Logicore DP TX driver"
752 depends on DISPLAY
753 help
754 Enable the driver for the transmitter part of the Xilinx LogiCORE
755 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
756 video interface as defined by VESA DisplayPort v1.2.
757
758 Note that this is a pure transmitter device, and has no display
759 capabilities by itself.
760
Simon Glassdec49b72016-03-11 22:07:30 -0700761config VIDEO_BROADWELL_IGD
762 bool "Enable Intel Broadwell integrated graphics device"
763 depends on X86
764 help
Simon Glassa3fdd002016-10-05 20:42:14 -0600765 This enables support for integrated graphics on Intel broadwell
Simon Glassdec49b72016-03-11 22:07:30 -0700766 devices. Initialisation is mostly performed by a VGA boot ROM, with
767 some setup handled by U-Boot itself. The graphics adaptor works as
768 a VESA device and supports LCD panels, eDP and LVDS outputs.
769 Configuration of most aspects of device operation is performed using
770 a special tool which configures the VGA ROM, but the graphics
771 resolution can be selected in U-Boot.
772
Simon Glass03f2a512016-10-05 20:42:15 -0600773config VIDEO_IVYBRIDGE_IGD
774 bool "Enable Intel Ivybridge integration graphics support"
775 depends on X86
776 help
777 This enables support for integrated graphics on Intel ivybridge
778 devices. Initialisation is mostly performed by a VGA boot ROM, with
779 some setup handled by U-Boot itself. The graphics adaptor works as
780 a VESA device and supports LCD panels, eDP and LVDS outputs.
781 Configuration of most aspects of device operation is performed using
782 a special tool which configures the VGA ROM, but the graphics
783 resolution can be selected in U-Boot.
784
eric.gao@rock-chips.com735ddea2017-04-17 22:24:23 +0800785source "drivers/video/rockchip/Kconfig"
Simon Glass0139ae62016-01-21 19:45:03 -0700786
Liviu Dudau8373ed32018-09-28 13:50:53 +0100787config VIDEO_ARM_MALIDP
788 bool "Enable Arm Mali Display Processor support"
Simon Glass557786c2022-10-18 07:35:17 -0600789 depends on OF_CONTROL
Liviu Dudau8373ed32018-09-28 13:50:53 +0100790 select VEXPRESS_CLK
791 help
792 This enables support for Arm Ltd Mali Display Processors from
793 the DP500, DP550 and DP650 family.
794
Simon Glass161eea72016-01-18 19:52:24 -0700795config VIDEO_SANDBOX_SDL
796 bool "Enable sandbox video console using SDL"
Tom Riniea79bb72022-11-19 18:45:43 -0500797 depends on SANDBOX_SDL
Simon Glass161eea72016-01-18 19:52:24 -0700798 help
799 When using sandbox you can enable an emulated LCD display which
800 appears as an SDL (Simple DirectMedia Layer) window. This is a
801 console device and can display stdout output. Within U-Boot is is
802 a normal bitmap display and can display images as well as text.
803
Philippe CORNUdcbad9a2017-08-03 12:36:08 +0200804source "drivers/video/stm32/Kconfig"
805
Nikhil M Jain94272742023-01-31 15:35:17 +0530806source "drivers/video/tidss/Kconfig"
807
Simon Glass3ef2a722015-04-14 21:03:42 -0600808config VIDEO_TEGRA124
809 bool "Enable video support on Tegra124"
810 help
811 Tegra124 supports many video output options including eDP and
812 HDMI. At present only eDP is supported by U-Boot. This option
813 enables this support which can be used on devices which
814 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600815
816source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900817
Svyatoslav Ryheld15683f2023-03-27 11:11:41 +0300818source "drivers/video/tegra20/Kconfig"
819
Anatolij Gustschin411e73d2019-03-18 23:29:32 +0100820source "drivers/video/imx/Kconfig"
Anatolij Gustschin983e2f2a2019-03-18 23:29:31 +0100821
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200822config VIDEO_MXS
823 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200824 help
825 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
826
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200827config VIDEO_NX
828 bool "Enable video support on Nexell SoC"
829 depends on ARCH_S5P6818 || ARCH_S5P4418
830 help
831 Nexell SoC supports many video output options including eDP and
832 HDMI. This option enables this support which can be used on devices
833 which have an eDP display connected.
834
Michal Simek32058b82020-12-03 09:31:35 +0100835config VIDEO_SEPS525
836 bool "Enable video support for Seps525"
Simon Glass557786c2022-10-18 07:35:17 -0600837 depends on DM_GPIO
Michal Simek32058b82020-12-03 09:31:35 +0100838 help
839 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
840 Currently driver is supporting only SPI interface.
841
Venkatesh Yadav Abbarapue3679802023-05-17 10:42:09 +0200842source "drivers/video/zynqmp/Kconfig"
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200843source "drivers/video/nexell/Kconfig"
844
Simon Glassd76f29a2016-10-17 20:12:57 -0600845config CONSOLE_SCROLL_LINES
846 int "Number of lines to scroll the console by"
Simon Glassd76f29a2016-10-17 20:12:57 -0600847 default 1
848 help
849 When the console need to be scrolled, this is the number of
850 lines to scroll by. It defaults to 1. Increasing this makes the
851 console jump but can help speed up operation when scrolling
852 is slow.
853
Philipp Tomsich3a53b3e2017-05-05 21:48:26 +0200854config VIDEO_DW_HDMI
855 bool
856 help
857 Enables the common driver code for the Designware HDMI TX
858 block found in SoCs from various vendors.
859 As this does not provide any functionality by itself (but
860 rather requires a SoC-specific glue driver to call it), it
861 can not be enabled from the configuration menu.
862
Yannick Fertré9712c822019-10-07 15:29:05 +0200863config VIDEO_DSI_HOST_SANDBOX
864 bool "Enable sandbox for dsi host"
865 depends on SANDBOX
866 select VIDEO_MIPI_DSI
867 help
868 Enable support for sandbox dsi host device used for testing
869 purposes.
870 Display Serial Interface (DSI) defines a serial bus and
871 a communication protocol between the host and the device
872 (panel, bridge).
873
Yannick Fertré764af462019-10-07 15:29:06 +0200874config VIDEO_DW_MIPI_DSI
875 bool
876 select VIDEO_MIPI_DSI
877 help
878 Enables the common driver code for the Synopsis Designware
879 MIPI DSI block found in SoCs from various vendors.
880 As this does not provide any functionality by itself (but
881 rather requires a SoC-specific glue driver to call it), it
882 can not be enabled from the configuration menu.
883
Rob Clarkcf7ab0c2017-08-03 12:47:00 -0400884config VIDEO_SIMPLE
885 bool "Simple display driver for preconfigured display"
886 help
887 Enables a simple generic display driver which utilizes the
888 simple-framebuffer devicetree bindings.
889
890 This driver assumes that the display hardware has been initialized
891 before u-boot starts, and u-boot will simply render to the pre-
892 allocated frame buffer surface.
893
Icenowy Zheng60e4b8f2017-10-26 11:14:46 +0800894config VIDEO_DT_SIMPLEFB
895 bool "Enable SimpleFB support for passing framebuffer to OS"
896 help
897 Enables the code to pass the framebuffer to the kernel as a
898 simple framebuffer in the device tree.
899 The video output is initialized by U-Boot, and kept by the
900 kernel.
901
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200902config VIDEO_MCDE_SIMPLE
903 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200904 help
905 Enables a simple display driver for ST-Ericsson MCDE
906 (Multichannel Display Engine), which reads the configuration from
907 the MCDE registers.
908
909 This driver assumes that the display hardware has been initialized
910 before u-boot starts, and u-boot will simply render to the pre-
911 allocated frame buffer surface.
912
Mario Six1b773202018-09-27 09:19:29 +0200913config OSD
914 bool "Enable OSD support"
915 depends on DM
Mario Six1b773202018-09-27 09:19:29 +0200916 help
917 This supports drivers that provide a OSD (on-screen display), which
918 is a (usually text-oriented) graphics buffer to show information on
919 a display.
Mario Six8ea19da2018-09-27 09:19:30 +0200920
Mario Six02ad6fb2018-09-27 09:19:31 +0200921config SANDBOX_OSD
922 bool "Enable sandbox OSD"
923 depends on OSD
924 help
925 Enable support for sandbox OSD device used for testing purposes.
926
Mario Six8ea19da2018-09-27 09:19:30 +0200927config IHS_VIDEO_OUT
928 bool "Enable IHS video out driver"
929 depends on OSD
930 help
931 Enable support for the gdsys Integrated Hardware Systems (IHS) video
932 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
933 textual overlays of the display outputs.
934
Nikhil M Jain085f1dd2023-07-18 14:27:32 +0530935config VIDEO_REMOVE
936 bool "Remove video driver"
937 help
938 Use this option to specify if user wants to call remove method of
939 video driver in u-boot proper stage.
940
Simon Glass2d7a7942020-08-11 11:23:35 -0600941config SPLASH_SCREEN
942 bool "Show a splash-screen image"
943 help
944 If this option is set, the environment is checked for a variable
945 "splashimage". If found, the usual display of logo, copyright and
946 system information on the LCD is suppressed and the BMP image at the
947 address specified in "splashimage" is loaded instead. The console is
948 redirected to the "nulldev", too. This allows for a "silent" boot
949 where a splash screen is loaded very quickly after power-on.
950
951 The splash_screen_prepare() function is a weak function defined in
952 common/splash.c. It is called as part of the splash screen display
953 sequence. It gives the board an opportunity to prepare the splash
954 image data before it is processed and sent to the frame buffer by
955 U-Boot. Define your own version to use this feature.
956
Simon Glass8b883a32022-10-18 06:24:16 -0600957if SPLASH_SCREEN
958
Simon Glass2d7a7942020-08-11 11:23:35 -0600959config SPLASH_SCREEN_ALIGN
960 bool "Allow positioning the splash image anywhere on the display"
Simon Glass2d7a7942020-08-11 11:23:35 -0600961 help
962 If this option is set the splash image can be freely positioned
963 on the screen. Environment variable "splashpos" specifies the
964 position as "x,y". If a positive number is given it is used as
965 number of pixel from left/top. If a negative number is given it
966 is used as number of pixel from right/bottom. You can also
967 specify 'm' for centering the image.
968
969 Example:
970 setenv splashpos m,m
971 => image at center of screen
972
973 setenv splashpos 30,20
974 => image at x = 30 and y = 20
975
976 setenv splashpos -10,m
977 => vertically centered image
978 at x = dspWidth - bmpWidth - 9
979
Simon Glass45c0a7e2022-10-18 06:30:56 -0600980config HIDE_LOGO_VERSION
981 bool "Hide the version information on the splash screen"
982 help
983 Normally the U-Boot version string is shown on the display when the
984 splash screen is enabled. This information is not otherwise visible
985 since video starts up after U-Boot has displayed the initial banner.
986
987 Enable this option to hide this information.
988
Simon Glass2d7a7942020-08-11 11:23:35 -0600989config SPLASH_SOURCE
990 bool "Control the source of the splash image"
Simon Glass2d7a7942020-08-11 11:23:35 -0600991 help
992 Use the splash_source.c library. This library provides facilities to
993 declare board specific splash image locations, routines for loading
994 splash image from supported locations, and a way of controlling the
995 selected splash location using the "splashsource" environment
996 variable.
997
998 This CONFIG works as follows:
999
1000 - If splashsource is set to a supported location name as defined by
1001 board code, use that splash location.
1002 - If splashsource is undefined, use the first splash location as
1003 default.
1004 - If splashsource is set to an unsupported value, do not load a splash
1005 screen.
1006
1007 A splash source location can describe either storage with raw data, a
1008 storage formatted with a file system or a FIT image. In case of a
1009 filesystem, the splash screen data is loaded as a file. The name of
1010 the splash screen file can be controlled with the environment variable
1011 "splashfile".
1012
1013 To enable loading the splash image from a FIT image, CONFIG_FIT must
1014 be enabled. The FIT image has to start at the 'offset' field address
1015 in the selected splash location. The name of splash image within the
1016 FIT shall be specified by the environment variable "splashfile".
1017
1018 In case the environment variable "splashfile" is not defined the
1019 default name 'splash.bmp' will be used.
1020
Simon Glass8b883a32022-10-18 06:24:16 -06001021endif # SPLASH_SCREEN
1022
Simon Glasse0e27fe2023-09-14 10:55:42 -06001023config BMP
1024 bool "Enable bmp image display"
1025 help
1026 Enable bmp functions to display bmp image and get bmp info.
1027
1028 BMP is a simple graphics-image file format designed to store bitmap
1029 images. It is primarily used on Windows devices.
1030
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +02001031config VIDEO_BMP_GZIP
1032 bool "Gzip compressed BMP image support"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301033 depends on BMP || SPLASH_SCREEN
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +02001034 help
1035 If this option is set, additionally to standard BMP
1036 images, gzipped BMP images can be displayed via the
1037 splashscreen support or the bmp command.
1038
Simon Glass858198c2022-10-18 06:46:08 -06001039config VIDEO_LOGO_MAX_SIZE
Simon Glasscda7d0c2022-10-18 06:49:18 -06001040 hex "Maximum size of the bitmap logo in bytes"
1041 default 0x100000
1042 help
1043 Sets the maximum uncompressed size of the logo. This is needed when
1044 decompressing a BMP file using the gzip algorithm, since it cannot
1045 read the size from the bitmap header.
Simon Glass858198c2022-10-18 06:46:08 -06001046
Patrick Delaunayc47fe772020-09-28 11:30:15 +02001047config VIDEO_BMP_RLE8
1048 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayc47fe772020-09-28 11:30:15 +02001049 help
1050 If this option is set, the 8-bit RLE compressed BMP images
1051 is supported.
1052
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001053config BMP_16BPP
1054 bool "16-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001055 help
1056 Support display of bitmaps file with 16-bit-per-pixel
1057
1058config BMP_24BPP
1059 bool "24-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001060 help
1061 Support display of bitmaps file with 24-bit-per-pixel.
1062
1063config BMP_32BPP
1064 bool "32-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001065 help
1066 Support display of bitmaps file with 32-bit-per-pixel.
1067
Simon Glass52cb5042022-10-18 07:46:31 -06001068endif # VIDEO
Simon Glass557786c2022-10-18 07:35:17 -06001069
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301070config SPL_VIDEO
John Keeping0a2daf32023-05-09 12:02:50 +01001071 bool "Enable driver model support for LCD/video in SPL"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301072 depends on SPL_DM
1073 help
1074 The video subsystem adds a small amount of overhead to the image.
1075 If this is acceptable and you have a need to use video drivers in
1076 SPL, enable this option. It might provide a cleaner interface to
1077 setting up video within SPL, and allows the same drivers to be
1078 used as U-Boot proper.
1079
1080if SPL_VIDEO
1081source "drivers/video/tidss/Kconfig"
1082
Simon Glass896409c2023-07-30 11:16:05 -06001083config SPL_VIDEO_HANDOFF
1084 bool "Pass the video frame-buffer through to U-Boot proper"
1085 depends on SPL_BLOBLIST
1086 default y if !X86
1087 help
1088 Enable this to set up video-handoff information in SPL which can be
1089 picked up in U-Boot proper. This includes the frame buffer and
1090 various other pieces of information. With this enabled, SPL can set
1091 up video and avoid re-initing it later.
1092
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301093config SPL_VIDEO_LOGO
1094 bool "Show the U-Boot logo on the display at SPL"
1095 default y if !SPL_SPLASH_SCREEN
1096 select SPL_VIDEO_BMP_RLE8
1097 help
1098 This enables showing the U-Boot logo on the display when a video
1099 device is probed. It appears at the top right. The logo itself is at
1100 tools/logos/u-boot_logo.bmp and looks best when the display has a
1101 black background.
1102
1103config SPL_SPLASH_SCREEN
1104 bool "Show a splash-screen image at SPL"
1105 help
1106 If this option is set, the environment is checked for a variable
1107 "splashimage" at spl stage.
1108
1109config SPL_SYS_WHITE_ON_BLACK
1110 bool "Display console as white on a black background at SPL"
1111 help
1112 Normally the display is black on a white background, Enable this
1113 option to invert this, i.e. white on a black background at spl stage.
1114 This can be better in low-light situations or to reduce eye strain in
1115 some cases.
1116
1117config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
1118 hex "Default framebuffer size to use if no drivers request it at SPL"
Bin Meng88fdb442023-07-23 12:40:30 +08001119 default 0x1000000 if X86
Bin Meng7c509a02023-07-23 12:40:31 +08001120 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinif18679c2023-08-02 11:09:43 -04001121 default 0x0 if !X86 && !VIDEO_BOCHS
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301122 help
1123 Generally, video drivers request the amount of memory they need for
1124 the frame buffer when they are bound, by setting the size field in
1125 struct video_uc_plat. That memory is then reserved for use after
1126 relocation. But PCI drivers cannot be bound before relocation unless
1127 they are mentioned in the devicetree.
1128
1129 With this value set appropriately, it is possible for PCI video
1130 devices to have a framebuffer allocated by U-Boot.
1131
1132 Note: the framebuffer needs to be large enough to store all pixels at
Bin Meng05241702023-07-23 12:40:29 +08001133 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301134 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
1135
1136config SPL_CONSOLE_SCROLL_LINES
1137 int "Number of lines to scroll the console by at SPL"
1138 default 1
1139 help
1140 When the console need to be scrolled, this is the number of
1141 lines to scroll by. It defaults to 1. Increasing this makes the
1142 console jump but can help speed up operation when scrolling
1143 is slow.
1144
1145config SPL_CONSOLE_NORMAL
1146 bool "Support a simple text console at SPL"
1147 default y
1148 help
1149 Support drawing text on the frame buffer console so that it can be
1150 used as a console. Rotation is not supported by this driver (see
1151 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
1152 for the display.
1153
1154config SPL_BACKLIGHT
1155 bool "Enable panel backlight uclass support at SPL"
1156 default y
1157 help
1158 This provides backlight uclass driver that enables basic panel
1159 backlight support.
1160
1161config SPL_PANEL
1162 bool "Enable panel uclass support at SPL"
1163 default y
1164 help
1165 This provides panel uclass driver that enables basic panel support.
1166
1167config SPL_SIMPLE_PANEL
1168 bool "Enable simple panel support at SPL"
1169 depends on SPL_PANEL && SPL_BACKLIGHT && SPL_DM_GPIO
1170 default y
1171 help
1172 This turns on a simple panel driver that enables a compatible
1173 video panel.
1174
1175config SPL_SYS_WHITE_ON_BLACK
1176 bool "Display console as white on a black background at SPL"
1177 help
1178 Normally the display is black on a white background, Enable this
1179 option to invert this, i.e. white on a black background at spl stage.
1180 This can be better in low-light situations or to reduce eye strain in
1181 some cases.
1182
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301183config SPL_VIDEO_REMOVE
1184 bool "Remove video driver after SPL stage"
1185 help
1186 if this option is enabled video driver will be removed at the end of
Bin Menga036d632023-08-03 18:40:08 +08001187 SPL stage, before loading the next stage.
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301188
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301189if SPL_SPLASH_SCREEN
1190
1191config SPL_SPLASH_SCREEN_ALIGN
1192 bool "Allow positioning the splash image anywhere on the display at SPL"
1193 help
1194 If this option is set the splash image can be freely positioned
1195 on the screen only at SPL. Environment variable "splashpos" specifies
1196 the position as "x,y". If a positive number is given it is used as
1197 number of pixel from left/top. If a negative number is given it
1198 is used as number of pixel from right/bottom.
1199
1200config SPL_SPLASH_SOURCE
1201 bool "Control the source of the splash image at SPL"
1202 help
1203 Use the splash_source.c library. This library provides facilities to
1204 declare board specific splash image locations, routines for loading
1205 splash image from supported locations, and a way of controlling the
1206 selected splash location using the "splashsource" environment
1207 variable.
1208
1209 This CONFIG works as follows:
1210
1211 - If splashsource is set to a supported location name as defined by
1212 board code, use that splash location.
1213 - If splashsource is undefined, use the first splash location as
1214 default.
1215 - If splashsource is set to an unsupported value, do not load a splash
1216 screen.
1217
1218 A splash source location can describe either storage with raw data, a
1219 storage formatted with a file system or a FIT image. In case of a
1220 filesystem, the splash screen data is loaded as a file. The name of
1221 the splash screen file can be controlled with the environment variable
1222 "splashfile".
1223
1224 To enable loading the splash image from a FIT image, CONFIG_FIT must
1225 be enabled. The FIT image has to start at the 'offset' field address
1226 in the selected splash location. The name of splash image within the
1227 FIT shall be specified by the environment variable "splashfile".
1228
1229 In case the environment variable "splashfile" is not defined the
1230 default name 'splash.bmp' will be used.
1231
1232endif # SPL_SPLASH_SCREEN
1233
Simon Glasse0e27fe2023-09-14 10:55:42 -06001234config SPL_BMP
1235 bool "Enable bmp image display at SPL"
1236 help
1237 Enable bmp functions to display bmp image and get bmp info in SPL.
1238
1239 BMP is a simple graphics-image file format designed to store bitmap
1240 images. It is primarily used on Windows devices.
1241
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301242config SPL_VIDEO_BMP_GZIP
1243 bool "Gzip compressed BMP image support at SPL"
1244 depends on SPL_SPLASH_SCREEN || SPL_BMP
1245 help
1246 If this option is set, additionally to standard BMP
1247 images, gzipped BMP images can be displayed via the
1248 splashscreen supportat SPL stage.
1249
1250config SPL_VIDEO_LOGO_MAX_SIZE
1251 hex "Maximum size of the bitmap logo in bytes at SPL"
1252 default 0x100000
1253 help
1254 Sets the maximum uncompressed size of the logo. This is needed when
1255 decompressing a BMP file using the gzip algorithm, since it cannot
1256 read the size from the bitmap header.
1257
1258config SPL_VIDEO_BMP_RLE8
1259 bool "Run length encoded BMP image (RLE8) support at SPL"
1260 help
1261 If this option is set, the 8-bit RLE compressed BMP images
1262 is supported.
1263
1264config SPL_BMP_16BPP
1265 bool "16-bit-per-pixel BMP image support at SPL"
1266 help
1267 Support display of bitmaps file with 16-bit-per-pixel
1268
1269config SPL_BMP_24BPP
1270 bool "24-bit-per-pixel BMP image support at SPL"
1271 help
1272 Support display of bitmaps file with 24-bit-per-pixel.
1273
1274config SPL_BMP_32BPP
1275 bool "32-bit-per-pixel BMP image support at SPL"
1276 help
1277 Support display of bitmaps file with 32-bit-per-pixel.
1278
1279config SPL_VIDEO_BPP8
1280 bool "Support 8-bit-per-pixel displays at SPL"
1281 default y
1282 help
1283 Support drawing text and bitmaps onto a 8-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_BPP16
1289 bool "Support 16-bit-per-pixel displays at SPL"
1290 default y
1291 help
1292 Support drawing text and bitmaps onto a 16-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_VIDEO_BPP32
1298 bool "Support 32-bit-per-pixel displays at SPL"
1299 default y
1300 help
1301 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
1302 Enabling this will include code to support this display. Without
1303 this option, such displays will not be supported and console output
1304 will be empty.
1305
1306config SPL_HIDE_LOGO_VERSION
1307 bool "Hide the version information on the splash screen at SPL"
1308 help
1309 Normally the U-Boot version string is shown on the display when the
1310 splash screen is enabled. This information is not otherwise visible
1311 since video starts up after U-Boot has displayed the initial banner.
1312
1313 Enable this option to hide this information.
1314endif
1315
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001316endmenu