blob: 6f319ba0d544efa45b18e5871e4a1ddd08b448ff [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"
Simon Glass2ef353e2016-01-14 18:10:42 -0700183 help
184 TrueTrype fonts can provide outline-drawing capability rather than
185 needing to provide a bitmap for each font and size that is needed.
186 With this option you can adjust the text size and use a variety of
187 fonts. Note that this is noticeably slower than with normal console.
188
189config CONSOLE_TRUETYPE_SIZE
190 int "TrueType font size"
191 depends on CONSOLE_TRUETYPE
192 default 18
193 help
194 This sets the font size for the console. The size is measured in
195 pixels and is the nominal height of a character. Note that fonts
196 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
197 However that measurement depends on the size of your display and
198 there is no standard display density. At present there is not a
199 method to select the display's physical size, which would allow
200 U-Boot to calculate the correct font size.
201
Simon Glass79597762022-10-06 08:36:11 -0600202config CONSOLE_TRUETYPE_MAX_METRICS
203 int "TrueType maximum number of font / size combinations"
204 depends on CONSOLE_TRUETYPE
205 default 10 if EXPO
206 default 1
207 help
208 This sets the number of font / size combinations which can be used by
209 the console. For simple console use a single font is enough. When
210 boot menus are in use, this may need to be increased.
211
212 Note that a separate entry is needed for each font size, even if the
213 font itself is the same. This is because the entry caches various
214 font metrics which are expensive to regenerate each time the font
215 size changes.
216
Simon Glassd65a1422017-04-26 22:27:57 -0600217config SYS_WHITE_ON_BLACK
218 bool "Display console as white on a black background"
Trevor Woerner513f6402020-05-06 08:02:41 -0400219 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glassd65a1422017-04-26 22:27:57 -0600220 help
221 Normally the display is black on a white background, Enable this
222 option to invert this, i.e. white on a black background. This can be
223 better in low-light situations or to reduce eye strain in some
224 cases.
225
Rob Clarkf1411882017-08-03 12:47:01 -0400226config NO_FB_CLEAR
227 bool "Skip framebuffer clear"
228 help
229 If firmware (whatever loads u-boot) has already put a splash image
230 on screen, you might want to preserve it until whatever u-boot
231 loads takes over the screen. This, for example, can be used to
232 keep splash image on screen until grub graphical boot menu starts.
233
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200234config PANEL
235 bool "Enable panel uclass support"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200236 default y
237 help
238 This provides panel uclass driver that enables basic panel support.
239
240config SIMPLE_PANEL
241 bool "Enable simple panel support"
Asherah Connor81b0f612021-03-03 14:46:47 +1100242 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200243 default y
244 help
245 This turns on a simple panel driver that enables a compatible
246 video panel.
247
Simon Glassf8360fe2022-10-06 08:36:07 -0600248config PANEL_HX8238D
249 bool "Enable Himax HX-8238D LCD driver"
250 depends on PANEL
251 help
252 Support for HX-8238D LCD Panel
253 The HX8238-D is a single chip controller and driver LSI that
254 integrates the power circuit.
255 It can drive a maximum 960x240 dot graphics on a-TFT panel
256 displays in 16M colors with dithering.
257
Simon Glass2ef353e2016-01-14 18:10:42 -0700258source "drivers/video/fonts/Kconfig"
259
Simon Glass86f07462016-02-06 14:31:37 -0700260config VIDCONSOLE_AS_LCD
Patrick Delaunay60b92242020-07-01 14:56:10 +0200261 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay60b92242020-07-01 14:56:10 +0200262 help
263 This is a work-around for boards which have 'lcd' or 'vga' in their
264 stdout environment variable, but have moved to use driver model for
265 video. In this case the console will no-longer work. While it is
266 possible to update the environment, the breakage may be confusing for
267 users. This option will be removed around the end of 2020.
268
269config VIDCONSOLE_AS_NAME
270 string "Use 'vidconsole' when string defined here is seen in stdout"
271 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin47020642020-05-23 17:11:20 +0200272 default "lcd" if LCD || TEGRA_COMMON
273 default "vga" if !LCD
Simon Glass86f07462016-02-06 14:31:37 -0700274 help
Anatolij Gustschin47020642020-05-23 17:11:20 +0200275 This is a work-around for boards which have 'lcd' or 'vga' in their
276 stdout environment variable, but have moved to use driver model for
277 video. In this case the console will no-longer work. While it is
278 possible to update the environment, the breakage may be confusing for
279 users. This option will be removed around the end of 2020.
Simon Glass86f07462016-02-06 14:31:37 -0700280
Simon Glass90ca96a2023-07-15 21:39:18 -0600281config VIDEO_BOCHS
282 bool "Enable Bochs video emulation for QEMU"
Simon Glass90ca96a2023-07-15 21:39:18 -0600283 help
284 Enable this to use the Bochs video support provided in the QEMU
285 emulator. This appears as a PCI device which U-Boot can set up to
286 provide a frame buffer.
287
288if VIDEO_BOCHS
289
290config VIDEO_BOCHS_SIZE_X
291 int "Width of display (X resolution)"
292 default 1280
293 help
294 Sets the width of the display.
295
296 These two options control the size of the display set up by QEMU.
297 Typical sizes are 1024 x 768 or 1280 x 1024.
298
299config VIDEO_BOCHS_SIZE_Y
300 int "High of display (Y resolution)"
301 default 1024
302 help
303 Sets the height of the display.
304
305 These two options control the size of the display set up by QEMU.
306 Typical sizes are 1024 x 768 or 1280 x 1024.
307
308endif
309
Bin Menga0676be2016-10-09 04:14:16 -0700310config VIDEO_COREBOOT
311 bool "Enable coreboot framebuffer driver support"
Simon Glassd2398ab2021-03-15 18:00:27 +1300312 depends on X86
Bin Menga0676be2016-10-09 04:14:16 -0700313 help
314 Turn on this option to enable a framebuffer driver when U-Boot is
315 loaded by coreboot where the graphics device is configured by
316 coreboot already. This can in principle be used with any platform
317 that coreboot supports.
318
Bin Meng0f862b92018-06-12 08:36:22 -0700319config VIDEO_EFI
320 bool "Enable EFI framebuffer driver support"
Simon Glass04c26ff2021-11-03 21:09:10 -0600321 depends on EFI_STUB || EFI_APP
Bin Meng0f862b92018-06-12 08:36:22 -0700322 help
323 Turn on this option to enable a framebuffeer driver when U-Boot is
324 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
325 the graphics device is configured by the EFI BIOS already. This can
326 in principle be used with any platform that has an EFI BIOS.
327
Simon Glass42bf3ee2014-12-29 19:32:28 -0700328config VIDEO_VESA
329 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-12-29 19:32:28 -0700330 help
331 Turn on this option to enable a very simple driver which uses vesa
332 to discover the video mode and then provides a frame buffer for use
333 by U-Boot. This can in principle be used with any platform that
334 supports PCI and video cards that support VESA BIOS Extension (VBE).
335
Bin Meng072b79d2015-05-11 07:36:29 +0800336config FRAMEBUFFER_SET_VESA_MODE
337 bool "Set framebuffer graphics resolution"
Simon Glassdec49b72016-03-11 22:07:30 -0700338 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng072b79d2015-05-11 07:36:29 +0800339 help
340 Set VESA/native framebuffer mode (needed for bootsplash and graphical
341 framebuffer console)
342
343choice
344 prompt "framebuffer graphics resolution"
Bin Meng4da8a3f2018-04-11 22:02:16 -0700345 default FRAMEBUFFER_VESA_MODE_118
Bin Meng072b79d2015-05-11 07:36:29 +0800346 depends on FRAMEBUFFER_SET_VESA_MODE
347 help
348 This option sets the resolution used for the U-Boot framebuffer (and
349 bootsplash screen).
350
351config FRAMEBUFFER_VESA_MODE_100
352 bool "640x400 256-color"
353
354config FRAMEBUFFER_VESA_MODE_101
355 bool "640x480 256-color"
356
357config FRAMEBUFFER_VESA_MODE_102
358 bool "800x600 16-color"
359
360config FRAMEBUFFER_VESA_MODE_103
361 bool "800x600 256-color"
362
363config FRAMEBUFFER_VESA_MODE_104
364 bool "1024x768 16-color"
365
366config FRAMEBUFFER_VESA_MODE_105
Bin Meng932adc62015-08-09 23:26:59 -0700367 bool "1024x768 256-color"
Bin Meng072b79d2015-05-11 07:36:29 +0800368
369config FRAMEBUFFER_VESA_MODE_106
370 bool "1280x1024 16-color"
371
372config FRAMEBUFFER_VESA_MODE_107
373 bool "1280x1024 256-color"
374
375config FRAMEBUFFER_VESA_MODE_108
376 bool "80x60 text"
377
378config FRAMEBUFFER_VESA_MODE_109
379 bool "132x25 text"
380
381config FRAMEBUFFER_VESA_MODE_10A
382 bool "132x43 text"
383
384config FRAMEBUFFER_VESA_MODE_10B
385 bool "132x50 text"
386
387config FRAMEBUFFER_VESA_MODE_10C
388 bool "132x60 text"
389
390config FRAMEBUFFER_VESA_MODE_10D
391 bool "320x200 32k-color (1:5:5:5)"
392
393config FRAMEBUFFER_VESA_MODE_10E
394 bool "320x200 64k-color (5:6:5)"
395
396config FRAMEBUFFER_VESA_MODE_10F
397 bool "320x200 16.8M-color (8:8:8)"
398
399config FRAMEBUFFER_VESA_MODE_110
400 bool "640x480 32k-color (1:5:5:5)"
401
402config FRAMEBUFFER_VESA_MODE_111
403 bool "640x480 64k-color (5:6:5)"
404
405config FRAMEBUFFER_VESA_MODE_112
406 bool "640x480 16.8M-color (8:8:8)"
407
408config FRAMEBUFFER_VESA_MODE_113
409 bool "800x600 32k-color (1:5:5:5)"
410
411config FRAMEBUFFER_VESA_MODE_114
412 bool "800x600 64k-color (5:6:5)"
413
414config FRAMEBUFFER_VESA_MODE_115
415 bool "800x600 16.8M-color (8:8:8)"
416
417config FRAMEBUFFER_VESA_MODE_116
418 bool "1024x768 32k-color (1:5:5:5)"
419
420config FRAMEBUFFER_VESA_MODE_117
421 bool "1024x768 64k-color (5:6:5)"
422
423config FRAMEBUFFER_VESA_MODE_118
424 bool "1024x768 16.8M-color (8:8:8)"
425
426config FRAMEBUFFER_VESA_MODE_119
427 bool "1280x1024 32k-color (1:5:5:5)"
428
429config FRAMEBUFFER_VESA_MODE_11A
430 bool "1280x1024 64k-color (5:6:5)"
431
432config FRAMEBUFFER_VESA_MODE_11B
433 bool "1280x1024 16.8M-color (8:8:8)"
434
435config FRAMEBUFFER_VESA_MODE_USER
436 bool "Manually select VESA mode"
437
438endchoice
439
440# Map the config names to an integer (KB).
441config FRAMEBUFFER_VESA_MODE
442 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
443 hex
444 default 0x100 if FRAMEBUFFER_VESA_MODE_100
445 default 0x101 if FRAMEBUFFER_VESA_MODE_101
446 default 0x102 if FRAMEBUFFER_VESA_MODE_102
447 default 0x103 if FRAMEBUFFER_VESA_MODE_103
448 default 0x104 if FRAMEBUFFER_VESA_MODE_104
449 default 0x105 if FRAMEBUFFER_VESA_MODE_105
450 default 0x106 if FRAMEBUFFER_VESA_MODE_106
451 default 0x107 if FRAMEBUFFER_VESA_MODE_107
452 default 0x108 if FRAMEBUFFER_VESA_MODE_108
453 default 0x109 if FRAMEBUFFER_VESA_MODE_109
454 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
455 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
456 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
457 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
458 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
459 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
460 default 0x110 if FRAMEBUFFER_VESA_MODE_110
461 default 0x111 if FRAMEBUFFER_VESA_MODE_111
462 default 0x112 if FRAMEBUFFER_VESA_MODE_112
463 default 0x113 if FRAMEBUFFER_VESA_MODE_113
464 default 0x114 if FRAMEBUFFER_VESA_MODE_114
465 default 0x115 if FRAMEBUFFER_VESA_MODE_115
466 default 0x116 if FRAMEBUFFER_VESA_MODE_116
467 default 0x117 if FRAMEBUFFER_VESA_MODE_117
468 default 0x118 if FRAMEBUFFER_VESA_MODE_118
469 default 0x119 if FRAMEBUFFER_VESA_MODE_119
470 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
471 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
472 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
473
Hans de Goededfc1efe2015-08-08 16:03:29 +0200474config VIDEO_LCD_ANX9804
475 bool "ANX9804 bridge chip"
Hans de Goededfc1efe2015-08-08 16:03:29 +0200476 ---help---
477 Support for the ANX9804 bridge chip, which can take pixel data coming
478 from a parallel LCD interface and translate it on the fy into a DP
479 interface for driving eDP TFT displays. It uses I2C for configuration.
480
Tom Rini4c047422022-03-18 08:38:28 -0400481config ATMEL_LCD
482 bool "Atmel LCD panel support"
Simon Glass557786c2022-10-18 07:35:17 -0600483 depends on ARCH_AT91
Tom Rini4c047422022-03-18 08:38:28 -0400484
485config ATMEL_LCD_BGR555
486 bool "Display in BGR555 mode"
487 help
488 Use the BGR555 output mode. Otherwise RGB565 is used.
489
Simon Glass7b3fabb2022-01-23 07:04:14 -0700490config VIDEO_BCM2835
491 bool "Display support for BCM2835"
492 help
493 The graphics processor already sets up the display so this driver
494 simply checks the resolution and then sets up the frame buffer with
495 that same resolution (or as near as possible) and 32bpp depth, so
496 that U-Boot can access it with full colour depth.
497
Svyatoslav Ryhelbd932b72023-04-25 10:51:47 +0300498config VIDEO_LCD_ENDEAVORU
499 tristate "Endeavoru 720x1280 DSI video mode panel"
500 depends on PANEL && BACKLIGHT
501 select VIDEO_MIPI_DSI
502 help
503 Say Y here if you want to enable support for the IPS-LCD panel
504 module for HTC One X. Driver supports a family of panels,
505 made at least by 3 vendors (Sharp, Sony and AUO), but set up
506 using the same DSI command sequence. The panel has a 720x1280
507 resolution and uses 24 bit RGB per pixel.
508
Ondrej Jirman55453d42023-05-25 14:34:35 +0200509config VIDEO_LCD_HIMAX_HX8394
510 bool "Himax HX8394 DSI LCD panel support"
511 depends on PANEL && BACKLIGHT
512 select VIDEO_MIPI_DSI
513 help
514 Say Y here if you want to enable support for Himax HX8394
515 dsi 4dl panel.
516
Yannick Fertré5b855d42019-10-07 15:29:08 +0200517config VIDEO_LCD_ORISETECH_OTM8009A
518 bool "OTM8009A DSI LCD panel support"
Yannick Fertré5b855d42019-10-07 15:29:08 +0200519 select VIDEO_MIPI_DSI
Yannick Fertré5b855d42019-10-07 15:29:08 +0200520 help
521 Say Y here if you want to enable support for Orise Technology
522 otm8009a 480x800 dsi 2dl panel.
523
Yannick Fertréb038fed2019-10-07 15:29:09 +0200524config VIDEO_LCD_RAYDIUM_RM68200
525 bool "RM68200 DSI LCD panel support"
Yannick Fertréb038fed2019-10-07 15:29:09 +0200526 select VIDEO_MIPI_DSI
Yannick Fertréb038fed2019-10-07 15:29:09 +0200527 help
528 Say Y here if you want to enable support for Raydium RM68200
529 720x1280 DSI video mode panel.
530
Svyatoslav Ryhelb9054982023-04-25 10:51:44 +0300531config VIDEO_LCD_RENESAS_R61307
532 tristate "Renesas R61307 DSI video mode panel"
533 depends on PANEL && BACKLIGHT
534 select VIDEO_MIPI_DSI
535 help
536 Say Y here if you want to enable support for KOE tx13d100vm0eaa
537 IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
538 resolution and uses 24 bit RGB per pixel.
539
Svyatoslav Ryhelfcbbd562023-04-25 10:51:45 +0300540config VIDEO_LCD_RENESAS_R69328
541 tristate "Renesas R69328 720x1280 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 JDI dx12d100vm0eaa
546 IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
547 resolution and uses 24 bit RGB per pixel.
548
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200549config VIDEO_LCD_SSD2828
550 bool "SSD2828 bridge chip"
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200551 ---help---
552 Support for the SSD2828 bridge chip, which can take pixel data coming
553 from a parallel LCD interface and translate it on the fly into MIPI DSI
554 interface for driving a MIPI compatible LCD panel. It uses SPI for
555 configuration.
556
557config VIDEO_LCD_SSD2828_TX_CLK
558 int "SSD2828 TX_CLK frequency (in MHz)"
559 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200560 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200561 ---help---
562 The frequency of the crystal, which is clocking SSD2828. It may be
563 anything in the 8MHz-30MHz range and the exact value should be
564 retrieved from the board schematics. Or in the case of Allwinner
565 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200566 FEX files. It can be also set to 0 for selecting PCLK from the
567 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200568
569config VIDEO_LCD_SSD2828_RESET
570 string "RESET pin of SSD2828"
571 depends on VIDEO_LCD_SSD2828
572 default ""
573 ---help---
574 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500575 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200576
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200577config VIDEO_LCD_TDO_TL070WSH30
578 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200579 select VIDEO_MIPI_DSI
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200580 help
581 Say Y here if you want to enable support for TDO TL070WSH30
582 1024x600 DSI video mode panel.
583
Hans de Goedec0482032015-01-20 09:22:26 +0100584config VIDEO_LCD_HITACHI_TX18D42VM
585 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedec0482032015-01-20 09:22:26 +0100586 ---help---
587 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
588 lcd controller which needs to be initialized over SPI, once that is
589 done they work like a regular LVDS panel.
590
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200591config VIDEO_LCD_SPI_CS
592 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100593 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200594 default ""
595 ---help---
596 This is one of the SPI communication pins, involved in setting up a
597 working LCD configuration. The exact role of SPI may differ for
598 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500599 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200600
601config VIDEO_LCD_SPI_SCLK
602 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100603 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200604 default ""
605 ---help---
606 This is one of the SPI communication pins, involved in setting up a
607 working LCD configuration. The exact role of SPI may differ for
608 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500609 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200610
611config VIDEO_LCD_SPI_MOSI
612 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100613 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200614 default ""
615 ---help---
616 This is one of the SPI communication pins, involved in setting up a
617 working LCD configuration. The exact role of SPI may differ for
618 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500619 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200620
621config VIDEO_LCD_SPI_MISO
622 string "SPI MISO pin for LCD related config job (optional)"
623 depends on VIDEO_LCD_SSD2828
624 default ""
625 ---help---
626 This is one of the SPI communication pins, involved in setting up a
627 working LCD configuration. The exact role of SPI may differ for
628 different hardware setups. If wired up, this pin may provide additional
629 useful functionality. Such as bi-directional communication with the
630 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500631 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200632 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600633
Neil Armstrongadd986c2018-07-24 17:45:28 +0200634source "drivers/video/meson/Kconfig"
635
Stefan Roeseab91fd52016-01-20 08:13:28 +0100636config VIDEO_MVEBU
637 bool "Armada XP LCD controller"
Stefan Roeseab91fd52016-01-20 08:13:28 +0100638 ---help---
639 Support for the LCD controller integrated in the Marvell
640 Armada XP SoC.
641
Adam Ford60a59d42018-08-02 08:50:20 -0500642config VIDEO_OMAP3
643 bool "Enable OMAP3+ DSS Support"
644 depends on ARCH_OMAP2PLUS
645 help
646 This enables the Display subsystem (DSS) on OMAP3+ boards.
647
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100648config I2C_EDID
649 bool "Enable EDID library"
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100650 help
651 This enables library for accessing EDID data from an LCD panel.
652
Simon Glass7d3d7762016-01-21 19:45:00 -0700653config DISPLAY
654 bool "Enable Display support"
655 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100656 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600657 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700658 This supports drivers that provide a display, such as eDP (Embedded
659 DisplayPort) and HDMI (High Definition Multimedia Interface).
660 The devices provide a simple interface to start up the display,
661 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600662
Liviu Dudau33967102018-09-28 13:49:31 +0100663config NXP_TDA19988
664 bool "Enable NXP TDA19988 support"
665 depends on DISPLAY
Liviu Dudau33967102018-09-28 13:49:31 +0100666 help
667 This enables support for the NXP TDA19988 HDMI encoder. This encoder
668 will convert RGB data streams into HDMI-encoded signals.
669
Songjun Wu72ac56a2017-04-11 16:33:30 +0800670config ATMEL_HLCD
671 bool "Enable ATMEL video support using HLCDC"
Songjun Wu72ac56a2017-04-11 16:33:30 +0800672 help
673 HLCDC supports video output to an attached LCD panel.
674
Svyatoslav Ryhel3e9488a2023-04-25 10:51:42 +0300675config BACKLIGHT_LM3533
676 bool "Backlight Driver for LM3533"
677 depends on BACKLIGHT
678 select DM_I2C
679 help
680 Say Y to enable the backlight driver for National Semiconductor / TI
681 LM3533 Lighting Power chip. Only Bank A is supported as for now.
682 Supported backlight level range is from 2 to 255 with step of 1.
683
Dario Binacchi260bdb32023-01-28 16:55:31 +0100684source "drivers/video/ti/Kconfig"
685
Tom Rini3eeabf52022-06-10 22:59:34 -0400686source "drivers/video/exynos/Kconfig"
687
Mario Sixc13ee192018-08-09 14:51:23 +0200688config LOGICORE_DP_TX
689 bool "Enable Logicore DP TX driver"
690 depends on DISPLAY
691 help
692 Enable the driver for the transmitter part of the Xilinx LogiCORE
693 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
694 video interface as defined by VESA DisplayPort v1.2.
695
696 Note that this is a pure transmitter device, and has no display
697 capabilities by itself.
698
Simon Glassdec49b72016-03-11 22:07:30 -0700699config VIDEO_BROADWELL_IGD
700 bool "Enable Intel Broadwell integrated graphics device"
701 depends on X86
702 help
Simon Glassa3fdd002016-10-05 20:42:14 -0600703 This enables support for integrated graphics on Intel broadwell
Simon Glassdec49b72016-03-11 22:07:30 -0700704 devices. Initialisation is mostly performed by a VGA boot ROM, with
705 some setup handled by U-Boot itself. The graphics adaptor works as
706 a VESA device and supports LCD panels, eDP and LVDS outputs.
707 Configuration of most aspects of device operation is performed using
708 a special tool which configures the VGA ROM, but the graphics
709 resolution can be selected in U-Boot.
710
Simon Glass03f2a512016-10-05 20:42:15 -0600711config VIDEO_IVYBRIDGE_IGD
712 bool "Enable Intel Ivybridge integration graphics support"
713 depends on X86
714 help
715 This enables support for integrated graphics on Intel ivybridge
716 devices. Initialisation is mostly performed by a VGA boot ROM, with
717 some setup handled by U-Boot itself. The graphics adaptor works as
718 a VESA device and supports LCD panels, eDP and LVDS outputs.
719 Configuration of most aspects of device operation is performed using
720 a special tool which configures the VGA ROM, but the graphics
721 resolution can be selected in U-Boot.
722
eric.gao@rock-chips.com735ddea2017-04-17 22:24:23 +0800723source "drivers/video/rockchip/Kconfig"
Simon Glass0139ae62016-01-21 19:45:03 -0700724
Liviu Dudau8373ed32018-09-28 13:50:53 +0100725config VIDEO_ARM_MALIDP
726 bool "Enable Arm Mali Display Processor support"
Simon Glass557786c2022-10-18 07:35:17 -0600727 depends on OF_CONTROL
Liviu Dudau8373ed32018-09-28 13:50:53 +0100728 select VEXPRESS_CLK
729 help
730 This enables support for Arm Ltd Mali Display Processors from
731 the DP500, DP550 and DP650 family.
732
Simon Glass161eea72016-01-18 19:52:24 -0700733config VIDEO_SANDBOX_SDL
734 bool "Enable sandbox video console using SDL"
Tom Riniea79bb72022-11-19 18:45:43 -0500735 depends on SANDBOX_SDL
Simon Glass161eea72016-01-18 19:52:24 -0700736 help
737 When using sandbox you can enable an emulated LCD display which
738 appears as an SDL (Simple DirectMedia Layer) window. This is a
739 console device and can display stdout output. Within U-Boot is is
740 a normal bitmap display and can display images as well as text.
741
Philippe CORNUdcbad9a2017-08-03 12:36:08 +0200742source "drivers/video/stm32/Kconfig"
743
Nikhil M Jain94272742023-01-31 15:35:17 +0530744source "drivers/video/tidss/Kconfig"
745
Simon Glass3ef2a722015-04-14 21:03:42 -0600746config VIDEO_TEGRA124
747 bool "Enable video support on Tegra124"
748 help
749 Tegra124 supports many video output options including eDP and
750 HDMI. At present only eDP is supported by U-Boot. This option
751 enables this support which can be used on devices which
752 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600753
754source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900755
Svyatoslav Ryheld15683f2023-03-27 11:11:41 +0300756source "drivers/video/tegra20/Kconfig"
757
Anatolij Gustschin411e73d2019-03-18 23:29:32 +0100758source "drivers/video/imx/Kconfig"
Anatolij Gustschin983e2f2a2019-03-18 23:29:31 +0100759
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200760config VIDEO_MXS
761 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200762 help
763 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
764
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200765config VIDEO_NX
766 bool "Enable video support on Nexell SoC"
767 depends on ARCH_S5P6818 || ARCH_S5P4418
768 help
769 Nexell SoC supports many video output options including eDP and
770 HDMI. This option enables this support which can be used on devices
771 which have an eDP display connected.
772
Michal Simek32058b82020-12-03 09:31:35 +0100773config VIDEO_SEPS525
774 bool "Enable video support for Seps525"
Simon Glass557786c2022-10-18 07:35:17 -0600775 depends on DM_GPIO
Michal Simek32058b82020-12-03 09:31:35 +0100776 help
777 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
778 Currently driver is supporting only SPI interface.
779
Venkatesh Yadav Abbarapue3679802023-05-17 10:42:09 +0200780source "drivers/video/zynqmp/Kconfig"
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200781source "drivers/video/nexell/Kconfig"
782
Simon Glassd76f29a2016-10-17 20:12:57 -0600783config CONSOLE_SCROLL_LINES
784 int "Number of lines to scroll the console by"
Simon Glassd76f29a2016-10-17 20:12:57 -0600785 default 1
786 help
787 When the console need to be scrolled, this is the number of
788 lines to scroll by. It defaults to 1. Increasing this makes the
789 console jump but can help speed up operation when scrolling
790 is slow.
791
Philipp Tomsich3a53b3e2017-05-05 21:48:26 +0200792config VIDEO_DW_HDMI
793 bool
794 help
795 Enables the common driver code for the Designware HDMI TX
796 block found in SoCs from various vendors.
797 As this does not provide any functionality by itself (but
798 rather requires a SoC-specific glue driver to call it), it
799 can not be enabled from the configuration menu.
800
Yannick Fertré9712c822019-10-07 15:29:05 +0200801config VIDEO_DSI_HOST_SANDBOX
802 bool "Enable sandbox for dsi host"
803 depends on SANDBOX
804 select VIDEO_MIPI_DSI
805 help
806 Enable support for sandbox dsi host device used for testing
807 purposes.
808 Display Serial Interface (DSI) defines a serial bus and
809 a communication protocol between the host and the device
810 (panel, bridge).
811
Yannick Fertré764af462019-10-07 15:29:06 +0200812config VIDEO_DW_MIPI_DSI
813 bool
814 select VIDEO_MIPI_DSI
815 help
816 Enables the common driver code for the Synopsis Designware
817 MIPI DSI block found in SoCs from various vendors.
818 As this does not provide any functionality by itself (but
819 rather requires a SoC-specific glue driver to call it), it
820 can not be enabled from the configuration menu.
821
Rob Clarkcf7ab0c2017-08-03 12:47:00 -0400822config VIDEO_SIMPLE
823 bool "Simple display driver for preconfigured display"
824 help
825 Enables a simple generic display driver which utilizes the
826 simple-framebuffer devicetree bindings.
827
828 This driver assumes that the display hardware has been initialized
829 before u-boot starts, and u-boot will simply render to the pre-
830 allocated frame buffer surface.
831
Icenowy Zheng60e4b8f2017-10-26 11:14:46 +0800832config VIDEO_DT_SIMPLEFB
833 bool "Enable SimpleFB support for passing framebuffer to OS"
834 help
835 Enables the code to pass the framebuffer to the kernel as a
836 simple framebuffer in the device tree.
837 The video output is initialized by U-Boot, and kept by the
838 kernel.
839
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200840config VIDEO_MCDE_SIMPLE
841 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200842 help
843 Enables a simple display driver for ST-Ericsson MCDE
844 (Multichannel Display Engine), which reads the configuration from
845 the MCDE registers.
846
847 This driver assumes that the display hardware has been initialized
848 before u-boot starts, and u-boot will simply render to the pre-
849 allocated frame buffer surface.
850
Mario Six1b773202018-09-27 09:19:29 +0200851config OSD
852 bool "Enable OSD support"
853 depends on DM
Mario Six1b773202018-09-27 09:19:29 +0200854 help
855 This supports drivers that provide a OSD (on-screen display), which
856 is a (usually text-oriented) graphics buffer to show information on
857 a display.
Mario Six8ea19da2018-09-27 09:19:30 +0200858
Mario Six02ad6fb2018-09-27 09:19:31 +0200859config SANDBOX_OSD
860 bool "Enable sandbox OSD"
861 depends on OSD
862 help
863 Enable support for sandbox OSD device used for testing purposes.
864
Mario Six8ea19da2018-09-27 09:19:30 +0200865config IHS_VIDEO_OUT
866 bool "Enable IHS video out driver"
867 depends on OSD
868 help
869 Enable support for the gdsys Integrated Hardware Systems (IHS) video
870 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
871 textual overlays of the display outputs.
872
Nikhil M Jain085f1dd2023-07-18 14:27:32 +0530873config VIDEO_REMOVE
874 bool "Remove video driver"
875 help
876 Use this option to specify if user wants to call remove method of
877 video driver in u-boot proper stage.
878
Simon Glass2d7a7942020-08-11 11:23:35 -0600879config SPLASH_SCREEN
880 bool "Show a splash-screen image"
881 help
882 If this option is set, the environment is checked for a variable
883 "splashimage". If found, the usual display of logo, copyright and
884 system information on the LCD is suppressed and the BMP image at the
885 address specified in "splashimage" is loaded instead. The console is
886 redirected to the "nulldev", too. This allows for a "silent" boot
887 where a splash screen is loaded very quickly after power-on.
888
889 The splash_screen_prepare() function is a weak function defined in
890 common/splash.c. It is called as part of the splash screen display
891 sequence. It gives the board an opportunity to prepare the splash
892 image data before it is processed and sent to the frame buffer by
893 U-Boot. Define your own version to use this feature.
894
Simon Glass8b883a32022-10-18 06:24:16 -0600895if SPLASH_SCREEN
896
Simon Glass2d7a7942020-08-11 11:23:35 -0600897config SPLASH_SCREEN_ALIGN
898 bool "Allow positioning the splash image anywhere on the display"
Simon Glass2d7a7942020-08-11 11:23:35 -0600899 help
900 If this option is set the splash image can be freely positioned
901 on the screen. Environment variable "splashpos" specifies the
902 position as "x,y". If a positive number is given it is used as
903 number of pixel from left/top. If a negative number is given it
904 is used as number of pixel from right/bottom. You can also
905 specify 'm' for centering the image.
906
907 Example:
908 setenv splashpos m,m
909 => image at center of screen
910
911 setenv splashpos 30,20
912 => image at x = 30 and y = 20
913
914 setenv splashpos -10,m
915 => vertically centered image
916 at x = dspWidth - bmpWidth - 9
917
Simon Glass45c0a7e2022-10-18 06:30:56 -0600918config HIDE_LOGO_VERSION
919 bool "Hide the version information on the splash screen"
920 help
921 Normally the U-Boot version string is shown on the display when the
922 splash screen is enabled. This information is not otherwise visible
923 since video starts up after U-Boot has displayed the initial banner.
924
925 Enable this option to hide this information.
926
Simon Glass2d7a7942020-08-11 11:23:35 -0600927config SPLASH_SOURCE
928 bool "Control the source of the splash image"
Simon Glass2d7a7942020-08-11 11:23:35 -0600929 help
930 Use the splash_source.c library. This library provides facilities to
931 declare board specific splash image locations, routines for loading
932 splash image from supported locations, and a way of controlling the
933 selected splash location using the "splashsource" environment
934 variable.
935
936 This CONFIG works as follows:
937
938 - If splashsource is set to a supported location name as defined by
939 board code, use that splash location.
940 - If splashsource is undefined, use the first splash location as
941 default.
942 - If splashsource is set to an unsupported value, do not load a splash
943 screen.
944
945 A splash source location can describe either storage with raw data, a
946 storage formatted with a file system or a FIT image. In case of a
947 filesystem, the splash screen data is loaded as a file. The name of
948 the splash screen file can be controlled with the environment variable
949 "splashfile".
950
951 To enable loading the splash image from a FIT image, CONFIG_FIT must
952 be enabled. The FIT image has to start at the 'offset' field address
953 in the selected splash location. The name of splash image within the
954 FIT shall be specified by the environment variable "splashfile".
955
956 In case the environment variable "splashfile" is not defined the
957 default name 'splash.bmp' will be used.
958
Simon Glass8b883a32022-10-18 06:24:16 -0600959endif # SPLASH_SCREEN
960
Simon Glasse0e27fe2023-09-14 10:55:42 -0600961config BMP
962 bool "Enable bmp image display"
963 help
964 Enable bmp functions to display bmp image and get bmp info.
965
966 BMP is a simple graphics-image file format designed to store bitmap
967 images. It is primarily used on Windows devices.
968
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +0200969config VIDEO_BMP_GZIP
970 bool "Gzip compressed BMP image support"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +0530971 depends on BMP || SPLASH_SCREEN
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +0200972 help
973 If this option is set, additionally to standard BMP
974 images, gzipped BMP images can be displayed via the
975 splashscreen support or the bmp command.
976
Simon Glass858198c2022-10-18 06:46:08 -0600977config VIDEO_LOGO_MAX_SIZE
Simon Glasscda7d0c2022-10-18 06:49:18 -0600978 hex "Maximum size of the bitmap logo in bytes"
979 default 0x100000
980 help
981 Sets the maximum uncompressed size of the logo. This is needed when
982 decompressing a BMP file using the gzip algorithm, since it cannot
983 read the size from the bitmap header.
Simon Glass858198c2022-10-18 06:46:08 -0600984
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200985config VIDEO_BMP_RLE8
986 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200987 help
988 If this option is set, the 8-bit RLE compressed BMP images
989 is supported.
990
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200991config BMP_16BPP
992 bool "16-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200993 help
994 Support display of bitmaps file with 16-bit-per-pixel
995
996config BMP_24BPP
997 bool "24-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200998 help
999 Support display of bitmaps file with 24-bit-per-pixel.
1000
1001config BMP_32BPP
1002 bool "32-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +02001003 help
1004 Support display of bitmaps file with 32-bit-per-pixel.
1005
Simon Glass52cb5042022-10-18 07:46:31 -06001006endif # VIDEO
Simon Glass557786c2022-10-18 07:35:17 -06001007
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301008config SPL_VIDEO
John Keeping0a2daf32023-05-09 12:02:50 +01001009 bool "Enable driver model support for LCD/video in SPL"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301010 depends on SPL_DM
1011 help
1012 The video subsystem adds a small amount of overhead to the image.
1013 If this is acceptable and you have a need to use video drivers in
1014 SPL, enable this option. It might provide a cleaner interface to
1015 setting up video within SPL, and allows the same drivers to be
1016 used as U-Boot proper.
1017
1018if SPL_VIDEO
1019source "drivers/video/tidss/Kconfig"
1020
Simon Glass896409c2023-07-30 11:16:05 -06001021config SPL_VIDEO_HANDOFF
1022 bool "Pass the video frame-buffer through to U-Boot proper"
1023 depends on SPL_BLOBLIST
1024 default y if !X86
1025 help
1026 Enable this to set up video-handoff information in SPL which can be
1027 picked up in U-Boot proper. This includes the frame buffer and
1028 various other pieces of information. With this enabled, SPL can set
1029 up video and avoid re-initing it later.
1030
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301031config SPL_VIDEO_LOGO
1032 bool "Show the U-Boot logo on the display at SPL"
1033 default y if !SPL_SPLASH_SCREEN
1034 select SPL_VIDEO_BMP_RLE8
1035 help
1036 This enables showing the U-Boot logo on the display when a video
1037 device is probed. It appears at the top right. The logo itself is at
1038 tools/logos/u-boot_logo.bmp and looks best when the display has a
1039 black background.
1040
1041config SPL_SPLASH_SCREEN
1042 bool "Show a splash-screen image at SPL"
1043 help
1044 If this option is set, the environment is checked for a variable
1045 "splashimage" at spl stage.
1046
1047config SPL_SYS_WHITE_ON_BLACK
1048 bool "Display console as white on a black background at SPL"
1049 help
1050 Normally the display is black on a white background, Enable this
1051 option to invert this, i.e. white on a black background at spl stage.
1052 This can be better in low-light situations or to reduce eye strain in
1053 some cases.
1054
1055config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
1056 hex "Default framebuffer size to use if no drivers request it at SPL"
Bin Meng88fdb442023-07-23 12:40:30 +08001057 default 0x1000000 if X86
Bin Meng7c509a02023-07-23 12:40:31 +08001058 default 0x800000 if !X86 && VIDEO_BOCHS
Tom Rinif18679c2023-08-02 11:09:43 -04001059 default 0x0 if !X86 && !VIDEO_BOCHS
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301060 help
1061 Generally, video drivers request the amount of memory they need for
1062 the frame buffer when they are bound, by setting the size field in
1063 struct video_uc_plat. That memory is then reserved for use after
1064 relocation. But PCI drivers cannot be bound before relocation unless
1065 they are mentioned in the devicetree.
1066
1067 With this value set appropriately, it is possible for PCI video
1068 devices to have a framebuffer allocated by U-Boot.
1069
1070 Note: the framebuffer needs to be large enough to store all pixels at
Bin Meng05241702023-07-23 12:40:29 +08001071 maximum resolution. For example, at 2560 x 1600 with 32 bits per
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301072 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
1073
1074config SPL_CONSOLE_SCROLL_LINES
1075 int "Number of lines to scroll the console by at SPL"
1076 default 1
1077 help
1078 When the console need to be scrolled, this is the number of
1079 lines to scroll by. It defaults to 1. Increasing this makes the
1080 console jump but can help speed up operation when scrolling
1081 is slow.
1082
1083config SPL_CONSOLE_NORMAL
1084 bool "Support a simple text console at SPL"
1085 default y
1086 help
1087 Support drawing text on the frame buffer console so that it can be
1088 used as a console. Rotation is not supported by this driver (see
1089 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
1090 for the display.
1091
1092config SPL_BACKLIGHT
1093 bool "Enable panel backlight uclass support at SPL"
1094 default y
1095 help
1096 This provides backlight uclass driver that enables basic panel
1097 backlight support.
1098
1099config SPL_PANEL
1100 bool "Enable panel uclass support at SPL"
1101 default y
1102 help
1103 This provides panel uclass driver that enables basic panel support.
1104
1105config SPL_SIMPLE_PANEL
1106 bool "Enable simple panel support at SPL"
1107 depends on SPL_PANEL && SPL_BACKLIGHT && SPL_DM_GPIO
1108 default y
1109 help
1110 This turns on a simple panel driver that enables a compatible
1111 video panel.
1112
1113config SPL_SYS_WHITE_ON_BLACK
1114 bool "Display console as white on a black background at SPL"
1115 help
1116 Normally the display is black on a white background, Enable this
1117 option to invert this, i.e. white on a black background at spl stage.
1118 This can be better in low-light situations or to reduce eye strain in
1119 some cases.
1120
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301121config SPL_VIDEO_REMOVE
1122 bool "Remove video driver after SPL stage"
1123 help
1124 if this option is enabled video driver will be removed at the end of
Bin Menga036d632023-08-03 18:40:08 +08001125 SPL stage, before loading the next stage.
Nikhil M Jain085f1dd2023-07-18 14:27:32 +05301126
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301127if SPL_SPLASH_SCREEN
1128
1129config SPL_SPLASH_SCREEN_ALIGN
1130 bool "Allow positioning the splash image anywhere on the display at SPL"
1131 help
1132 If this option is set the splash image can be freely positioned
1133 on the screen only at SPL. Environment variable "splashpos" specifies
1134 the position as "x,y". If a positive number is given it is used as
1135 number of pixel from left/top. If a negative number is given it
1136 is used as number of pixel from right/bottom.
1137
1138config SPL_SPLASH_SOURCE
1139 bool "Control the source of the splash image at SPL"
1140 help
1141 Use the splash_source.c library. This library provides facilities to
1142 declare board specific splash image locations, routines for loading
1143 splash image from supported locations, and a way of controlling the
1144 selected splash location using the "splashsource" environment
1145 variable.
1146
1147 This CONFIG works as follows:
1148
1149 - If splashsource is set to a supported location name as defined by
1150 board code, use that splash location.
1151 - If splashsource is undefined, use the first splash location as
1152 default.
1153 - If splashsource is set to an unsupported value, do not load a splash
1154 screen.
1155
1156 A splash source location can describe either storage with raw data, a
1157 storage formatted with a file system or a FIT image. In case of a
1158 filesystem, the splash screen data is loaded as a file. The name of
1159 the splash screen file can be controlled with the environment variable
1160 "splashfile".
1161
1162 To enable loading the splash image from a FIT image, CONFIG_FIT must
1163 be enabled. The FIT image has to start at the 'offset' field address
1164 in the selected splash location. The name of splash image within the
1165 FIT shall be specified by the environment variable "splashfile".
1166
1167 In case the environment variable "splashfile" is not defined the
1168 default name 'splash.bmp' will be used.
1169
1170endif # SPL_SPLASH_SCREEN
1171
Simon Glasse0e27fe2023-09-14 10:55:42 -06001172config SPL_BMP
1173 bool "Enable bmp image display at SPL"
1174 help
1175 Enable bmp functions to display bmp image and get bmp info in SPL.
1176
1177 BMP is a simple graphics-image file format designed to store bitmap
1178 images. It is primarily used on Windows devices.
1179
Nikhil M Jain9fa24c12023-04-20 17:40:59 +05301180config SPL_VIDEO_BMP_GZIP
1181 bool "Gzip compressed BMP image support at SPL"
1182 depends on SPL_SPLASH_SCREEN || SPL_BMP
1183 help
1184 If this option is set, additionally to standard BMP
1185 images, gzipped BMP images can be displayed via the
1186 splashscreen supportat SPL stage.
1187
1188config SPL_VIDEO_LOGO_MAX_SIZE
1189 hex "Maximum size of the bitmap logo in bytes at SPL"
1190 default 0x100000
1191 help
1192 Sets the maximum uncompressed size of the logo. This is needed when
1193 decompressing a BMP file using the gzip algorithm, since it cannot
1194 read the size from the bitmap header.
1195
1196config SPL_VIDEO_BMP_RLE8
1197 bool "Run length encoded BMP image (RLE8) support at SPL"
1198 help
1199 If this option is set, the 8-bit RLE compressed BMP images
1200 is supported.
1201
1202config SPL_BMP_16BPP
1203 bool "16-bit-per-pixel BMP image support at SPL"
1204 help
1205 Support display of bitmaps file with 16-bit-per-pixel
1206
1207config SPL_BMP_24BPP
1208 bool "24-bit-per-pixel BMP image support at SPL"
1209 help
1210 Support display of bitmaps file with 24-bit-per-pixel.
1211
1212config SPL_BMP_32BPP
1213 bool "32-bit-per-pixel BMP image support at SPL"
1214 help
1215 Support display of bitmaps file with 32-bit-per-pixel.
1216
1217config SPL_VIDEO_BPP8
1218 bool "Support 8-bit-per-pixel displays at SPL"
1219 default y
1220 help
1221 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
1222 Enabling this will include code to support this display. Without
1223 this option, such displays will not be supported and console output
1224 will be empty.
1225
1226config SPL_VIDEO_BPP16
1227 bool "Support 16-bit-per-pixel displays at SPL"
1228 default y
1229 help
1230 Support drawing text and bitmaps onto a 16-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_BPP32
1236 bool "Support 32-bit-per-pixel displays at SPL"
1237 default y
1238 help
1239 Support drawing text and bitmaps onto a 32-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_HIDE_LOGO_VERSION
1245 bool "Hide the version information on the splash screen at SPL"
1246 help
1247 Normally the U-Boot version string is shown on the display when the
1248 splash screen is enabled. This information is not otherwise visible
1249 since video starts up after U-Boot has displayed the initial banner.
1250
1251 Enable this option to hide this information.
1252endif
1253
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001254endmenu