blob: 742ea6edee6672061801d3dde48f5ae466449968 [file] [log] [blame]
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glassb86986c2022-10-18 07:46:31 -06007config VIDEO
Simon Glass1acafc72016-01-18 19:52:15 -07008 bool "Enable driver model support for LCD/video"
9 depends on DM
10 help
11 This enables driver model for LCD and video devices. These support
12 a bitmap display of various sizes and depths which can be drawn on
13 to display a command-line console or splash screen. Enabling this
14 option compiles in the video uclass and routes all LCD/video access
15 through this.
16
Simon Glassb86986c2022-10-18 07:46:31 -060017if VIDEO
Simon Glassfeda1932022-10-18 07:35:17 -060018
Dzmitry Sankouski39c1fa22023-03-07 13:21:14 +030019config VIDEO_FONT_4X6
20 bool "4 x 6 font size"
21 help
22 Font for video console driver, 4 x 6 pixels.
23 Provides character bitmap data in header file.
24 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
25
26config VIDEO_FONT_8X16
27 bool "8 x 16 font size"
28 default y
29 help
30 Font for video console driver, 8 x 16 pixels
31 Provides character bitmap data in header file.
32 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
33
Dzmitry Sankouskie24db862023-02-27 20:37:07 +030034config VIDEO_FONT_SUN12X22
35 bool "12 x 22 font size"
36 help
37 Font for video console driver, 12 x 22 pixels
38 Provides character bitmap data in header file.
39 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
40
Dzmitry Sankouski0d6c0892023-02-27 20:37:08 +030041config VIDEO_FONT_16X32
42 bool "16 x 32 font size"
43 help
44 Font for video console driver, 16 x 32 pixels
45 Provides character bitmap data in header file.
46 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
47
Simon Glass64cfeda2021-11-19 13:24:01 -070048config VIDEO_LOGO
49 bool "Show the U-Boot logo on the display"
Simon Glass7a8555d2021-11-19 13:24:04 -070050 default y if !SPLASH_SCREEN
Simon Glass84e63ab2021-11-19 13:24:03 -070051 select VIDEO_BMP_RLE8
Simon Glass64cfeda2021-11-19 13:24:01 -070052 help
53 This enables showing the U-Boot logo on the display when a video
54 device is probed. It appears at the top right. The logo itself is at
55 tools/logos/u-boot_logo.bmp and looks best when the display has a
56 black background.
57
Anatolij Gustschine26e5202020-05-26 00:20:49 +020058config BACKLIGHT
59 bool "Enable panel backlight uclass support"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020060 default y
61 help
62 This provides backlight uclass driver that enables basic panel
63 backlight support.
64
Simon Glass551ca0e2020-07-02 21:12:33 -060065config VIDEO_PCI_DEFAULT_FB_SIZE
66 hex "Default framebuffer size to use if no drivers request it"
Bin Meng185ae842023-07-23 12:40:30 +080067 default 0x1000000 if X86
Bin Mengf91f0e72023-07-23 12:40:31 +080068 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinia077ac12023-08-02 11:09:43 -040069 default 0x0 if !X86 && !VIDEO_BOCHS
Simon Glass551ca0e2020-07-02 21:12:33 -060070 help
71 Generally, video drivers request the amount of memory they need for
72 the frame buffer when they are bound, by setting the size field in
Dario Binacchi196947b2021-01-23 19:43:52 +010073 struct video_uc_plat. That memory is then reserved for use after
Simon Glass551ca0e2020-07-02 21:12:33 -060074 relocation. But PCI drivers cannot be bound before relocation unless
75 they are mentioned in the devicetree.
76
77 With this value set appropriately, it is possible for PCI video
78 devices to have a framebuffer allocated by U-Boot.
79
80 Note: the framebuffer needs to be large enough to store all pixels at
Bin Meng17cd8022023-07-23 12:40:29 +080081 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Simon Glass551ca0e2020-07-02 21:12:33 -060082 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
83
Simon Glass9beac5d2020-07-02 21:12:20 -060084config VIDEO_COPY
85 bool "Enable copying the frame buffer to a hardware copy"
Simon Glass9beac5d2020-07-02 21:12:20 -060086 help
87 On some machines (e.g. x86), reading from the frame buffer is very
88 slow because it is uncached. To improve performance, this feature
89 allows the frame buffer to be kept in cached memory (allocated by
90 U-Boot) and then copied to the hardware frame-buffer as needed.
91
92 To use this, your video driver must set @copy_base in
Dario Binacchi196947b2021-01-23 19:43:52 +010093 struct video_uc_plat.
Simon Glass9beac5d2020-07-02 21:12:20 -060094
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020095config BACKLIGHT_PWM
96 bool "Generic PWM based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020097 depends on BACKLIGHT && DM_PWM
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020098 default y
99 help
100 If you have a LCD backlight adjustable by PWM, say Y to enable
101 this driver.
102 This driver can be use with "simple-panel" and
103 it understands the standard device tree
104 (leds/backlight/pwm-backlight.txt)
105
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +0200106config BACKLIGHT_GPIO
107 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200108 depends on BACKLIGHT
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +0200109 help
110 If you have a LCD backlight adjustable by GPIO, say Y to enable
111 this driver.
112 This driver can be used with "simple-panel" and
113 it understands the standard device tree
114 (leds/backlight/gpio-backlight.txt)
115
Simon Glass1acafc72016-01-18 19:52:15 -0700116config VIDEO_BPP8
117 bool "Support 8-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100118 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700119 help
120 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
121 Enabling this will include code to support this display. Without
122 this option, such displays will not be supported and console output
123 will be empty.
124
125config VIDEO_BPP16
126 bool "Support 16-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100127 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700128 help
129 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
130 Enabling this will include code to support this display. Without
131 this option, such displays will not be supported and console output
132 will be empty.
133
134config VIDEO_BPP32
135 bool "Support 32-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100136 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700137 help
138 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
139 Enabling this will include code to support this display. Without
140 this option, such displays will not be supported and console output
141 will be empty.
142
Rob Clarka085aa12017-09-13 18:12:21 -0400143config VIDEO_ANSI
144 bool "Support ANSI escape sequences in video console"
Simon Glass72a0dd82023-01-06 08:52:29 -0600145 default y if EFI_LOADER
Rob Clarka085aa12017-09-13 18:12:21 -0400146 help
147 Enable ANSI escape sequence decoding for a more fully functional
Simon Glass72a0dd82023-01-06 08:52:29 -0600148 console. Functionality includes changing the text colour and moving
149 the cursor. These date from the 1970s and are still widely used today
150 to control a text terminal. U-Boot implements these by decoding the
151 sequences and performing the appropriate operation.
Rob Clarka085aa12017-09-13 18:12:21 -0400152
Yannick Fertré66c37242019-10-07 15:29:04 +0200153config VIDEO_MIPI_DSI
154 bool "Support MIPI DSI interface"
Yannick Fertré66c37242019-10-07 15:29:04 +0200155 help
156 Support MIPI DSI interface for driving a MIPI compatible device.
157 The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
158 serial interface between a host processor and a display module.
159
Simon Glass6e42e252016-01-22 21:53:37 +0100160config CONSOLE_NORMAL
161 bool "Support a simple text console"
Simon Glassfeda1932022-10-18 07:35:17 -0600162 default y
Simon Glass6e42e252016-01-22 21:53:37 +0100163 help
164 Support drawing text on the frame buffer console so that it can be
165 used as a console. Rotation is not supported by this driver (see
166 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
167 for the display.
168
169config CONSOLE_ROTATION
Simon Glassb5146b22016-01-18 19:52:19 -0700170 bool "Support rotated displays"
Simon Glassb5146b22016-01-18 19:52:19 -0700171 help
172 Sometimes, for example if the display is mounted in portrait
173 mode or even if it's mounted landscape but rotated by 180degree,
174 we need to rotate our content of the display relative to the
175 framebuffer, so that user can read the messages which are
176 printed out. Enable this option to include a text driver which can
177 support this. The rotation is set by the 'rot' parameter in
178 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
179 degrees, 3=270 degrees.
180
Simon Glassa29b0122016-01-14 18:10:42 -0700181config CONSOLE_TRUETYPE
182 bool "Support a console that uses TrueType fonts"
Simon Glass5716be52024-01-04 08:10:39 -0700183 select X86_HARDFP if X86
Simon Glassa29b0122016-01-14 18:10:42 -0700184 help
185 TrueTrype fonts can provide outline-drawing capability rather than
186 needing to provide a bitmap for each font and size that is needed.
187 With this option you can adjust the text size and use a variety of
188 fonts. Note that this is noticeably slower than with normal console.
189
190config CONSOLE_TRUETYPE_SIZE
191 int "TrueType font size"
192 depends on CONSOLE_TRUETYPE
193 default 18
194 help
195 This sets the font size for the console. The size is measured in
196 pixels and is the nominal height of a character. Note that fonts
197 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
198 However that measurement depends on the size of your display and
199 there is no standard display density. At present there is not a
200 method to select the display's physical size, which would allow
201 U-Boot to calculate the correct font size.
202
Simon Glass31efa252022-10-06 08:36:11 -0600203config CONSOLE_TRUETYPE_MAX_METRICS
204 int "TrueType maximum number of font / size combinations"
205 depends on CONSOLE_TRUETYPE
206 default 10 if EXPO
207 default 1
208 help
209 This sets the number of font / size combinations which can be used by
210 the console. For simple console use a single font is enough. When
211 boot menus are in use, this may need to be increased.
212
213 Note that a separate entry is needed for each font size, even if the
214 font itself is the same. This is because the entry caches various
215 font metrics which are expensive to regenerate each time the font
216 size changes.
217
Simon Glass983b1032017-04-26 22:27:57 -0600218config SYS_WHITE_ON_BLACK
219 bool "Display console as white on a black background"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400220 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glass983b1032017-04-26 22:27:57 -0600221 help
222 Normally the display is black on a white background, Enable this
223 option to invert this, i.e. white on a black background. This can be
224 better in low-light situations or to reduce eye strain in some
225 cases.
226
Rob Clark8ef05352017-08-03 12:47:01 -0400227config NO_FB_CLEAR
228 bool "Skip framebuffer clear"
229 help
230 If firmware (whatever loads u-boot) has already put a splash image
231 on screen, you might want to preserve it until whatever u-boot
232 loads takes over the screen. This, for example, can be used to
233 keep splash image on screen until grub graphical boot menu starts.
234
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200235config PANEL
236 bool "Enable panel uclass support"
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200237 default y
238 help
239 This provides panel uclass driver that enables basic panel support.
240
241config SIMPLE_PANEL
242 bool "Enable simple panel support"
Asherah Connor1bed5762021-03-03 14:46:47 +1100243 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200244 default y
245 help
246 This turns on a simple panel driver that enables a compatible
247 video panel.
248
Simon Glass820b5892022-10-06 08:36:07 -0600249config PANEL_HX8238D
250 bool "Enable Himax HX-8238D LCD driver"
251 depends on PANEL
252 help
253 Support for HX-8238D LCD Panel
254 The HX8238-D is a single chip controller and driver LSI that
255 integrates the power circuit.
256 It can drive a maximum 960x240 dot graphics on a-TFT panel
257 displays in 16M colors with dithering.
258
Simon Glassa29b0122016-01-14 18:10:42 -0700259source "drivers/video/fonts/Kconfig"
260
Simon Glassa2931b32016-02-06 14:31:37 -0700261config VIDCONSOLE_AS_LCD
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200262 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200263 help
264 This is a work-around for boards which have 'lcd' or 'vga' in their
265 stdout environment variable, but have moved to use driver model for
266 video. In this case the console will no-longer work. While it is
267 possible to update the environment, the breakage may be confusing for
268 users. This option will be removed around the end of 2020.
269
270config VIDCONSOLE_AS_NAME
271 string "Use 'vidconsole' when string defined here is seen in stdout"
272 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200273 default "lcd" if LCD || TEGRA_COMMON
274 default "vga" if !LCD
Simon Glassa2931b32016-02-06 14:31:37 -0700275 help
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200276 This is a work-around for boards which have 'lcd' or 'vga' in their
277 stdout environment variable, but have moved to use driver model for
278 video. In this case the console will no-longer work. While it is
279 possible to update the environment, the breakage may be confusing for
280 users. This option will be removed around the end of 2020.
Simon Glassa2931b32016-02-06 14:31:37 -0700281
Simon Glasse2d934b2023-07-15 21:39:18 -0600282config VIDEO_BOCHS
283 bool "Enable Bochs video emulation for QEMU"
Simon Glasse2d934b2023-07-15 21:39:18 -0600284 help
285 Enable this to use the Bochs video support provided in the QEMU
286 emulator. This appears as a PCI device which U-Boot can set up to
287 provide a frame buffer.
288
289if VIDEO_BOCHS
290
291config VIDEO_BOCHS_SIZE_X
292 int "Width of display (X resolution)"
293 default 1280
294 help
295 Sets the width of the display.
296
297 These two options control the size of the display set up by QEMU.
298 Typical sizes are 1024 x 768 or 1280 x 1024.
299
300config VIDEO_BOCHS_SIZE_Y
301 int "High of display (Y resolution)"
302 default 1024
303 help
304 Sets the height of the display.
305
306 These two options control the size of the display set up by QEMU.
307 Typical sizes are 1024 x 768 or 1280 x 1024.
308
309endif
310
Bin Meng13b2bfc2016-10-09 04:14:16 -0700311config VIDEO_COREBOOT
312 bool "Enable coreboot framebuffer driver support"
Simon Glass19987c92021-03-15 18:00:27 +1300313 depends on X86
Bin Meng13b2bfc2016-10-09 04:14:16 -0700314 help
315 Turn on this option to enable a framebuffer driver when U-Boot is
316 loaded by coreboot where the graphics device is configured by
317 coreboot already. This can in principle be used with any platform
318 that coreboot supports.
319
Bin Meng4a08c742018-06-12 08:36:22 -0700320config VIDEO_EFI
321 bool "Enable EFI framebuffer driver support"
Simon Glass1834c082021-11-03 21:09:10 -0600322 depends on EFI_STUB || EFI_APP
Bin Meng4a08c742018-06-12 08:36:22 -0700323 help
324 Turn on this option to enable a framebuffeer driver when U-Boot is
325 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
326 the graphics device is configured by the EFI BIOS already. This can
327 in principle be used with any platform that has an EFI BIOS.
328
Simon Glass6b1ba982014-12-29 19:32:28 -0700329config VIDEO_VESA
330 bool "Enable VESA video driver support"
Simon Glass6b1ba982014-12-29 19:32:28 -0700331 help
332 Turn on this option to enable a very simple driver which uses vesa
333 to discover the video mode and then provides a frame buffer for use
334 by U-Boot. This can in principle be used with any platform that
335 supports PCI and video cards that support VESA BIOS Extension (VBE).
336
Bin Meng6bde2dc2015-05-11 07:36:29 +0800337config FRAMEBUFFER_SET_VESA_MODE
338 bool "Set framebuffer graphics resolution"
Simon Glass97cb0922016-03-11 22:07:30 -0700339 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng6bde2dc2015-05-11 07:36:29 +0800340 help
341 Set VESA/native framebuffer mode (needed for bootsplash and graphical
342 framebuffer console)
343
344choice
345 prompt "framebuffer graphics resolution"
Bin Meng17b07d72018-04-11 22:02:16 -0700346 default FRAMEBUFFER_VESA_MODE_118
Bin Meng6bde2dc2015-05-11 07:36:29 +0800347 depends on FRAMEBUFFER_SET_VESA_MODE
348 help
349 This option sets the resolution used for the U-Boot framebuffer (and
350 bootsplash screen).
351
352config FRAMEBUFFER_VESA_MODE_100
353 bool "640x400 256-color"
354
355config FRAMEBUFFER_VESA_MODE_101
356 bool "640x480 256-color"
357
358config FRAMEBUFFER_VESA_MODE_102
359 bool "800x600 16-color"
360
361config FRAMEBUFFER_VESA_MODE_103
362 bool "800x600 256-color"
363
364config FRAMEBUFFER_VESA_MODE_104
365 bool "1024x768 16-color"
366
367config FRAMEBUFFER_VESA_MODE_105
Bin Meng57dccb52015-08-09 23:26:59 -0700368 bool "1024x768 256-color"
Bin Meng6bde2dc2015-05-11 07:36:29 +0800369
370config FRAMEBUFFER_VESA_MODE_106
371 bool "1280x1024 16-color"
372
373config FRAMEBUFFER_VESA_MODE_107
374 bool "1280x1024 256-color"
375
376config FRAMEBUFFER_VESA_MODE_108
377 bool "80x60 text"
378
379config FRAMEBUFFER_VESA_MODE_109
380 bool "132x25 text"
381
382config FRAMEBUFFER_VESA_MODE_10A
383 bool "132x43 text"
384
385config FRAMEBUFFER_VESA_MODE_10B
386 bool "132x50 text"
387
388config FRAMEBUFFER_VESA_MODE_10C
389 bool "132x60 text"
390
391config FRAMEBUFFER_VESA_MODE_10D
392 bool "320x200 32k-color (1:5:5:5)"
393
394config FRAMEBUFFER_VESA_MODE_10E
395 bool "320x200 64k-color (5:6:5)"
396
397config FRAMEBUFFER_VESA_MODE_10F
398 bool "320x200 16.8M-color (8:8:8)"
399
400config FRAMEBUFFER_VESA_MODE_110
401 bool "640x480 32k-color (1:5:5:5)"
402
403config FRAMEBUFFER_VESA_MODE_111
404 bool "640x480 64k-color (5:6:5)"
405
406config FRAMEBUFFER_VESA_MODE_112
407 bool "640x480 16.8M-color (8:8:8)"
408
409config FRAMEBUFFER_VESA_MODE_113
410 bool "800x600 32k-color (1:5:5:5)"
411
412config FRAMEBUFFER_VESA_MODE_114
413 bool "800x600 64k-color (5:6:5)"
414
415config FRAMEBUFFER_VESA_MODE_115
416 bool "800x600 16.8M-color (8:8:8)"
417
418config FRAMEBUFFER_VESA_MODE_116
419 bool "1024x768 32k-color (1:5:5:5)"
420
421config FRAMEBUFFER_VESA_MODE_117
422 bool "1024x768 64k-color (5:6:5)"
423
424config FRAMEBUFFER_VESA_MODE_118
425 bool "1024x768 16.8M-color (8:8:8)"
426
427config FRAMEBUFFER_VESA_MODE_119
428 bool "1280x1024 32k-color (1:5:5:5)"
429
430config FRAMEBUFFER_VESA_MODE_11A
431 bool "1280x1024 64k-color (5:6:5)"
432
433config FRAMEBUFFER_VESA_MODE_11B
434 bool "1280x1024 16.8M-color (8:8:8)"
435
436config FRAMEBUFFER_VESA_MODE_USER
437 bool "Manually select VESA mode"
438
439endchoice
440
441# Map the config names to an integer (KB).
442config FRAMEBUFFER_VESA_MODE
443 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
444 hex
445 default 0x100 if FRAMEBUFFER_VESA_MODE_100
446 default 0x101 if FRAMEBUFFER_VESA_MODE_101
447 default 0x102 if FRAMEBUFFER_VESA_MODE_102
448 default 0x103 if FRAMEBUFFER_VESA_MODE_103
449 default 0x104 if FRAMEBUFFER_VESA_MODE_104
450 default 0x105 if FRAMEBUFFER_VESA_MODE_105
451 default 0x106 if FRAMEBUFFER_VESA_MODE_106
452 default 0x107 if FRAMEBUFFER_VESA_MODE_107
453 default 0x108 if FRAMEBUFFER_VESA_MODE_108
454 default 0x109 if FRAMEBUFFER_VESA_MODE_109
455 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
456 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
457 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
458 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
459 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
460 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
461 default 0x110 if FRAMEBUFFER_VESA_MODE_110
462 default 0x111 if FRAMEBUFFER_VESA_MODE_111
463 default 0x112 if FRAMEBUFFER_VESA_MODE_112
464 default 0x113 if FRAMEBUFFER_VESA_MODE_113
465 default 0x114 if FRAMEBUFFER_VESA_MODE_114
466 default 0x115 if FRAMEBUFFER_VESA_MODE_115
467 default 0x116 if FRAMEBUFFER_VESA_MODE_116
468 default 0x117 if FRAMEBUFFER_VESA_MODE_117
469 default 0x118 if FRAMEBUFFER_VESA_MODE_118
470 default 0x119 if FRAMEBUFFER_VESA_MODE_119
471 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
472 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
473 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
474
Hans de Goede66525bb2015-08-08 16:03:29 +0200475config VIDEO_LCD_ANX9804
476 bool "ANX9804 bridge chip"
Hans de Goede66525bb2015-08-08 16:03:29 +0200477 ---help---
478 Support for the ANX9804 bridge chip, which can take pixel data coming
479 from a parallel LCD interface and translate it on the fy into a DP
480 interface for driving eDP TFT displays. It uses I2C for configuration.
481
Tom Rini286c4532022-03-18 08:38:28 -0400482config ATMEL_LCD
483 bool "Atmel LCD panel support"
Simon Glassfeda1932022-10-18 07:35:17 -0600484 depends on ARCH_AT91
Tom Rini286c4532022-03-18 08:38:28 -0400485
486config ATMEL_LCD_BGR555
487 bool "Display in BGR555 mode"
488 help
489 Use the BGR555 output mode. Otherwise RGB565 is used.
490
Simon Glass2cbc1c02022-01-23 07:04:14 -0700491config VIDEO_BCM2835
492 bool "Display support for BCM2835"
493 help
494 The graphics processor already sets up the display so this driver
495 simply checks the resolution and then sets up the frame buffer with
496 that same resolution (or as near as possible) and 32bpp depth, so
497 that U-Boot can access it with full colour depth.
498
Svyatoslav Ryheldef72d52023-04-25 10:51:47 +0300499config VIDEO_LCD_ENDEAVORU
500 tristate "Endeavoru 720x1280 DSI video mode panel"
501 depends on PANEL && BACKLIGHT
502 select VIDEO_MIPI_DSI
503 help
504 Say Y here if you want to enable support for the IPS-LCD panel
505 module for HTC One X. Driver supports a family of panels,
506 made at least by 3 vendors (Sharp, Sony and AUO), but set up
507 using the same DSI command sequence. The panel has a 720x1280
508 resolution and uses 24 bit RGB per pixel.
509
Ondrej Jirman6a0b8882023-05-25 14:34:35 +0200510config VIDEO_LCD_HIMAX_HX8394
511 bool "Himax HX8394 DSI LCD panel support"
512 depends on PANEL && BACKLIGHT
513 select VIDEO_MIPI_DSI
514 help
515 Say Y here if you want to enable support for Himax HX8394
516 dsi 4dl panel.
517
Yannick Fertré78157b22019-10-07 15:29:08 +0200518config VIDEO_LCD_ORISETECH_OTM8009A
519 bool "OTM8009A DSI LCD panel support"
Yannick Fertré78157b22019-10-07 15:29:08 +0200520 select VIDEO_MIPI_DSI
Yannick Fertré78157b22019-10-07 15:29:08 +0200521 help
522 Say Y here if you want to enable support for Orise Technology
523 otm8009a 480x800 dsi 2dl panel.
524
Svyatoslav Ryhel3cb31742024-01-31 08:57:15 +0200525config VIDEO_LCD_LG_LD070WX3
526 bool "LD070WX3 DSI LCD panel support"
527 depends on PANEL && BACKLIGHT
528 select VIDEO_MIPI_DSI
529 help
530 Say Y here if you want to enable support for LG LD070WX3
531 800x1280 DSI video mode panel.
532
Yannick Fertré06ef1312019-10-07 15:29:09 +0200533config VIDEO_LCD_RAYDIUM_RM68200
534 bool "RM68200 DSI LCD panel support"
Yannick Fertré06ef1312019-10-07 15:29:09 +0200535 select VIDEO_MIPI_DSI
Yannick Fertré06ef1312019-10-07 15:29:09 +0200536 help
537 Say Y here if you want to enable support for Raydium RM68200
538 720x1280 DSI video mode panel.
539
Svyatoslav Ryheldcee4782023-04-25 10:51:44 +0300540config VIDEO_LCD_RENESAS_R61307
541 tristate "Renesas R61307 DSI video mode panel"
542 depends on PANEL && BACKLIGHT
543 select VIDEO_MIPI_DSI
544 help
545 Say Y here if you want to enable support for KOE tx13d100vm0eaa
546 IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
547 resolution and uses 24 bit RGB per pixel.
548
Svyatoslav Ryhel6d9b3a72023-04-25 10:51:45 +0300549config VIDEO_LCD_RENESAS_R69328
550 tristate "Renesas R69328 720x1280 DSI video mode panel"
551 depends on PANEL && BACKLIGHT
552 select VIDEO_MIPI_DSI
553 help
554 Say Y here if you want to enable support for JDI dx12d100vm0eaa
555 IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
556 resolution and uses 24 bit RGB per pixel.
557
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200558config VIDEO_LCD_SSD2828
559 bool "SSD2828 bridge chip"
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200560 ---help---
561 Support for the SSD2828 bridge chip, which can take pixel data coming
562 from a parallel LCD interface and translate it on the fly into MIPI DSI
563 interface for driving a MIPI compatible LCD panel. It uses SPI for
564 configuration.
565
566config VIDEO_LCD_SSD2828_TX_CLK
567 int "SSD2828 TX_CLK frequency (in MHz)"
568 depends on VIDEO_LCD_SSD2828
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200569 default 0
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200570 ---help---
571 The frequency of the crystal, which is clocking SSD2828. It may be
572 anything in the 8MHz-30MHz range and the exact value should be
573 retrieved from the board schematics. Or in the case of Allwinner
574 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200575 FEX files. It can be also set to 0 for selecting PCLK from the
576 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200577
578config VIDEO_LCD_SSD2828_RESET
579 string "RESET pin of SSD2828"
580 depends on VIDEO_LCD_SSD2828
581 default ""
582 ---help---
583 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500584 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200585
Neil Armstrongc823f242020-09-29 11:53:53 +0200586config VIDEO_LCD_TDO_TL070WSH30
587 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrongc823f242020-09-29 11:53:53 +0200588 select VIDEO_MIPI_DSI
Neil Armstrongc823f242020-09-29 11:53:53 +0200589 help
590 Say Y here if you want to enable support for TDO TL070WSH30
591 1024x600 DSI video mode panel.
592
Hans de Goedea5464f22015-01-20 09:22:26 +0100593config VIDEO_LCD_HITACHI_TX18D42VM
594 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedea5464f22015-01-20 09:22:26 +0100595 ---help---
596 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
597 lcd controller which needs to be initialized over SPI, once that is
598 done they work like a regular LVDS panel.
599
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200600config VIDEO_LCD_SPI_CS
601 string "SPI CS pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100602 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200603 default ""
604 ---help---
605 This is one of the SPI communication pins, involved in setting up a
606 working LCD configuration. The exact role of SPI may differ for
607 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500608 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200609
610config VIDEO_LCD_SPI_SCLK
611 string "SPI SCLK pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100612 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200613 default ""
614 ---help---
615 This is one of the SPI communication pins, involved in setting up a
616 working LCD configuration. The exact role of SPI may differ for
617 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500618 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200619
620config VIDEO_LCD_SPI_MOSI
621 string "SPI MOSI pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100622 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200623 default ""
624 ---help---
625 This is one of the SPI communication pins, involved in setting up a
626 working LCD configuration. The exact role of SPI may differ for
627 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500628 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200629
630config VIDEO_LCD_SPI_MISO
631 string "SPI MISO pin for LCD related config job (optional)"
632 depends on VIDEO_LCD_SSD2828
633 default ""
634 ---help---
635 This is one of the SPI communication pins, involved in setting up a
636 working LCD configuration. The exact role of SPI may differ for
637 different hardware setups. If wired up, this pin may provide additional
638 useful functionality. Such as bi-directional communication with the
639 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Holland4d9958b2021-09-11 16:50:48 -0500640 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200641 function, e.g. PH1 for pin 1 of port H.
Simon Glass51f2c992015-04-14 21:03:38 -0600642
Neil Armstrong3bed4222018-07-24 17:45:28 +0200643source "drivers/video/meson/Kconfig"
644
Stefan Roese913d1be2016-01-20 08:13:28 +0100645config VIDEO_MVEBU
646 bool "Armada XP LCD controller"
Stefan Roese913d1be2016-01-20 08:13:28 +0100647 ---help---
648 Support for the LCD controller integrated in the Marvell
649 Armada XP SoC.
650
Adam Ford244eaea2018-08-02 08:50:20 -0500651config VIDEO_OMAP3
652 bool "Enable OMAP3+ DSS Support"
653 depends on ARCH_OMAP2PLUS
654 help
655 This enables the Display subsystem (DSS) on OMAP3+ boards.
656
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100657config I2C_EDID
658 bool "Enable EDID library"
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100659 help
660 This enables library for accessing EDID data from an LCD panel.
661
Simon Glass2dcf1432016-01-21 19:45:00 -0700662config DISPLAY
663 bool "Enable Display support"
664 depends on DM
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100665 select I2C_EDID
Simon Glass51f2c992015-04-14 21:03:38 -0600666 help
Simon Glass2dcf1432016-01-21 19:45:00 -0700667 This supports drivers that provide a display, such as eDP (Embedded
668 DisplayPort) and HDMI (High Definition Multimedia Interface).
669 The devices provide a simple interface to start up the display,
670 read display information and enable it.
Simon Glasse7e88232015-04-14 21:03:42 -0600671
Liviu Dudau055da182018-09-28 13:49:31 +0100672config NXP_TDA19988
673 bool "Enable NXP TDA19988 support"
674 depends on DISPLAY
Liviu Dudau055da182018-09-28 13:49:31 +0100675 help
676 This enables support for the NXP TDA19988 HDMI encoder. This encoder
677 will convert RGB data streams into HDMI-encoded signals.
678
Songjun Wu79278312017-04-11 16:33:30 +0800679config ATMEL_HLCD
680 bool "Enable ATMEL video support using HLCDC"
Songjun Wu79278312017-04-11 16:33:30 +0800681 help
682 HLCDC supports video output to an attached LCD panel.
683
Svyatoslav Ryhel06020832023-04-25 10:51:42 +0300684config BACKLIGHT_LM3533
685 bool "Backlight Driver for LM3533"
686 depends on BACKLIGHT
687 select DM_I2C
688 help
689 Say Y to enable the backlight driver for National Semiconductor / TI
690 LM3533 Lighting Power chip. Only Bank A is supported as for now.
691 Supported backlight level range is from 2 to 255 with step of 1.
692
Dario Binacchif4cf87102023-01-28 16:55:31 +0100693source "drivers/video/ti/Kconfig"
694
Tom Rini4d2cab32022-06-10 22:59:34 -0400695source "drivers/video/exynos/Kconfig"
696
Mario Six25a9f972018-08-09 14:51:23 +0200697config LOGICORE_DP_TX
698 bool "Enable Logicore DP TX driver"
699 depends on DISPLAY
700 help
701 Enable the driver for the transmitter part of the Xilinx LogiCORE
702 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
703 video interface as defined by VESA DisplayPort v1.2.
704
705 Note that this is a pure transmitter device, and has no display
706 capabilities by itself.
707
Simon Glass97cb0922016-03-11 22:07:30 -0700708config VIDEO_BROADWELL_IGD
709 bool "Enable Intel Broadwell integrated graphics device"
710 depends on X86
711 help
Simon Glass1df91272016-10-05 20:42:14 -0600712 This enables support for integrated graphics on Intel broadwell
Simon Glass97cb0922016-03-11 22:07:30 -0700713 devices. Initialisation is mostly performed by a VGA boot ROM, with
714 some setup handled by U-Boot itself. The graphics adaptor works as
715 a VESA device and supports LCD panels, eDP and LVDS outputs.
716 Configuration of most aspects of device operation is performed using
717 a special tool which configures the VGA ROM, but the graphics
718 resolution can be selected in U-Boot.
719
Simon Glass2c943802016-10-05 20:42:15 -0600720config VIDEO_IVYBRIDGE_IGD
721 bool "Enable Intel Ivybridge integration graphics support"
722 depends on X86
723 help
724 This enables support for integrated graphics on Intel ivybridge
725 devices. Initialisation is mostly performed by a VGA boot ROM, with
726 some setup handled by U-Boot itself. The graphics adaptor works as
727 a VESA device and supports LCD panels, eDP and LVDS outputs.
728 Configuration of most aspects of device operation is performed using
729 a special tool which configures the VGA ROM, but the graphics
730 resolution can be selected in U-Boot.
731
eric.gao@rock-chips.comb98f0a32017-04-17 22:24:23 +0800732source "drivers/video/rockchip/Kconfig"
Simon Glassc2539482016-01-21 19:45:03 -0700733
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100734config VIDEO_ARM_MALIDP
735 bool "Enable Arm Mali Display Processor support"
Simon Glassfeda1932022-10-18 07:35:17 -0600736 depends on OF_CONTROL
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100737 select VEXPRESS_CLK
738 help
739 This enables support for Arm Ltd Mali Display Processors from
740 the DP500, DP550 and DP650 family.
741
Simon Glass1e69ad02016-01-18 19:52:24 -0700742config VIDEO_SANDBOX_SDL
743 bool "Enable sandbox video console using SDL"
Tom Rinid948c892022-11-19 18:45:43 -0500744 depends on SANDBOX_SDL
Simon Glass1e69ad02016-01-18 19:52:24 -0700745 help
746 When using sandbox you can enable an emulated LCD display which
747 appears as an SDL (Simple DirectMedia Layer) window. This is a
748 console device and can display stdout output. Within U-Boot is is
749 a normal bitmap display and can display images as well as text.
750
Philippe CORNU72719d22017-08-03 12:36:08 +0200751source "drivers/video/stm32/Kconfig"
752
Nikhil M Jain5f9f8162023-01-31 15:35:17 +0530753source "drivers/video/tidss/Kconfig"
754
Simon Glasse7e88232015-04-14 21:03:42 -0600755config VIDEO_TEGRA124
756 bool "Enable video support on Tegra124"
757 help
758 Tegra124 supports many video output options including eDP and
759 HDMI. At present only eDP is supported by U-Boot. This option
760 enables this support which can be used on devices which
761 have an eDP display connected.
Simon Glass801ab9e2015-07-02 18:16:08 -0600762
763source "drivers/video/bridge/Kconfig"
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900764
Svyatoslav Ryhelcf291ba2023-03-27 11:11:41 +0300765source "drivers/video/tegra20/Kconfig"
766
Anatolij Gustschinbffd1312019-03-18 23:29:32 +0100767source "drivers/video/imx/Kconfig"
Anatolij Gustschin57f065f2019-03-18 23:29:31 +0100768
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200769config VIDEO_MXS
770 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200771 help
772 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
773
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200774config VIDEO_NX
775 bool "Enable video support on Nexell SoC"
776 depends on ARCH_S5P6818 || ARCH_S5P4418
777 help
778 Nexell SoC supports many video output options including eDP and
779 HDMI. This option enables this support which can be used on devices
780 which have an eDP display connected.
781
Michal Simekb66d7af2020-12-03 09:31:35 +0100782config VIDEO_SEPS525
783 bool "Enable video support for Seps525"
Simon Glassfeda1932022-10-18 07:35:17 -0600784 depends on DM_GPIO
Michal Simekb66d7af2020-12-03 09:31:35 +0100785 help
786 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
787 Currently driver is supporting only SPI interface.
788
Venkatesh Yadav Abbarapuc4865e12023-05-17 10:42:09 +0200789source "drivers/video/zynqmp/Kconfig"
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200790source "drivers/video/nexell/Kconfig"
791
Simon Glassb87ca802016-10-17 20:12:57 -0600792config CONSOLE_SCROLL_LINES
793 int "Number of lines to scroll the console by"
Simon Glassb87ca802016-10-17 20:12:57 -0600794 default 1
795 help
796 When the console need to be scrolled, this is the number of
797 lines to scroll by. It defaults to 1. Increasing this makes the
798 console jump but can help speed up operation when scrolling
799 is slow.
800
Philipp Tomsich8517f642017-05-05 21:48:26 +0200801config VIDEO_DW_HDMI
802 bool
803 help
804 Enables the common driver code for the Designware HDMI TX
805 block found in SoCs from various vendors.
806 As this does not provide any functionality by itself (but
807 rather requires a SoC-specific glue driver to call it), it
808 can not be enabled from the configuration menu.
809
Yannick Fertré23f965a2019-10-07 15:29:05 +0200810config VIDEO_DSI_HOST_SANDBOX
811 bool "Enable sandbox for dsi host"
812 depends on SANDBOX
813 select VIDEO_MIPI_DSI
814 help
815 Enable support for sandbox dsi host device used for testing
816 purposes.
817 Display Serial Interface (DSI) defines a serial bus and
818 a communication protocol between the host and the device
819 (panel, bridge).
820
Yannick Fertréd4f7ea82019-10-07 15:29:06 +0200821config VIDEO_DW_MIPI_DSI
822 bool
823 select VIDEO_MIPI_DSI
824 help
825 Enables the common driver code for the Synopsis Designware
826 MIPI DSI block found in SoCs from various vendors.
827 As this does not provide any functionality by itself (but
828 rather requires a SoC-specific glue driver to call it), it
829 can not be enabled from the configuration menu.
830
Rob Clark971d7e62017-08-03 12:47:00 -0400831config VIDEO_SIMPLE
832 bool "Simple display driver for preconfigured display"
833 help
834 Enables a simple generic display driver which utilizes the
835 simple-framebuffer devicetree bindings.
836
837 This driver assumes that the display hardware has been initialized
838 before u-boot starts, and u-boot will simply render to the pre-
839 allocated frame buffer surface.
840
Icenowy Zhengf6bdddc2017-10-26 11:14:46 +0800841config VIDEO_DT_SIMPLEFB
842 bool "Enable SimpleFB support for passing framebuffer to OS"
843 help
844 Enables the code to pass the framebuffer to the kernel as a
845 simple framebuffer in the device tree.
846 The video output is initialized by U-Boot, and kept by the
847 kernel.
848
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200849config VIDEO_MCDE_SIMPLE
850 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200851 help
852 Enables a simple display driver for ST-Ericsson MCDE
853 (Multichannel Display Engine), which reads the configuration from
854 the MCDE registers.
855
856 This driver assumes that the display hardware has been initialized
857 before u-boot starts, and u-boot will simply render to the pre-
858 allocated frame buffer surface.
859
Mario Six39a336f2018-09-27 09:19:29 +0200860config OSD
861 bool "Enable OSD support"
862 depends on DM
Mario Six39a336f2018-09-27 09:19:29 +0200863 help
864 This supports drivers that provide a OSD (on-screen display), which
865 is a (usually text-oriented) graphics buffer to show information on
866 a display.
Mario Six9671f692018-09-27 09:19:30 +0200867
Mario Six4eea5312018-09-27 09:19:31 +0200868config SANDBOX_OSD
869 bool "Enable sandbox OSD"
870 depends on OSD
871 help
872 Enable support for sandbox OSD device used for testing purposes.
873
Mario Six9671f692018-09-27 09:19:30 +0200874config IHS_VIDEO_OUT
875 bool "Enable IHS video out driver"
876 depends on OSD
877 help
878 Enable support for the gdsys Integrated Hardware Systems (IHS) video
879 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
880 textual overlays of the display outputs.
881
Nikhil M Jain63e73a12023-07-18 14:27:32 +0530882config VIDEO_REMOVE
883 bool "Remove video driver"
884 help
885 Use this option to specify if user wants to call remove method of
886 video driver in u-boot proper stage.
887
Simon Glass35bd70c2020-08-11 11:23:35 -0600888config SPLASH_SCREEN
889 bool "Show a splash-screen image"
890 help
891 If this option is set, the environment is checked for a variable
892 "splashimage". If found, the usual display of logo, copyright and
893 system information on the LCD is suppressed and the BMP image at the
894 address specified in "splashimage" is loaded instead. The console is
895 redirected to the "nulldev", too. This allows for a "silent" boot
896 where a splash screen is loaded very quickly after power-on.
897
898 The splash_screen_prepare() function is a weak function defined in
899 common/splash.c. It is called as part of the splash screen display
900 sequence. It gives the board an opportunity to prepare the splash
901 image data before it is processed and sent to the frame buffer by
902 U-Boot. Define your own version to use this feature.
903
Simon Glass988d19d2022-10-18 06:24:16 -0600904if SPLASH_SCREEN
905
Simon Glass35bd70c2020-08-11 11:23:35 -0600906config SPLASH_SCREEN_ALIGN
907 bool "Allow positioning the splash image anywhere on the display"
Simon Glass35bd70c2020-08-11 11:23:35 -0600908 help
909 If this option is set the splash image can be freely positioned
910 on the screen. Environment variable "splashpos" specifies the
911 position as "x,y". If a positive number is given it is used as
912 number of pixel from left/top. If a negative number is given it
913 is used as number of pixel from right/bottom. You can also
914 specify 'm' for centering the image.
915
916 Example:
917 setenv splashpos m,m
918 => image at center of screen
919
920 setenv splashpos 30,20
921 => image at x = 30 and y = 20
922
923 setenv splashpos -10,m
924 => vertically centered image
925 at x = dspWidth - bmpWidth - 9
926
Simon Glass4adc28e2022-10-18 06:30:56 -0600927config HIDE_LOGO_VERSION
928 bool "Hide the version information on the splash screen"
929 help
930 Normally the U-Boot version string is shown on the display when the
931 splash screen is enabled. This information is not otherwise visible
932 since video starts up after U-Boot has displayed the initial banner.
933
934 Enable this option to hide this information.
935
Simon Glass35bd70c2020-08-11 11:23:35 -0600936config SPLASH_SOURCE
937 bool "Control the source of the splash image"
Simon Glass35bd70c2020-08-11 11:23:35 -0600938 help
939 Use the splash_source.c library. This library provides facilities to
940 declare board specific splash image locations, routines for loading
941 splash image from supported locations, and a way of controlling the
942 selected splash location using the "splashsource" environment
943 variable.
944
945 This CONFIG works as follows:
946
947 - If splashsource is set to a supported location name as defined by
948 board code, use that splash location.
949 - If splashsource is undefined, use the first splash location as
950 default.
951 - If splashsource is set to an unsupported value, do not load a splash
952 screen.
953
954 A splash source location can describe either storage with raw data, a
955 storage formatted with a file system or a FIT image. In case of a
956 filesystem, the splash screen data is loaded as a file. The name of
957 the splash screen file can be controlled with the environment variable
958 "splashfile".
959
960 To enable loading the splash image from a FIT image, CONFIG_FIT must
961 be enabled. The FIT image has to start at the 'offset' field address
962 in the selected splash location. The name of splash image within the
963 FIT shall be specified by the environment variable "splashfile".
964
965 In case the environment variable "splashfile" is not defined the
966 default name 'splash.bmp' will be used.
967
Simon Glass988d19d2022-10-18 06:24:16 -0600968endif # SPLASH_SCREEN
969
Simon Glass31b097a2023-09-14 10:55:42 -0600970config BMP
971 bool "Enable bmp image display"
972 help
973 Enable bmp functions to display bmp image and get bmp info.
974
975 BMP is a simple graphics-image file format designed to store bitmap
976 images. It is primarily used on Windows devices.
977
Patrick Delaunay0ed6c0f2020-09-28 11:30:14 +0200978config VIDEO_BMP_GZIP
979 bool "Gzip compressed BMP image support"
Nikhil M Jain857d02d2023-04-20 17:40:59 +0530980 depends on BMP || SPLASH_SCREEN
Patrick Delaunay0ed6c0f2020-09-28 11:30:14 +0200981 help
982 If this option is set, additionally to standard BMP
983 images, gzipped BMP images can be displayed via the
984 splashscreen support or the bmp command.
985
Simon Glasse6550032022-10-18 06:46:08 -0600986config VIDEO_LOGO_MAX_SIZE
Simon Glass2fd5a572022-10-18 06:49:18 -0600987 hex "Maximum size of the bitmap logo in bytes"
988 default 0x100000
989 help
990 Sets the maximum uncompressed size of the logo. This is needed when
991 decompressing a BMP file using the gzip algorithm, since it cannot
992 read the size from the bitmap header.
Simon Glasse6550032022-10-18 06:46:08 -0600993
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200994config VIDEO_BMP_RLE8
995 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200996 help
997 If this option is set, the 8-bit RLE compressed BMP images
998 is supported.
999
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +02001000config BMP_16BPP
1001 bool "16-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +02001002 help
1003 Support display of bitmaps file with 16-bit-per-pixel
1004
1005config BMP_24BPP
1006 bool "24-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +02001007 help
1008 Support display of bitmaps file with 24-bit-per-pixel.
1009
1010config BMP_32BPP
1011 bool "32-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +02001012 help
1013 Support display of bitmaps file with 32-bit-per-pixel.
1014
Simon Glassb86986c2022-10-18 07:46:31 -06001015endif # VIDEO
Simon Glassfeda1932022-10-18 07:35:17 -06001016
Nikhil M Jain857d02d2023-04-20 17:40:59 +05301017config SPL_VIDEO
John Keeping03972ff2023-05-09 12:02:50 +01001018 bool "Enable driver model support for LCD/video in SPL"
Nikhil M Jain857d02d2023-04-20 17:40:59 +05301019 depends on SPL_DM
1020 help
1021 The video subsystem adds a small amount of overhead to the image.
1022 If this is acceptable and you have a need to use video drivers in
1023 SPL, enable this option. It might provide a cleaner interface to
1024 setting up video within SPL, and allows the same drivers to be
1025 used as U-Boot proper.
1026
1027if SPL_VIDEO
1028source "drivers/video/tidss/Kconfig"
1029
Simon Glassb7080bf2023-07-30 11:16:05 -06001030config SPL_VIDEO_HANDOFF
1031 bool "Pass the video frame-buffer through to U-Boot proper"
1032 depends on SPL_BLOBLIST
1033 default y if !X86
1034 help
1035 Enable this to set up video-handoff information in SPL which can be
1036 picked up in U-Boot proper. This includes the frame buffer and
1037 various other pieces of information. With this enabled, SPL can set
1038 up video and avoid re-initing it later.
1039
Nikhil M Jain857d02d2023-04-20 17:40:59 +05301040config SPL_VIDEO_LOGO
1041 bool "Show the U-Boot logo on the display at SPL"
1042 default y if !SPL_SPLASH_SCREEN
1043 select SPL_VIDEO_BMP_RLE8
1044 help
1045 This enables showing the U-Boot logo on the display when a video
1046 device is probed. It appears at the top right. The logo itself is at
1047 tools/logos/u-boot_logo.bmp and looks best when the display has a
1048 black background.
1049
1050config SPL_SPLASH_SCREEN
1051 bool "Show a splash-screen image at SPL"
1052 help
1053 If this option is set, the environment is checked for a variable
1054 "splashimage" at spl stage.
1055
1056config SPL_SYS_WHITE_ON_BLACK
1057 bool "Display console as white on a black background at SPL"
1058 help
1059 Normally the display is black on a white background, Enable this
1060 option to invert this, i.e. white on a black background at spl stage.
1061 This can be better in low-light situations or to reduce eye strain in
1062 some cases.
1063
1064config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
1065 hex "Default framebuffer size to use if no drivers request it at SPL"
Bin Meng185ae842023-07-23 12:40:30 +08001066 default 0x1000000 if X86
Bin Mengf91f0e72023-07-23 12:40:31 +08001067 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinia077ac12023-08-02 11:09:43 -04001068 default 0x0 if !X86 && !VIDEO_BOCHS
Nikhil M Jain857d02d2023-04-20 17:40:59 +05301069 help
1070 Generally, video drivers request the amount of memory they need for
1071 the frame buffer when they are bound, by setting the size field in
1072 struct video_uc_plat. That memory is then reserved for use after
1073 relocation. But PCI drivers cannot be bound before relocation unless
1074 they are mentioned in the devicetree.
1075
1076 With this value set appropriately, it is possible for PCI video
1077 devices to have a framebuffer allocated by U-Boot.
1078
1079 Note: the framebuffer needs to be large enough to store all pixels at
Bin Meng17cd8022023-07-23 12:40:29 +08001080 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Nikhil M Jain857d02d2023-04-20 17:40:59 +05301081 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
1082
1083config SPL_CONSOLE_SCROLL_LINES
1084 int "Number of lines to scroll the console by at SPL"
1085 default 1
1086 help
1087 When the console need to be scrolled, this is the number of
1088 lines to scroll by. It defaults to 1. Increasing this makes the
1089 console jump but can help speed up operation when scrolling
1090 is slow.
1091
1092config SPL_CONSOLE_NORMAL
1093 bool "Support a simple text console at SPL"
1094 default y
1095 help
1096 Support drawing text on the frame buffer console so that it can be
1097 used as a console. Rotation is not supported by this driver (see
1098 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
1099 for the display.
1100
1101config SPL_BACKLIGHT
1102 bool "Enable panel backlight uclass support at SPL"
1103 default y
1104 help
1105 This provides backlight uclass driver that enables basic panel
1106 backlight support.
1107
1108config SPL_PANEL
1109 bool "Enable panel uclass support at SPL"
1110 default y
1111 help
1112 This provides panel uclass driver that enables basic panel support.
1113
1114config SPL_SIMPLE_PANEL
1115 bool "Enable simple panel support at SPL"
1116 depends on SPL_PANEL && SPL_BACKLIGHT && SPL_DM_GPIO
1117 default y
1118 help
1119 This turns on a simple panel driver that enables a compatible
1120 video panel.
1121
1122config SPL_SYS_WHITE_ON_BLACK
1123 bool "Display console as white on a black background at SPL"
1124 help
1125 Normally the display is black on a white background, Enable this
1126 option to invert this, i.e. white on a black background at spl stage.
1127 This can be better in low-light situations or to reduce eye strain in
1128 some cases.
1129
Nikhil M Jain63e73a12023-07-18 14:27:32 +05301130config SPL_VIDEO_REMOVE
1131 bool "Remove video driver after SPL stage"
1132 help
1133 if this option is enabled video driver will be removed at the end of
Bin Mengaba67762023-08-03 18:40:08 +08001134 SPL stage, before loading the next stage.
Nikhil M Jain63e73a12023-07-18 14:27:32 +05301135
Nikhil M Jain857d02d2023-04-20 17:40:59 +05301136if SPL_SPLASH_SCREEN
1137
1138config SPL_SPLASH_SCREEN_ALIGN
1139 bool "Allow positioning the splash image anywhere on the display at SPL"
1140 help
1141 If this option is set the splash image can be freely positioned
1142 on the screen only at SPL. Environment variable "splashpos" specifies
1143 the position as "x,y". If a positive number is given it is used as
1144 number of pixel from left/top. If a negative number is given it
1145 is used as number of pixel from right/bottom.
1146
1147config SPL_SPLASH_SOURCE
1148 bool "Control the source of the splash image at SPL"
1149 help
1150 Use the splash_source.c library. This library provides facilities to
1151 declare board specific splash image locations, routines for loading
1152 splash image from supported locations, and a way of controlling the
1153 selected splash location using the "splashsource" environment
1154 variable.
1155
1156 This CONFIG works as follows:
1157
1158 - If splashsource is set to a supported location name as defined by
1159 board code, use that splash location.
1160 - If splashsource is undefined, use the first splash location as
1161 default.
1162 - If splashsource is set to an unsupported value, do not load a splash
1163 screen.
1164
1165 A splash source location can describe either storage with raw data, a
1166 storage formatted with a file system or a FIT image. In case of a
1167 filesystem, the splash screen data is loaded as a file. The name of
1168 the splash screen file can be controlled with the environment variable
1169 "splashfile".
1170
1171 To enable loading the splash image from a FIT image, CONFIG_FIT must
1172 be enabled. The FIT image has to start at the 'offset' field address
1173 in the selected splash location. The name of splash image within the
1174 FIT shall be specified by the environment variable "splashfile".
1175
1176 In case the environment variable "splashfile" is not defined the
1177 default name 'splash.bmp' will be used.
1178
1179endif # SPL_SPLASH_SCREEN
1180
Simon Glass31b097a2023-09-14 10:55:42 -06001181config SPL_BMP
1182 bool "Enable bmp image display at SPL"
1183 help
1184 Enable bmp functions to display bmp image and get bmp info in SPL.
1185
1186 BMP is a simple graphics-image file format designed to store bitmap
1187 images. It is primarily used on Windows devices.
1188
Nikhil M Jain857d02d2023-04-20 17:40:59 +05301189config SPL_VIDEO_BMP_GZIP
1190 bool "Gzip compressed BMP image support at SPL"
1191 depends on SPL_SPLASH_SCREEN || SPL_BMP
1192 help
1193 If this option is set, additionally to standard BMP
1194 images, gzipped BMP images can be displayed via the
1195 splashscreen supportat SPL stage.
1196
1197config SPL_VIDEO_LOGO_MAX_SIZE
1198 hex "Maximum size of the bitmap logo in bytes at SPL"
1199 default 0x100000
1200 help
1201 Sets the maximum uncompressed size of the logo. This is needed when
1202 decompressing a BMP file using the gzip algorithm, since it cannot
1203 read the size from the bitmap header.
1204
1205config SPL_VIDEO_BMP_RLE8
1206 bool "Run length encoded BMP image (RLE8) support at SPL"
1207 help
1208 If this option is set, the 8-bit RLE compressed BMP images
1209 is supported.
1210
1211config SPL_BMP_16BPP
1212 bool "16-bit-per-pixel BMP image support at SPL"
1213 help
1214 Support display of bitmaps file with 16-bit-per-pixel
1215
1216config SPL_BMP_24BPP
1217 bool "24-bit-per-pixel BMP image support at SPL"
1218 help
1219 Support display of bitmaps file with 24-bit-per-pixel.
1220
1221config SPL_BMP_32BPP
1222 bool "32-bit-per-pixel BMP image support at SPL"
1223 help
1224 Support display of bitmaps file with 32-bit-per-pixel.
1225
1226config SPL_VIDEO_BPP8
1227 bool "Support 8-bit-per-pixel displays at SPL"
1228 default y
1229 help
1230 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
1231 Enabling this will include code to support this display. Without
1232 this option, such displays will not be supported and console output
1233 will be empty.
1234
1235config SPL_VIDEO_BPP16
1236 bool "Support 16-bit-per-pixel displays at SPL"
1237 default y
1238 help
1239 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
1240 Enabling this will include code to support this display. Without
1241 this option, such displays will not be supported and console output
1242 will be empty.
1243
1244config SPL_VIDEO_BPP32
1245 bool "Support 32-bit-per-pixel displays at SPL"
1246 default y
1247 help
1248 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
1249 Enabling this will include code to support this display. Without
1250 this option, such displays will not be supported and console output
1251 will be empty.
1252
1253config SPL_HIDE_LOGO_VERSION
1254 bool "Hide the version information on the splash screen at SPL"
1255 help
1256 Normally the U-Boot version string is shown on the display when the
1257 splash screen is enabled. This information is not otherwise visible
1258 since video starts up after U-Boot has displayed the initial banner.
1259
1260 Enable this option to hide this information.
1261endif
1262
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +09001263endmenu