blob: ab927641bb7ab948d6ddd701483201dfcc473cb1 [file] [log] [blame]
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glass52cb5042022-10-18 07:46:31 -06007config VIDEO
Simon Glass623d28f2016-01-18 19:52:15 -07008 bool "Enable driver model support for LCD/video"
9 depends on DM
10 help
11 This enables driver model for LCD and video devices. These support
12 a bitmap display of various sizes and depths which can be drawn on
13 to display a command-line console or splash screen. Enabling this
14 option compiles in the video uclass and routes all LCD/video access
15 through this.
16
Simon Glass52cb5042022-10-18 07:46:31 -060017if VIDEO
Simon Glass557786c2022-10-18 07:35:17 -060018
Dzmitry Sankouski7fa964a2023-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 Sankouski7932a992023-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 Sankouskiefadfde2023-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 Glass8e5a8b62021-11-19 13:24:01 -070048config VIDEO_LOGO
49 bool "Show the U-Boot logo on the display"
Simon Glass7a6528592021-11-19 13:24:04 -070050 default y if !SPLASH_SCREEN
Simon Glass87a3cd72021-11-19 13:24:03 -070051 select VIDEO_BMP_RLE8
Simon Glass8e5a8b62021-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 Gustschin0dcb3fd2020-05-26 00:20:49 +020058config BACKLIGHT
59 bool "Enable panel backlight uclass support"
Anatolij Gustschin0dcb3fd2020-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 Glassc3d2f352020-07-02 21:12:33 -060065config VIDEO_PCI_DEFAULT_FB_SIZE
66 hex "Default framebuffer size to use if no drivers request it"
Bin Meng88fdb442023-07-23 12:40:30 +080067 default 0x1000000 if X86
Bin Meng7c509a02023-07-23 12:40:31 +080068 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinif18679c2023-08-02 11:09:43 -040069 default 0x0 if !X86 && !VIDEO_BOCHS
Simon Glassc3d2f352020-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 Binacchi2ec85772021-01-23 19:43:52 +010073 struct video_uc_plat. That memory is then reserved for use after
Simon Glassc3d2f352020-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 Meng05241702023-07-23 12:40:29 +080081 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Simon Glassc3d2f352020-07-02 21:12:33 -060082 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
83
Simon Glass73c9c372020-07-02 21:12:20 -060084config VIDEO_COPY
85 bool "Enable copying the frame buffer to a hardware copy"
Simon Glass73c9c372020-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 Binacchi2ec85772021-01-23 19:43:52 +010093 struct video_uc_plat.
Simon Glass73c9c372020-07-02 21:12:20 -060094
Patrick Delaunay4300f072017-08-03 12:36:06 +020095config BACKLIGHT_PWM
96 bool "Generic PWM based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020097 depends on BACKLIGHT && DM_PWM
Patrick Delaunay4300f072017-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 Delaunaya3c046f2017-08-03 12:36:07 +0200106config BACKLIGHT_GPIO
107 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200108 depends on BACKLIGHT
Patrick Delaunaya3c046f2017-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 Glass623d28f2016-01-18 19:52:15 -0700116config VIDEO_BPP8
117 bool "Support 8-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100118 default y
Simon Glass623d28f2016-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 Gustschindba36702020-02-04 22:43:06 +0100127 default y
Simon Glass623d28f2016-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 Gustschindba36702020-02-04 22:43:06 +0100136 default y
Simon Glass623d28f2016-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 Clark06e7a0d2017-09-13 18:12:21 -0400143config VIDEO_ANSI
144 bool "Support ANSI escape sequences in video console"
Simon Glass80a8e802023-01-06 08:52:29 -0600145 default y if EFI_LOADER
Rob Clark06e7a0d2017-09-13 18:12:21 -0400146 help
147 Enable ANSI escape sequence decoding for a more fully functional
Simon Glass80a8e802023-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 Clark06e7a0d2017-09-13 18:12:21 -0400152
Yannick Fertréd08fb322019-10-07 15:29:04 +0200153config VIDEO_MIPI_DSI
154 bool "Support MIPI DSI interface"
Yannick Fertréd08fb322019-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 Glass6e0721d2016-01-22 21:53:37 +0100160config CONSOLE_NORMAL
161 bool "Support a simple text console"
Simon Glass557786c2022-10-18 07:35:17 -0600162 default y
Simon Glass6e0721d2016-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 Glass87aae882016-01-18 19:52:19 -0700170 bool "Support rotated displays"
Simon Glass87aae882016-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 Glass2ef353e2016-01-14 18:10:42 -0700181config CONSOLE_TRUETYPE
182 bool "Support a console that uses TrueType fonts"
Dzmitry Sankouskibb165e42023-03-07 13:21:16 +0300183 select CMD_SELECT_FONT
Simon Glass2ef353e2016-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 Glass79597762022-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 Glassd65a1422017-04-26 22:27:57 -0600218config SYS_WHITE_ON_BLACK
219 bool "Display console as white on a black background"
Trevor Woerner513f6402020-05-06 08:02:41 -0400220 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glassd65a1422017-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 Clarkf1411882017-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 Gustschin0dcb3fd2020-05-26 00:20:49 +0200235config PANEL
236 bool "Enable panel uclass support"
Anatolij Gustschin0dcb3fd2020-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 Connor81b0f612021-03-03 14:46:47 +1100243 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschin0dcb3fd2020-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 Glassf8360fe2022-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 Glass2ef353e2016-01-14 18:10:42 -0700259source "drivers/video/fonts/Kconfig"
260
Simon Glass86f07462016-02-06 14:31:37 -0700261config VIDCONSOLE_AS_LCD
Patrick Delaunay60b92242020-07-01 14:56:10 +0200262 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay60b92242020-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 Gustschin47020642020-05-23 17:11:20 +0200273 default "lcd" if LCD || TEGRA_COMMON
274 default "vga" if !LCD
Simon Glass86f07462016-02-06 14:31:37 -0700275 help
Anatolij Gustschin47020642020-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 Glass86f07462016-02-06 14:31:37 -0700281
Simon Glass90ca96a2023-07-15 21:39:18 -0600282config VIDEO_BOCHS
283 bool "Enable Bochs video emulation for QEMU"
Simon Glass90ca96a2023-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 Menga0676be2016-10-09 04:14:16 -0700311config VIDEO_COREBOOT
312 bool "Enable coreboot framebuffer driver support"
Simon Glassd2398ab2021-03-15 18:00:27 +1300313 depends on X86
Bin Menga0676be2016-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 Meng0f862b92018-06-12 08:36:22 -0700320config VIDEO_EFI
321 bool "Enable EFI framebuffer driver support"
Simon Glass04c26ff2021-11-03 21:09:10 -0600322 depends on EFI_STUB || EFI_APP
Bin Meng0f862b92018-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 Glass42bf3ee2014-12-29 19:32:28 -0700329config VIDEO_VESA
330 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-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 Meng072b79d2015-05-11 07:36:29 +0800337config FRAMEBUFFER_SET_VESA_MODE
338 bool "Set framebuffer graphics resolution"
Simon Glassdec49b72016-03-11 22:07:30 -0700339 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng072b79d2015-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 Meng4da8a3f2018-04-11 22:02:16 -0700346 default FRAMEBUFFER_VESA_MODE_118
Bin Meng072b79d2015-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 Meng932adc62015-08-09 23:26:59 -0700368 bool "1024x768 256-color"
Bin Meng072b79d2015-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 Goededfc1efe2015-08-08 16:03:29 +0200475config VIDEO_LCD_ANX9804
476 bool "ANX9804 bridge chip"
Hans de Goededfc1efe2015-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 Rini4c047422022-03-18 08:38:28 -0400482config ATMEL_LCD
483 bool "Atmel LCD panel support"
Simon Glass557786c2022-10-18 07:35:17 -0600484 depends on ARCH_AT91
Tom Rini4c047422022-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 Glass7b3fabb2022-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 Ryhelbd932b72023-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 Jirman55453d42023-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é5b855d42019-10-07 15:29:08 +0200518config VIDEO_LCD_ORISETECH_OTM8009A
519 bool "OTM8009A DSI LCD panel support"
Yannick Fertré5b855d42019-10-07 15:29:08 +0200520 select VIDEO_MIPI_DSI
Yannick Fertré5b855d42019-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
Yannick Fertréb038fed2019-10-07 15:29:09 +0200525config VIDEO_LCD_RAYDIUM_RM68200
526 bool "RM68200 DSI LCD panel support"
Yannick Fertréb038fed2019-10-07 15:29:09 +0200527 select VIDEO_MIPI_DSI
Yannick Fertréb038fed2019-10-07 15:29:09 +0200528 help
529 Say Y here if you want to enable support for Raydium RM68200
530 720x1280 DSI video mode panel.
531
Svyatoslav Ryhelb9054982023-04-25 10:51:44 +0300532config VIDEO_LCD_RENESAS_R61307
533 tristate "Renesas R61307 DSI video mode panel"
534 depends on PANEL && BACKLIGHT
535 select VIDEO_MIPI_DSI
536 help
537 Say Y here if you want to enable support for KOE tx13d100vm0eaa
538 IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
539 resolution and uses 24 bit RGB per pixel.
540
Svyatoslav Ryhelfcbbd562023-04-25 10:51:45 +0300541config VIDEO_LCD_RENESAS_R69328
542 tristate "Renesas R69328 720x1280 DSI video mode panel"
543 depends on PANEL && BACKLIGHT
544 select VIDEO_MIPI_DSI
545 help
546 Say Y here if you want to enable support for JDI dx12d100vm0eaa
547 IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
548 resolution and uses 24 bit RGB per pixel.
549
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200550config VIDEO_LCD_SSD2828
551 bool "SSD2828 bridge chip"
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200552 ---help---
553 Support for the SSD2828 bridge chip, which can take pixel data coming
554 from a parallel LCD interface and translate it on the fly into MIPI DSI
555 interface for driving a MIPI compatible LCD panel. It uses SPI for
556 configuration.
557
558config VIDEO_LCD_SSD2828_TX_CLK
559 int "SSD2828 TX_CLK frequency (in MHz)"
560 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200561 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200562 ---help---
563 The frequency of the crystal, which is clocking SSD2828. It may be
564 anything in the 8MHz-30MHz range and the exact value should be
565 retrieved from the board schematics. Or in the case of Allwinner
566 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200567 FEX files. It can be also set to 0 for selecting PCLK from the
568 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200569
570config VIDEO_LCD_SSD2828_RESET
571 string "RESET pin of SSD2828"
572 depends on VIDEO_LCD_SSD2828
573 default ""
574 ---help---
575 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500576 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200577
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200578config VIDEO_LCD_TDO_TL070WSH30
579 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200580 select VIDEO_MIPI_DSI
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200581 help
582 Say Y here if you want to enable support for TDO TL070WSH30
583 1024x600 DSI video mode panel.
584
Hans de Goedec0482032015-01-20 09:22:26 +0100585config VIDEO_LCD_HITACHI_TX18D42VM
586 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedec0482032015-01-20 09:22:26 +0100587 ---help---
588 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
589 lcd controller which needs to be initialized over SPI, once that is
590 done they work like a regular LVDS panel.
591
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200592config VIDEO_LCD_SPI_CS
593 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100594 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200595 default ""
596 ---help---
597 This is one of the SPI communication pins, involved in setting up a
598 working LCD configuration. The exact role of SPI may differ for
599 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500600 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200601
602config VIDEO_LCD_SPI_SCLK
603 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100604 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200605 default ""
606 ---help---
607 This is one of the SPI communication pins, involved in setting up a
608 working LCD configuration. The exact role of SPI may differ for
609 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500610 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200611
612config VIDEO_LCD_SPI_MOSI
613 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100614 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200615 default ""
616 ---help---
617 This is one of the SPI communication pins, involved in setting up a
618 working LCD configuration. The exact role of SPI may differ for
619 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500620 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200621
622config VIDEO_LCD_SPI_MISO
623 string "SPI MISO pin for LCD related config job (optional)"
624 depends on VIDEO_LCD_SSD2828
625 default ""
626 ---help---
627 This is one of the SPI communication pins, involved in setting up a
628 working LCD configuration. The exact role of SPI may differ for
629 different hardware setups. If wired up, this pin may provide additional
630 useful functionality. Such as bi-directional communication with the
631 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500632 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200633 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600634
Neil Armstrongadd986c2018-07-24 17:45:28 +0200635source "drivers/video/meson/Kconfig"
636
Stefan Roeseab91fd52016-01-20 08:13:28 +0100637config VIDEO_MVEBU
638 bool "Armada XP LCD controller"
Stefan Roeseab91fd52016-01-20 08:13:28 +0100639 ---help---
640 Support for the LCD controller integrated in the Marvell
641 Armada XP SoC.
642
Adam Ford60a59d42018-08-02 08:50:20 -0500643config VIDEO_OMAP3
644 bool "Enable OMAP3+ DSS Support"
645 depends on ARCH_OMAP2PLUS
646 help
647 This enables the Display subsystem (DSS) on OMAP3+ boards.
648
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100649config I2C_EDID
650 bool "Enable EDID library"
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100651 help
652 This enables library for accessing EDID data from an LCD panel.
653
Simon Glass7d3d7762016-01-21 19:45:00 -0700654config DISPLAY
655 bool "Enable Display support"
656 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100657 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600658 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700659 This supports drivers that provide a display, such as eDP (Embedded
660 DisplayPort) and HDMI (High Definition Multimedia Interface).
661 The devices provide a simple interface to start up the display,
662 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600663
Liviu Dudau33967102018-09-28 13:49:31 +0100664config NXP_TDA19988
665 bool "Enable NXP TDA19988 support"
666 depends on DISPLAY
Liviu Dudau33967102018-09-28 13:49:31 +0100667 help
668 This enables support for the NXP TDA19988 HDMI encoder. This encoder
669 will convert RGB data streams into HDMI-encoded signals.
670
Songjun Wu72ac56a2017-04-11 16:33:30 +0800671config ATMEL_HLCD
672 bool "Enable ATMEL video support using HLCDC"
Songjun Wu72ac56a2017-04-11 16:33:30 +0800673 help
674 HLCDC supports video output to an attached LCD panel.
675
Svyatoslav Ryhel3e9488a2023-04-25 10:51:42 +0300676config BACKLIGHT_LM3533
677 bool "Backlight Driver for LM3533"
678 depends on BACKLIGHT
679 select DM_I2C
680 help
681 Say Y to enable the backlight driver for National Semiconductor / TI
682 LM3533 Lighting Power chip. Only Bank A is supported as for now.
683 Supported backlight level range is from 2 to 255 with step of 1.
684
Dario Binacchi260bdb32023-01-28 16:55:31 +0100685source "drivers/video/ti/Kconfig"
686
Tom Rini3eeabf52022-06-10 22:59:34 -0400687source "drivers/video/exynos/Kconfig"
688
Mario Sixc13ee192018-08-09 14:51:23 +0200689config LOGICORE_DP_TX
690 bool "Enable Logicore DP TX driver"
691 depends on DISPLAY
692 help
693 Enable the driver for the transmitter part of the Xilinx LogiCORE
694 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
695 video interface as defined by VESA DisplayPort v1.2.
696
697 Note that this is a pure transmitter device, and has no display
698 capabilities by itself.
699
Simon Glassdec49b72016-03-11 22:07:30 -0700700config VIDEO_BROADWELL_IGD
701 bool "Enable Intel Broadwell integrated graphics device"
702 depends on X86
703 help
Simon Glassa3fdd002016-10-05 20:42:14 -0600704 This enables support for integrated graphics on Intel broadwell
Simon Glassdec49b72016-03-11 22:07:30 -0700705 devices. Initialisation is mostly performed by a VGA boot ROM, with
706 some setup handled by U-Boot itself. The graphics adaptor works as
707 a VESA device and supports LCD panels, eDP and LVDS outputs.
708 Configuration of most aspects of device operation is performed using
709 a special tool which configures the VGA ROM, but the graphics
710 resolution can be selected in U-Boot.
711
Simon Glass03f2a512016-10-05 20:42:15 -0600712config VIDEO_IVYBRIDGE_IGD
713 bool "Enable Intel Ivybridge integration graphics support"
714 depends on X86
715 help
716 This enables support for integrated graphics on Intel ivybridge
717 devices. Initialisation is mostly performed by a VGA boot ROM, with
718 some setup handled by U-Boot itself. The graphics adaptor works as
719 a VESA device and supports LCD panels, eDP and LVDS outputs.
720 Configuration of most aspects of device operation is performed using
721 a special tool which configures the VGA ROM, but the graphics
722 resolution can be selected in U-Boot.
723
eric.gao@rock-chips.com735ddea2017-04-17 22:24:23 +0800724source "drivers/video/rockchip/Kconfig"
Simon Glass0139ae62016-01-21 19:45:03 -0700725
Liviu Dudau8373ed32018-09-28 13:50:53 +0100726config VIDEO_ARM_MALIDP
727 bool "Enable Arm Mali Display Processor support"
Simon Glass557786c2022-10-18 07:35:17 -0600728 depends on OF_CONTROL
Liviu Dudau8373ed32018-09-28 13:50:53 +0100729 select VEXPRESS_CLK
730 help
731 This enables support for Arm Ltd Mali Display Processors from
732 the DP500, DP550 and DP650 family.
733
Simon Glass161eea72016-01-18 19:52:24 -0700734config VIDEO_SANDBOX_SDL
735 bool "Enable sandbox video console using SDL"
Tom Riniea79bb72022-11-19 18:45:43 -0500736 depends on SANDBOX_SDL
Simon Glass161eea72016-01-18 19:52:24 -0700737 help
738 When using sandbox you can enable an emulated LCD display which
739 appears as an SDL (Simple DirectMedia Layer) window. This is a
740 console device and can display stdout output. Within U-Boot is is
741 a normal bitmap display and can display images as well as text.
742
Philippe CORNUdcbad9a2017-08-03 12:36:08 +0200743source "drivers/video/stm32/Kconfig"
744
Nikhil M Jain94272742023-01-31 15:35:17 +0530745source "drivers/video/tidss/Kconfig"
746
Simon Glass3ef2a722015-04-14 21:03:42 -0600747config VIDEO_TEGRA124
748 bool "Enable video support on Tegra124"
749 help
750 Tegra124 supports many video output options including eDP and
751 HDMI. At present only eDP is supported by U-Boot. This option
752 enables this support which can be used on devices which
753 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600754
755source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900756
Svyatoslav Ryheld15683f2023-03-27 11:11:41 +0300757source "drivers/video/tegra20/Kconfig"
758
Anatolij Gustschin411e73d2019-03-18 23:29:32 +0100759source "drivers/video/imx/Kconfig"
Anatolij Gustschin983e2f22019-03-18 23:29:31 +0100760
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200761config VIDEO_MXS
762 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200763 help
764 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
765
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200766config VIDEO_NX
767 bool "Enable video support on Nexell SoC"
768 depends on ARCH_S5P6818 || ARCH_S5P4418
769 help
770 Nexell SoC supports many video output options including eDP and
771 HDMI. This option enables this support which can be used on devices
772 which have an eDP display connected.
773
Michal Simek32058b82020-12-03 09:31:35 +0100774config VIDEO_SEPS525
775 bool "Enable video support for Seps525"
Simon Glass557786c2022-10-18 07:35:17 -0600776 depends on DM_GPIO
Michal Simek32058b82020-12-03 09:31:35 +0100777 help
778 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
779 Currently driver is supporting only SPI interface.
780
Venkatesh Yadav Abbarapue3679802023-05-17 10:42:09 +0200781source "drivers/video/zynqmp/Kconfig"
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200782source "drivers/video/nexell/Kconfig"
783
Simon Glassd76f29a2016-10-17 20:12:57 -0600784config CONSOLE_SCROLL_LINES
785 int "Number of lines to scroll the console by"
Simon Glassd76f29a2016-10-17 20:12:57 -0600786 default 1
787 help
788 When the console need to be scrolled, this is the number of
789 lines to scroll by. It defaults to 1. Increasing this makes the
790 console jump but can help speed up operation when scrolling
791 is slow.
792
Philipp Tomsich3a53b3e2017-05-05 21:48:26 +0200793config VIDEO_DW_HDMI
794 bool
795 help
796 Enables the common driver code for the Designware HDMI TX
797 block found in SoCs from various vendors.
798 As this does not provide any functionality by itself (but
799 rather requires a SoC-specific glue driver to call it), it
800 can not be enabled from the configuration menu.
801
Yannick Fertré9712c822019-10-07 15:29:05 +0200802config VIDEO_DSI_HOST_SANDBOX
803 bool "Enable sandbox for dsi host"
804 depends on SANDBOX
805 select VIDEO_MIPI_DSI
806 help
807 Enable support for sandbox dsi host device used for testing
808 purposes.
809 Display Serial Interface (DSI) defines a serial bus and
810 a communication protocol between the host and the device
811 (panel, bridge).
812
Yannick Fertré764af462019-10-07 15:29:06 +0200813config VIDEO_DW_MIPI_DSI
814 bool
815 select VIDEO_MIPI_DSI
816 help
817 Enables the common driver code for the Synopsis Designware
818 MIPI DSI block found in SoCs from various vendors.
819 As this does not provide any functionality by itself (but
820 rather requires a SoC-specific glue driver to call it), it
821 can not be enabled from the configuration menu.
822
Rob Clarkcf7ab0c2017-08-03 12:47:00 -0400823config VIDEO_SIMPLE
824 bool "Simple display driver for preconfigured display"
825 help
826 Enables a simple generic display driver which utilizes the
827 simple-framebuffer devicetree bindings.
828
829 This driver assumes that the display hardware has been initialized
830 before u-boot starts, and u-boot will simply render to the pre-
831 allocated frame buffer surface.
832
Icenowy Zheng60e4b8f2017-10-26 11:14:46 +0800833config VIDEO_DT_SIMPLEFB
834 bool "Enable SimpleFB support for passing framebuffer to OS"
835 help
836 Enables the code to pass the framebuffer to the kernel as a
837 simple framebuffer in the device tree.
838 The video output is initialized by U-Boot, and kept by the
839 kernel.
840
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200841config VIDEO_MCDE_SIMPLE
842 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200843 help
844 Enables a simple display driver for ST-Ericsson MCDE
845 (Multichannel Display Engine), which reads the configuration from
846 the MCDE registers.
847
848 This driver assumes that the display hardware has been initialized
849 before u-boot starts, and u-boot will simply render to the pre-
850 allocated frame buffer surface.
851
Mario Six1b773202018-09-27 09:19:29 +0200852config OSD
853 bool "Enable OSD support"
854 depends on DM
Mario Six1b773202018-09-27 09:19:29 +0200855 help
856 This supports drivers that provide a OSD (on-screen display), which
857 is a (usually text-oriented) graphics buffer to show information on
858 a display.
Mario Six8ea19da2018-09-27 09:19:30 +0200859
Mario Six02ad6fb2018-09-27 09:19:31 +0200860config SANDBOX_OSD
861 bool "Enable sandbox OSD"
862 depends on OSD
863 help
864 Enable support for sandbox OSD device used for testing purposes.
865
Mario Six8ea19da2018-09-27 09:19:30 +0200866config IHS_VIDEO_OUT
867 bool "Enable IHS video out driver"
868 depends on OSD
869 help
870 Enable support for the gdsys Integrated Hardware Systems (IHS) video
871 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
872 textual overlays of the display outputs.
873
Nikhil M Jain085f1dd2023-07-18 14:27:32 +0530874config VIDEO_REMOVE
875 bool "Remove video driver"
876 help
877 Use this option to specify if user wants to call remove method of
878 video driver in u-boot proper stage.
879
Simon Glass2d7a7942020-08-11 11:23:35 -0600880config SPLASH_SCREEN
881 bool "Show a splash-screen image"
882 help
883 If this option is set, the environment is checked for a variable
884 "splashimage". If found, the usual display of logo, copyright and
885 system information on the LCD is suppressed and the BMP image at the
886 address specified in "splashimage" is loaded instead. The console is
887 redirected to the "nulldev", too. This allows for a "silent" boot
888 where a splash screen is loaded very quickly after power-on.
889
890 The splash_screen_prepare() function is a weak function defined in
891 common/splash.c. It is called as part of the splash screen display
892 sequence. It gives the board an opportunity to prepare the splash
893 image data before it is processed and sent to the frame buffer by
894 U-Boot. Define your own version to use this feature.
895
Simon Glass8b883a32022-10-18 06:24:16 -0600896if SPLASH_SCREEN
897
Simon Glass2d7a7942020-08-11 11:23:35 -0600898config SPLASH_SCREEN_ALIGN
899 bool "Allow positioning the splash image anywhere on the display"
Simon Glass2d7a7942020-08-11 11:23:35 -0600900 help
901 If this option is set the splash image can be freely positioned
902 on the screen. Environment variable "splashpos" specifies the
903 position as "x,y". If a positive number is given it is used as
904 number of pixel from left/top. If a negative number is given it
905 is used as number of pixel from right/bottom. You can also
906 specify 'm' for centering the image.
907
908 Example:
909 setenv splashpos m,m
910 => image at center of screen
911
912 setenv splashpos 30,20
913 => image at x = 30 and y = 20
914
915 setenv splashpos -10,m
916 => vertically centered image
917 at x = dspWidth - bmpWidth - 9
918
Simon Glass45c0a7e2022-10-18 06:30:56 -0600919config HIDE_LOGO_VERSION
920 bool "Hide the version information on the splash screen"
921 help
922 Normally the U-Boot version string is shown on the display when the
923 splash screen is enabled. This information is not otherwise visible
924 since video starts up after U-Boot has displayed the initial banner.
925
926 Enable this option to hide this information.
927
Simon Glass2d7a7942020-08-11 11:23:35 -0600928config SPLASH_SOURCE
929 bool "Control the source of the splash image"
Simon Glass2d7a7942020-08-11 11:23:35 -0600930 help
931 Use the splash_source.c library. This library provides facilities to
932 declare board specific splash image locations, routines for loading
933 splash image from supported locations, and a way of controlling the
934 selected splash location using the "splashsource" environment
935 variable.
936
937 This CONFIG works as follows:
938
939 - If splashsource is set to a supported location name as defined by
940 board code, use that splash location.
941 - If splashsource is undefined, use the first splash location as
942 default.
943 - If splashsource is set to an unsupported value, do not load a splash
944 screen.
945
946 A splash source location can describe either storage with raw data, a
947 storage formatted with a file system or a FIT image. In case of a
948 filesystem, the splash screen data is loaded as a file. The name of
949 the splash screen file can be controlled with the environment variable
950 "splashfile".
951
952 To enable loading the splash image from a FIT image, CONFIG_FIT must
953 be enabled. The FIT image has to start at the 'offset' field address
954 in the selected splash location. The name of splash image within the
955 FIT shall be specified by the environment variable "splashfile".
956
957 In case the environment variable "splashfile" is not defined the
958 default name 'splash.bmp' will be used.
959
Simon Glass8b883a32022-10-18 06:24:16 -0600960endif # SPLASH_SCREEN
961
Simon Glasse0e27fe2023-09-14 10:55:42 -0600962config BMP
963 bool "Enable bmp image display"
964 help
965 Enable bmp functions to display bmp image and get bmp info.
966
967 BMP is a simple graphics-image file format designed to store bitmap
968 images. It is primarily used on Windows devices.
969
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +0200970config VIDEO_BMP_GZIP
971 bool "Gzip compressed BMP image support"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +0530972 depends on BMP || SPLASH_SCREEN
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +0200973 help
974 If this option is set, additionally to standard BMP
975 images, gzipped BMP images can be displayed via the
976 splashscreen support or the bmp command.
977
Simon Glass858198c2022-10-18 06:46:08 -0600978config VIDEO_LOGO_MAX_SIZE
Simon Glasscda7d0c2022-10-18 06:49:18 -0600979 hex "Maximum size of the bitmap logo in bytes"
980 default 0x100000
981 help
982 Sets the maximum uncompressed size of the logo. This is needed when
983 decompressing a BMP file using the gzip algorithm, since it cannot
984 read the size from the bitmap header.
Simon Glass858198c2022-10-18 06:46:08 -0600985
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200986config VIDEO_BMP_RLE8
987 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200988 help
989 If this option is set, the 8-bit RLE compressed BMP images
990 is supported.
991
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200992config BMP_16BPP
993 bool "16-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200994 help
995 Support display of bitmaps file with 16-bit-per-pixel
996
997config BMP_24BPP
998 bool "24-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200999 help
1000 Support display of bitmaps file with 24-bit-per-pixel.
1001
1002config BMP_32BPP
1003 bool "32-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001004 help
1005 Support display of bitmaps file with 32-bit-per-pixel.
1006
Simon Glass52cb5042022-10-18 07:46:31 -06001007endif # VIDEO
Simon Glass557786c2022-10-18 07:35:17 -06001008
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301009config SPL_VIDEO
John Keeping0a2daf32023-05-09 12:02:50 +01001010 bool "Enable driver model support for LCD/video in SPL"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301011 depends on SPL_DM
1012 help
1013 The video subsystem adds a small amount of overhead to the image.
1014 If this is acceptable and you have a need to use video drivers in
1015 SPL, enable this option. It might provide a cleaner interface to
1016 setting up video within SPL, and allows the same drivers to be
1017 used as U-Boot proper.
1018
1019if SPL_VIDEO
1020source "drivers/video/tidss/Kconfig"
1021
Simon Glass896409c2023-07-30 11:16:05 -06001022config SPL_VIDEO_HANDOFF
1023 bool "Pass the video frame-buffer through to U-Boot proper"
1024 depends on SPL_BLOBLIST
1025 default y if !X86
1026 help
1027 Enable this to set up video-handoff information in SPL which can be
1028 picked up in U-Boot proper. This includes the frame buffer and
1029 various other pieces of information. With this enabled, SPL can set
1030 up video and avoid re-initing it later.
1031
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301032config SPL_VIDEO_LOGO
1033 bool "Show the U-Boot logo on the display at SPL"
1034 default y if !SPL_SPLASH_SCREEN
1035 select SPL_VIDEO_BMP_RLE8
1036 help
1037 This enables showing the U-Boot logo on the display when a video
1038 device is probed. It appears at the top right. The logo itself is at
1039 tools/logos/u-boot_logo.bmp and looks best when the display has a
1040 black background.
1041
1042config SPL_SPLASH_SCREEN
1043 bool "Show a splash-screen image at SPL"
1044 help
1045 If this option is set, the environment is checked for a variable
1046 "splashimage" at spl stage.
1047
1048config SPL_SYS_WHITE_ON_BLACK
1049 bool "Display console as white on a black background at SPL"
1050 help
1051 Normally the display is black on a white background, Enable this
1052 option to invert this, i.e. white on a black background at spl stage.
1053 This can be better in low-light situations or to reduce eye strain in
1054 some cases.
1055
1056config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
1057 hex "Default framebuffer size to use if no drivers request it at SPL"
Bin Meng88fdb442023-07-23 12:40:30 +08001058 default 0x1000000 if X86
Bin Meng7c509a02023-07-23 12:40:31 +08001059 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinif18679c2023-08-02 11:09:43 -04001060 default 0x0 if !X86 && !VIDEO_BOCHS
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301061 help
1062 Generally, video drivers request the amount of memory they need for
1063 the frame buffer when they are bound, by setting the size field in
1064 struct video_uc_plat. That memory is then reserved for use after
1065 relocation. But PCI drivers cannot be bound before relocation unless
1066 they are mentioned in the devicetree.
1067
1068 With this value set appropriately, it is possible for PCI video
1069 devices to have a framebuffer allocated by U-Boot.
1070
1071 Note: the framebuffer needs to be large enough to store all pixels at
Bin Meng05241702023-07-23 12:40:29 +08001072 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301073 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
1074
1075config SPL_CONSOLE_SCROLL_LINES
1076 int "Number of lines to scroll the console by at SPL"
1077 default 1
1078 help
1079 When the console need to be scrolled, this is the number of
1080 lines to scroll by. It defaults to 1. Increasing this makes the
1081 console jump but can help speed up operation when scrolling
1082 is slow.
1083
1084config SPL_CONSOLE_NORMAL
1085 bool "Support a simple text console at SPL"
1086 default y
1087 help
1088 Support drawing text on the frame buffer console so that it can be
1089 used as a console. Rotation is not supported by this driver (see
1090 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
1091 for the display.
1092
1093config SPL_BACKLIGHT
1094 bool "Enable panel backlight uclass support at SPL"
1095 default y
1096 help
1097 This provides backlight uclass driver that enables basic panel
1098 backlight support.
1099
1100config SPL_PANEL
1101 bool "Enable panel uclass support at SPL"
1102 default y
1103 help
1104 This provides panel uclass driver that enables basic panel support.
1105
1106config SPL_SIMPLE_PANEL
1107 bool "Enable simple panel support at SPL"
1108 depends on SPL_PANEL && SPL_BACKLIGHT && SPL_DM_GPIO
1109 default y
1110 help
1111 This turns on a simple panel driver that enables a compatible
1112 video panel.
1113
1114config SPL_SYS_WHITE_ON_BLACK
1115 bool "Display console as white on a black background at SPL"
1116 help
1117 Normally the display is black on a white background, Enable this
1118 option to invert this, i.e. white on a black background at spl stage.
1119 This can be better in low-light situations or to reduce eye strain in
1120 some cases.
1121
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301122config SPL_VIDEO_REMOVE
1123 bool "Remove video driver after SPL stage"
1124 help
1125 if this option is enabled video driver will be removed at the end of
Bin Menga036d632023-08-03 18:40:08 +08001126 SPL stage, before loading the next stage.
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301127
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301128if SPL_SPLASH_SCREEN
1129
1130config SPL_SPLASH_SCREEN_ALIGN
1131 bool "Allow positioning the splash image anywhere on the display at SPL"
1132 help
1133 If this option is set the splash image can be freely positioned
1134 on the screen only at SPL. Environment variable "splashpos" specifies
1135 the position as "x,y". If a positive number is given it is used as
1136 number of pixel from left/top. If a negative number is given it
1137 is used as number of pixel from right/bottom.
1138
1139config SPL_SPLASH_SOURCE
1140 bool "Control the source of the splash image at SPL"
1141 help
1142 Use the splash_source.c library. This library provides facilities to
1143 declare board specific splash image locations, routines for loading
1144 splash image from supported locations, and a way of controlling the
1145 selected splash location using the "splashsource" environment
1146 variable.
1147
1148 This CONFIG works as follows:
1149
1150 - If splashsource is set to a supported location name as defined by
1151 board code, use that splash location.
1152 - If splashsource is undefined, use the first splash location as
1153 default.
1154 - If splashsource is set to an unsupported value, do not load a splash
1155 screen.
1156
1157 A splash source location can describe either storage with raw data, a
1158 storage formatted with a file system or a FIT image. In case of a
1159 filesystem, the splash screen data is loaded as a file. The name of
1160 the splash screen file can be controlled with the environment variable
1161 "splashfile".
1162
1163 To enable loading the splash image from a FIT image, CONFIG_FIT must
1164 be enabled. The FIT image has to start at the 'offset' field address
1165 in the selected splash location. The name of splash image within the
1166 FIT shall be specified by the environment variable "splashfile".
1167
1168 In case the environment variable "splashfile" is not defined the
1169 default name 'splash.bmp' will be used.
1170
1171endif # SPL_SPLASH_SCREEN
1172
Simon Glasse0e27fe2023-09-14 10:55:42 -06001173config SPL_BMP
1174 bool "Enable bmp image display at SPL"
1175 help
1176 Enable bmp functions to display bmp image and get bmp info in SPL.
1177
1178 BMP is a simple graphics-image file format designed to store bitmap
1179 images. It is primarily used on Windows devices.
1180
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301181config SPL_VIDEO_BMP_GZIP
1182 bool "Gzip compressed BMP image support at SPL"
1183 depends on SPL_SPLASH_SCREEN || SPL_BMP
1184 help
1185 If this option is set, additionally to standard BMP
1186 images, gzipped BMP images can be displayed via the
1187 splashscreen supportat SPL stage.
1188
1189config SPL_VIDEO_LOGO_MAX_SIZE
1190 hex "Maximum size of the bitmap logo in bytes at SPL"
1191 default 0x100000
1192 help
1193 Sets the maximum uncompressed size of the logo. This is needed when
1194 decompressing a BMP file using the gzip algorithm, since it cannot
1195 read the size from the bitmap header.
1196
1197config SPL_VIDEO_BMP_RLE8
1198 bool "Run length encoded BMP image (RLE8) support at SPL"
1199 help
1200 If this option is set, the 8-bit RLE compressed BMP images
1201 is supported.
1202
1203config SPL_BMP_16BPP
1204 bool "16-bit-per-pixel BMP image support at SPL"
1205 help
1206 Support display of bitmaps file with 16-bit-per-pixel
1207
1208config SPL_BMP_24BPP
1209 bool "24-bit-per-pixel BMP image support at SPL"
1210 help
1211 Support display of bitmaps file with 24-bit-per-pixel.
1212
1213config SPL_BMP_32BPP
1214 bool "32-bit-per-pixel BMP image support at SPL"
1215 help
1216 Support display of bitmaps file with 32-bit-per-pixel.
1217
1218config SPL_VIDEO_BPP8
1219 bool "Support 8-bit-per-pixel displays at SPL"
1220 default y
1221 help
1222 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
1223 Enabling this will include code to support this display. Without
1224 this option, such displays will not be supported and console output
1225 will be empty.
1226
1227config SPL_VIDEO_BPP16
1228 bool "Support 16-bit-per-pixel displays at SPL"
1229 default y
1230 help
1231 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
1232 Enabling this will include code to support this display. Without
1233 this option, such displays will not be supported and console output
1234 will be empty.
1235
1236config SPL_VIDEO_BPP32
1237 bool "Support 32-bit-per-pixel displays at SPL"
1238 default y
1239 help
1240 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
1241 Enabling this will include code to support this display. Without
1242 this option, such displays will not be supported and console output
1243 will be empty.
1244
1245config SPL_HIDE_LOGO_VERSION
1246 bool "Hide the version information on the splash screen at SPL"
1247 help
1248 Normally the U-Boot version string is shown on the display when the
1249 splash screen is enabled. This information is not otherwise visible
1250 since video starts up after U-Boot has displayed the initial banner.
1251
1252 Enable this option to hide this information.
1253endif
1254
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001255endmenu