blob: ebbf3d7c8c1705e6e3909ce7a64fd0a0e521053e [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"
Simon Glassc3d2f352020-07-02 21:12:33 -060067 default 0x1000000 if X86 && PCI
68 default 0 if !(X86 && PCI)
69 help
70 Generally, video drivers request the amount of memory they need for
71 the frame buffer when they are bound, by setting the size field in
Dario Binacchi2ec85772021-01-23 19:43:52 +010072 struct video_uc_plat. That memory is then reserved for use after
Simon Glassc3d2f352020-07-02 21:12:33 -060073 relocation. But PCI drivers cannot be bound before relocation unless
74 they are mentioned in the devicetree.
75
76 With this value set appropriately, it is possible for PCI video
77 devices to have a framebuffer allocated by U-Boot.
78
79 Note: the framebuffer needs to be large enough to store all pixels at
80 maximum resolution. For example, at 1920 x 1200 with 32 bits per
81 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
82
Simon Glass73c9c372020-07-02 21:12:20 -060083config VIDEO_COPY
84 bool "Enable copying the frame buffer to a hardware copy"
Simon Glass73c9c372020-07-02 21:12:20 -060085 help
86 On some machines (e.g. x86), reading from the frame buffer is very
87 slow because it is uncached. To improve performance, this feature
88 allows the frame buffer to be kept in cached memory (allocated by
89 U-Boot) and then copied to the hardware frame-buffer as needed.
90
91 To use this, your video driver must set @copy_base in
Dario Binacchi2ec85772021-01-23 19:43:52 +010092 struct video_uc_plat.
Simon Glass73c9c372020-07-02 21:12:20 -060093
Patrick Delaunay4300f072017-08-03 12:36:06 +020094config BACKLIGHT_PWM
95 bool "Generic PWM based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +020096 depends on BACKLIGHT && DM_PWM
Patrick Delaunay4300f072017-08-03 12:36:06 +020097 default y
98 help
99 If you have a LCD backlight adjustable by PWM, say Y to enable
100 this driver.
101 This driver can be use with "simple-panel" and
102 it understands the standard device tree
103 (leds/backlight/pwm-backlight.txt)
104
Patrick Delaunaya3c046f2017-08-03 12:36:07 +0200105config BACKLIGHT_GPIO
106 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschin0dcb3fd2020-05-26 00:20:49 +0200107 depends on BACKLIGHT
Patrick Delaunaya3c046f2017-08-03 12:36:07 +0200108 help
109 If you have a LCD backlight adjustable by GPIO, say Y to enable
110 this driver.
111 This driver can be used with "simple-panel" and
112 it understands the standard device tree
113 (leds/backlight/gpio-backlight.txt)
114
Simon Glass623d28f2016-01-18 19:52:15 -0700115config VIDEO_BPP8
116 bool "Support 8-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100117 default y
Simon Glass623d28f2016-01-18 19:52:15 -0700118 help
119 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
120 Enabling this will include code to support this display. Without
121 this option, such displays will not be supported and console output
122 will be empty.
123
124config VIDEO_BPP16
125 bool "Support 16-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100126 default y
Simon Glass623d28f2016-01-18 19:52:15 -0700127 help
128 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
129 Enabling this will include code to support this display. Without
130 this option, such displays will not be supported and console output
131 will be empty.
132
133config VIDEO_BPP32
134 bool "Support 32-bit-per-pixel displays"
Anatolij Gustschindba36702020-02-04 22:43:06 +0100135 default y
Simon Glass623d28f2016-01-18 19:52:15 -0700136 help
137 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
138 Enabling this will include code to support this display. Without
139 this option, such displays will not be supported and console output
140 will be empty.
141
Rob Clark06e7a0d2017-09-13 18:12:21 -0400142config VIDEO_ANSI
143 bool "Support ANSI escape sequences in video console"
Simon Glass80a8e802023-01-06 08:52:29 -0600144 default y if EFI_LOADER
Rob Clark06e7a0d2017-09-13 18:12:21 -0400145 help
146 Enable ANSI escape sequence decoding for a more fully functional
Simon Glass80a8e802023-01-06 08:52:29 -0600147 console. Functionality includes changing the text colour and moving
148 the cursor. These date from the 1970s and are still widely used today
149 to control a text terminal. U-Boot implements these by decoding the
150 sequences and performing the appropriate operation.
Rob Clark06e7a0d2017-09-13 18:12:21 -0400151
Yannick Fertréd08fb322019-10-07 15:29:04 +0200152config VIDEO_MIPI_DSI
153 bool "Support MIPI DSI interface"
Yannick Fertréd08fb322019-10-07 15:29:04 +0200154 help
155 Support MIPI DSI interface for driving a MIPI compatible device.
156 The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
157 serial interface between a host processor and a display module.
158
Simon Glass6e0721d2016-01-22 21:53:37 +0100159config CONSOLE_NORMAL
160 bool "Support a simple text console"
Simon Glass557786c2022-10-18 07:35:17 -0600161 default y
Simon Glass6e0721d2016-01-22 21:53:37 +0100162 help
163 Support drawing text on the frame buffer console so that it can be
164 used as a console. Rotation is not supported by this driver (see
165 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
166 for the display.
167
168config CONSOLE_ROTATION
Simon Glass87aae882016-01-18 19:52:19 -0700169 bool "Support rotated displays"
Simon Glass87aae882016-01-18 19:52:19 -0700170 help
171 Sometimes, for example if the display is mounted in portrait
172 mode or even if it's mounted landscape but rotated by 180degree,
173 we need to rotate our content of the display relative to the
174 framebuffer, so that user can read the messages which are
175 printed out. Enable this option to include a text driver which can
176 support this. The rotation is set by the 'rot' parameter in
177 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
178 degrees, 3=270 degrees.
179
Simon Glass2ef353e2016-01-14 18:10:42 -0700180config CONSOLE_TRUETYPE
181 bool "Support a console that uses TrueType fonts"
Dzmitry Sankouskibb165e42023-03-07 13:21:16 +0300182 select CMD_SELECT_FONT
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
Bin Menga0676be2016-10-09 04:14:16 -0700281config VIDEO_COREBOOT
282 bool "Enable coreboot framebuffer driver support"
Simon Glassd2398ab2021-03-15 18:00:27 +1300283 depends on X86
Bin Menga0676be2016-10-09 04:14:16 -0700284 help
285 Turn on this option to enable a framebuffer driver when U-Boot is
286 loaded by coreboot where the graphics device is configured by
287 coreboot already. This can in principle be used with any platform
288 that coreboot supports.
289
Bin Meng0f862b92018-06-12 08:36:22 -0700290config VIDEO_EFI
291 bool "Enable EFI framebuffer driver support"
Simon Glass04c26ff2021-11-03 21:09:10 -0600292 depends on EFI_STUB || EFI_APP
Bin Meng0f862b92018-06-12 08:36:22 -0700293 help
294 Turn on this option to enable a framebuffeer driver when U-Boot is
295 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
296 the graphics device is configured by the EFI BIOS already. This can
297 in principle be used with any platform that has an EFI BIOS.
298
Simon Glass42bf3ee2014-12-29 19:32:28 -0700299config VIDEO_VESA
300 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-12-29 19:32:28 -0700301 help
302 Turn on this option to enable a very simple driver which uses vesa
303 to discover the video mode and then provides a frame buffer for use
304 by U-Boot. This can in principle be used with any platform that
305 supports PCI and video cards that support VESA BIOS Extension (VBE).
306
Bin Meng072b79d2015-05-11 07:36:29 +0800307config FRAMEBUFFER_SET_VESA_MODE
308 bool "Set framebuffer graphics resolution"
Simon Glassdec49b72016-03-11 22:07:30 -0700309 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng072b79d2015-05-11 07:36:29 +0800310 help
311 Set VESA/native framebuffer mode (needed for bootsplash and graphical
312 framebuffer console)
313
314choice
315 prompt "framebuffer graphics resolution"
Bin Meng4da8a3f2018-04-11 22:02:16 -0700316 default FRAMEBUFFER_VESA_MODE_118
Bin Meng072b79d2015-05-11 07:36:29 +0800317 depends on FRAMEBUFFER_SET_VESA_MODE
318 help
319 This option sets the resolution used for the U-Boot framebuffer (and
320 bootsplash screen).
321
322config FRAMEBUFFER_VESA_MODE_100
323 bool "640x400 256-color"
324
325config FRAMEBUFFER_VESA_MODE_101
326 bool "640x480 256-color"
327
328config FRAMEBUFFER_VESA_MODE_102
329 bool "800x600 16-color"
330
331config FRAMEBUFFER_VESA_MODE_103
332 bool "800x600 256-color"
333
334config FRAMEBUFFER_VESA_MODE_104
335 bool "1024x768 16-color"
336
337config FRAMEBUFFER_VESA_MODE_105
Bin Meng932adc62015-08-09 23:26:59 -0700338 bool "1024x768 256-color"
Bin Meng072b79d2015-05-11 07:36:29 +0800339
340config FRAMEBUFFER_VESA_MODE_106
341 bool "1280x1024 16-color"
342
343config FRAMEBUFFER_VESA_MODE_107
344 bool "1280x1024 256-color"
345
346config FRAMEBUFFER_VESA_MODE_108
347 bool "80x60 text"
348
349config FRAMEBUFFER_VESA_MODE_109
350 bool "132x25 text"
351
352config FRAMEBUFFER_VESA_MODE_10A
353 bool "132x43 text"
354
355config FRAMEBUFFER_VESA_MODE_10B
356 bool "132x50 text"
357
358config FRAMEBUFFER_VESA_MODE_10C
359 bool "132x60 text"
360
361config FRAMEBUFFER_VESA_MODE_10D
362 bool "320x200 32k-color (1:5:5:5)"
363
364config FRAMEBUFFER_VESA_MODE_10E
365 bool "320x200 64k-color (5:6:5)"
366
367config FRAMEBUFFER_VESA_MODE_10F
368 bool "320x200 16.8M-color (8:8:8)"
369
370config FRAMEBUFFER_VESA_MODE_110
371 bool "640x480 32k-color (1:5:5:5)"
372
373config FRAMEBUFFER_VESA_MODE_111
374 bool "640x480 64k-color (5:6:5)"
375
376config FRAMEBUFFER_VESA_MODE_112
377 bool "640x480 16.8M-color (8:8:8)"
378
379config FRAMEBUFFER_VESA_MODE_113
380 bool "800x600 32k-color (1:5:5:5)"
381
382config FRAMEBUFFER_VESA_MODE_114
383 bool "800x600 64k-color (5:6:5)"
384
385config FRAMEBUFFER_VESA_MODE_115
386 bool "800x600 16.8M-color (8:8:8)"
387
388config FRAMEBUFFER_VESA_MODE_116
389 bool "1024x768 32k-color (1:5:5:5)"
390
391config FRAMEBUFFER_VESA_MODE_117
392 bool "1024x768 64k-color (5:6:5)"
393
394config FRAMEBUFFER_VESA_MODE_118
395 bool "1024x768 16.8M-color (8:8:8)"
396
397config FRAMEBUFFER_VESA_MODE_119
398 bool "1280x1024 32k-color (1:5:5:5)"
399
400config FRAMEBUFFER_VESA_MODE_11A
401 bool "1280x1024 64k-color (5:6:5)"
402
403config FRAMEBUFFER_VESA_MODE_11B
404 bool "1280x1024 16.8M-color (8:8:8)"
405
406config FRAMEBUFFER_VESA_MODE_USER
407 bool "Manually select VESA mode"
408
409endchoice
410
411# Map the config names to an integer (KB).
412config FRAMEBUFFER_VESA_MODE
413 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
414 hex
415 default 0x100 if FRAMEBUFFER_VESA_MODE_100
416 default 0x101 if FRAMEBUFFER_VESA_MODE_101
417 default 0x102 if FRAMEBUFFER_VESA_MODE_102
418 default 0x103 if FRAMEBUFFER_VESA_MODE_103
419 default 0x104 if FRAMEBUFFER_VESA_MODE_104
420 default 0x105 if FRAMEBUFFER_VESA_MODE_105
421 default 0x106 if FRAMEBUFFER_VESA_MODE_106
422 default 0x107 if FRAMEBUFFER_VESA_MODE_107
423 default 0x108 if FRAMEBUFFER_VESA_MODE_108
424 default 0x109 if FRAMEBUFFER_VESA_MODE_109
425 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
426 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
427 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
428 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
429 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
430 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
431 default 0x110 if FRAMEBUFFER_VESA_MODE_110
432 default 0x111 if FRAMEBUFFER_VESA_MODE_111
433 default 0x112 if FRAMEBUFFER_VESA_MODE_112
434 default 0x113 if FRAMEBUFFER_VESA_MODE_113
435 default 0x114 if FRAMEBUFFER_VESA_MODE_114
436 default 0x115 if FRAMEBUFFER_VESA_MODE_115
437 default 0x116 if FRAMEBUFFER_VESA_MODE_116
438 default 0x117 if FRAMEBUFFER_VESA_MODE_117
439 default 0x118 if FRAMEBUFFER_VESA_MODE_118
440 default 0x119 if FRAMEBUFFER_VESA_MODE_119
441 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
442 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
443 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
444
Hans de Goededfc1efe2015-08-08 16:03:29 +0200445config VIDEO_LCD_ANX9804
446 bool "ANX9804 bridge chip"
Hans de Goededfc1efe2015-08-08 16:03:29 +0200447 ---help---
448 Support for the ANX9804 bridge chip, which can take pixel data coming
449 from a parallel LCD interface and translate it on the fy into a DP
450 interface for driving eDP TFT displays. It uses I2C for configuration.
451
Tom Rini4c047422022-03-18 08:38:28 -0400452config ATMEL_LCD
453 bool "Atmel LCD panel support"
Simon Glass557786c2022-10-18 07:35:17 -0600454 depends on ARCH_AT91
Tom Rini4c047422022-03-18 08:38:28 -0400455
456config ATMEL_LCD_BGR555
457 bool "Display in BGR555 mode"
458 help
459 Use the BGR555 output mode. Otherwise RGB565 is used.
460
Simon Glass7b3fabb2022-01-23 07:04:14 -0700461config VIDEO_BCM2835
462 bool "Display support for BCM2835"
463 help
464 The graphics processor already sets up the display so this driver
465 simply checks the resolution and then sets up the frame buffer with
466 that same resolution (or as near as possible) and 32bpp depth, so
467 that U-Boot can access it with full colour depth.
468
Yannick Fertré5b855d42019-10-07 15:29:08 +0200469config VIDEO_LCD_ORISETECH_OTM8009A
470 bool "OTM8009A DSI LCD panel support"
Yannick Fertré5b855d42019-10-07 15:29:08 +0200471 select VIDEO_MIPI_DSI
Yannick Fertré5b855d42019-10-07 15:29:08 +0200472 help
473 Say Y here if you want to enable support for Orise Technology
474 otm8009a 480x800 dsi 2dl panel.
475
Yannick Fertréb038fed2019-10-07 15:29:09 +0200476config VIDEO_LCD_RAYDIUM_RM68200
477 bool "RM68200 DSI LCD panel support"
Yannick Fertréb038fed2019-10-07 15:29:09 +0200478 select VIDEO_MIPI_DSI
Yannick Fertréb038fed2019-10-07 15:29:09 +0200479 help
480 Say Y here if you want to enable support for Raydium RM68200
481 720x1280 DSI video mode panel.
482
Svyatoslav Ryhelb9054982023-04-25 10:51:44 +0300483config VIDEO_LCD_RENESAS_R61307
484 tristate "Renesas R61307 DSI video mode panel"
485 depends on PANEL && BACKLIGHT
486 select VIDEO_MIPI_DSI
487 help
488 Say Y here if you want to enable support for KOE tx13d100vm0eaa
489 IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
490 resolution and uses 24 bit RGB per pixel.
491
Svyatoslav Ryhelfcbbd562023-04-25 10:51:45 +0300492config VIDEO_LCD_RENESAS_R69328
493 tristate "Renesas R69328 720x1280 DSI video mode panel"
494 depends on PANEL && BACKLIGHT
495 select VIDEO_MIPI_DSI
496 help
497 Say Y here if you want to enable support for JDI dx12d100vm0eaa
498 IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
499 resolution and uses 24 bit RGB per pixel.
500
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200501config VIDEO_LCD_SSD2828
502 bool "SSD2828 bridge chip"
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200503 ---help---
504 Support for the SSD2828 bridge chip, which can take pixel data coming
505 from a parallel LCD interface and translate it on the fly into MIPI DSI
506 interface for driving a MIPI compatible LCD panel. It uses SPI for
507 configuration.
508
509config VIDEO_LCD_SSD2828_TX_CLK
510 int "SSD2828 TX_CLK frequency (in MHz)"
511 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200512 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200513 ---help---
514 The frequency of the crystal, which is clocking SSD2828. It may be
515 anything in the 8MHz-30MHz range and the exact value should be
516 retrieved from the board schematics. Or in the case of Allwinner
517 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200518 FEX files. It can be also set to 0 for selecting PCLK from the
519 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200520
521config VIDEO_LCD_SSD2828_RESET
522 string "RESET pin of SSD2828"
523 depends on VIDEO_LCD_SSD2828
524 default ""
525 ---help---
526 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500527 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200528
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200529config VIDEO_LCD_TDO_TL070WSH30
530 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200531 select VIDEO_MIPI_DSI
Neil Armstrong4a4057a2020-09-29 11:53:53 +0200532 help
533 Say Y here if you want to enable support for TDO TL070WSH30
534 1024x600 DSI video mode panel.
535
Hans de Goedec0482032015-01-20 09:22:26 +0100536config VIDEO_LCD_HITACHI_TX18D42VM
537 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedec0482032015-01-20 09:22:26 +0100538 ---help---
539 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
540 lcd controller which needs to be initialized over SPI, once that is
541 done they work like a regular LVDS panel.
542
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200543config VIDEO_LCD_SPI_CS
544 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100545 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200546 default ""
547 ---help---
548 This is one of the SPI communication pins, involved in setting up a
549 working LCD configuration. The exact role of SPI may differ for
550 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500551 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200552
553config VIDEO_LCD_SPI_SCLK
554 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100555 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200556 default ""
557 ---help---
558 This is one of the SPI communication pins, involved in setting up a
559 working LCD configuration. The exact role of SPI may differ for
560 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500561 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200562
563config VIDEO_LCD_SPI_MOSI
564 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100565 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200566 default ""
567 ---help---
568 This is one of the SPI communication pins, involved in setting up a
569 working LCD configuration. The exact role of SPI may differ for
570 different hardware setups. The option takes a string in the format
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500571 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200572
573config VIDEO_LCD_SPI_MISO
574 string "SPI MISO pin for LCD related config job (optional)"
575 depends on VIDEO_LCD_SSD2828
576 default ""
577 ---help---
578 This is one of the SPI communication pins, involved in setting up a
579 working LCD configuration. The exact role of SPI may differ for
580 different hardware setups. If wired up, this pin may provide additional
581 useful functionality. Such as bi-directional communication with the
582 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Hollandc7ab95d2021-09-11 16:50:48 -0500583 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200584 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600585
Neil Armstrongadd986c2018-07-24 17:45:28 +0200586source "drivers/video/meson/Kconfig"
587
Stefan Roeseab91fd52016-01-20 08:13:28 +0100588config VIDEO_MVEBU
589 bool "Armada XP LCD controller"
Stefan Roeseab91fd52016-01-20 08:13:28 +0100590 ---help---
591 Support for the LCD controller integrated in the Marvell
592 Armada XP SoC.
593
Adam Ford60a59d42018-08-02 08:50:20 -0500594config VIDEO_OMAP3
595 bool "Enable OMAP3+ DSS Support"
596 depends on ARCH_OMAP2PLUS
597 help
598 This enables the Display subsystem (DSS) on OMAP3+ boards.
599
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100600config I2C_EDID
601 bool "Enable EDID library"
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100602 help
603 This enables library for accessing EDID data from an LCD panel.
604
Simon Glass7d3d7762016-01-21 19:45:00 -0700605config DISPLAY
606 bool "Enable Display support"
607 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100608 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600609 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700610 This supports drivers that provide a display, such as eDP (Embedded
611 DisplayPort) and HDMI (High Definition Multimedia Interface).
612 The devices provide a simple interface to start up the display,
613 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600614
Liviu Dudau33967102018-09-28 13:49:31 +0100615config NXP_TDA19988
616 bool "Enable NXP TDA19988 support"
617 depends on DISPLAY
Liviu Dudau33967102018-09-28 13:49:31 +0100618 help
619 This enables support for the NXP TDA19988 HDMI encoder. This encoder
620 will convert RGB data streams into HDMI-encoded signals.
621
Songjun Wu72ac56a2017-04-11 16:33:30 +0800622config ATMEL_HLCD
623 bool "Enable ATMEL video support using HLCDC"
Songjun Wu72ac56a2017-04-11 16:33:30 +0800624 help
625 HLCDC supports video output to an attached LCD panel.
626
Svyatoslav Ryhel3e9488a2023-04-25 10:51:42 +0300627config BACKLIGHT_LM3533
628 bool "Backlight Driver for LM3533"
629 depends on BACKLIGHT
630 select DM_I2C
631 help
632 Say Y to enable the backlight driver for National Semiconductor / TI
633 LM3533 Lighting Power chip. Only Bank A is supported as for now.
634 Supported backlight level range is from 2 to 255 with step of 1.
635
Dario Binacchi260bdb32023-01-28 16:55:31 +0100636source "drivers/video/ti/Kconfig"
637
Tom Rini3eeabf52022-06-10 22:59:34 -0400638source "drivers/video/exynos/Kconfig"
639
Mario Sixc13ee192018-08-09 14:51:23 +0200640config LOGICORE_DP_TX
641 bool "Enable Logicore DP TX driver"
642 depends on DISPLAY
643 help
644 Enable the driver for the transmitter part of the Xilinx LogiCORE
645 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
646 video interface as defined by VESA DisplayPort v1.2.
647
648 Note that this is a pure transmitter device, and has no display
649 capabilities by itself.
650
Simon Glassdec49b72016-03-11 22:07:30 -0700651config VIDEO_BROADWELL_IGD
652 bool "Enable Intel Broadwell integrated graphics device"
653 depends on X86
654 help
Simon Glassa3fdd002016-10-05 20:42:14 -0600655 This enables support for integrated graphics on Intel broadwell
Simon Glassdec49b72016-03-11 22:07:30 -0700656 devices. Initialisation is mostly performed by a VGA boot ROM, with
657 some setup handled by U-Boot itself. The graphics adaptor works as
658 a VESA device and supports LCD panels, eDP and LVDS outputs.
659 Configuration of most aspects of device operation is performed using
660 a special tool which configures the VGA ROM, but the graphics
661 resolution can be selected in U-Boot.
662
Simon Glass03f2a512016-10-05 20:42:15 -0600663config VIDEO_IVYBRIDGE_IGD
664 bool "Enable Intel Ivybridge integration graphics support"
665 depends on X86
666 help
667 This enables support for integrated graphics on Intel ivybridge
668 devices. Initialisation is mostly performed by a VGA boot ROM, with
669 some setup handled by U-Boot itself. The graphics adaptor works as
670 a VESA device and supports LCD panels, eDP and LVDS outputs.
671 Configuration of most aspects of device operation is performed using
672 a special tool which configures the VGA ROM, but the graphics
673 resolution can be selected in U-Boot.
674
eric.gao@rock-chips.com735ddea2017-04-17 22:24:23 +0800675source "drivers/video/rockchip/Kconfig"
Simon Glass0139ae62016-01-21 19:45:03 -0700676
Liviu Dudau8373ed32018-09-28 13:50:53 +0100677config VIDEO_ARM_MALIDP
678 bool "Enable Arm Mali Display Processor support"
Simon Glass557786c2022-10-18 07:35:17 -0600679 depends on OF_CONTROL
Liviu Dudau8373ed32018-09-28 13:50:53 +0100680 select VEXPRESS_CLK
681 help
682 This enables support for Arm Ltd Mali Display Processors from
683 the DP500, DP550 and DP650 family.
684
Simon Glass161eea72016-01-18 19:52:24 -0700685config VIDEO_SANDBOX_SDL
686 bool "Enable sandbox video console using SDL"
Tom Riniea79bb72022-11-19 18:45:43 -0500687 depends on SANDBOX_SDL
Simon Glass161eea72016-01-18 19:52:24 -0700688 help
689 When using sandbox you can enable an emulated LCD display which
690 appears as an SDL (Simple DirectMedia Layer) window. This is a
691 console device and can display stdout output. Within U-Boot is is
692 a normal bitmap display and can display images as well as text.
693
Philippe CORNUdcbad9a2017-08-03 12:36:08 +0200694source "drivers/video/stm32/Kconfig"
695
Nikhil M Jain94272742023-01-31 15:35:17 +0530696source "drivers/video/tidss/Kconfig"
697
Simon Glass3ef2a722015-04-14 21:03:42 -0600698config VIDEO_TEGRA124
699 bool "Enable video support on Tegra124"
700 help
701 Tegra124 supports many video output options including eDP and
702 HDMI. At present only eDP is supported by U-Boot. This option
703 enables this support which can be used on devices which
704 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600705
706source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900707
Svyatoslav Ryheld15683f2023-03-27 11:11:41 +0300708source "drivers/video/tegra20/Kconfig"
709
Anatolij Gustschin411e73d2019-03-18 23:29:32 +0100710source "drivers/video/imx/Kconfig"
Anatolij Gustschin983e2f2a2019-03-18 23:29:31 +0100711
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200712config VIDEO_MXS
713 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschine22e08e2021-10-04 17:33:12 +0200714 help
715 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
716
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200717config VIDEO_NX
718 bool "Enable video support on Nexell SoC"
719 depends on ARCH_S5P6818 || ARCH_S5P4418
720 help
721 Nexell SoC supports many video output options including eDP and
722 HDMI. This option enables this support which can be used on devices
723 which have an eDP display connected.
724
Michal Simek32058b82020-12-03 09:31:35 +0100725config VIDEO_SEPS525
726 bool "Enable video support for Seps525"
Simon Glass557786c2022-10-18 07:35:17 -0600727 depends on DM_GPIO
Michal Simek32058b82020-12-03 09:31:35 +0100728 help
729 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
730 Currently driver is supporting only SPI interface.
731
Michal Simekab2829a2022-02-23 15:52:02 +0100732config VIDEO_ZYNQMP_DPSUB
733 bool "Enable video support for ZynqMP Display Port"
Simon Glass557786c2022-10-18 07:35:17 -0600734 depends on ZYNQMP_POWER_DOMAIN
Michal Simekab2829a2022-02-23 15:52:02 +0100735 help
736 Enable support for Xilinx ZynqMP Display Port. Currently this file
737 is used as placeholder for driver. The main reason is to record
738 compatible string and calling power domain driver.
739
Stefan Bosch5ed5ad42020-07-10 19:07:36 +0200740source "drivers/video/nexell/Kconfig"
741
Simon Glassd76f29a2016-10-17 20:12:57 -0600742config CONSOLE_SCROLL_LINES
743 int "Number of lines to scroll the console by"
Simon Glassd76f29a2016-10-17 20:12:57 -0600744 default 1
745 help
746 When the console need to be scrolled, this is the number of
747 lines to scroll by. It defaults to 1. Increasing this makes the
748 console jump but can help speed up operation when scrolling
749 is slow.
750
Philipp Tomsich3a53b3e2017-05-05 21:48:26 +0200751config VIDEO_DW_HDMI
752 bool
753 help
754 Enables the common driver code for the Designware HDMI TX
755 block found in SoCs from various vendors.
756 As this does not provide any functionality by itself (but
757 rather requires a SoC-specific glue driver to call it), it
758 can not be enabled from the configuration menu.
759
Yannick Fertré9712c822019-10-07 15:29:05 +0200760config VIDEO_DSI_HOST_SANDBOX
761 bool "Enable sandbox for dsi host"
762 depends on SANDBOX
763 select VIDEO_MIPI_DSI
764 help
765 Enable support for sandbox dsi host device used for testing
766 purposes.
767 Display Serial Interface (DSI) defines a serial bus and
768 a communication protocol between the host and the device
769 (panel, bridge).
770
Yannick Fertré764af462019-10-07 15:29:06 +0200771config VIDEO_DW_MIPI_DSI
772 bool
773 select VIDEO_MIPI_DSI
774 help
775 Enables the common driver code for the Synopsis Designware
776 MIPI DSI block found in SoCs from various vendors.
777 As this does not provide any functionality by itself (but
778 rather requires a SoC-specific glue driver to call it), it
779 can not be enabled from the configuration menu.
780
Rob Clarkcf7ab0c2017-08-03 12:47:00 -0400781config VIDEO_SIMPLE
782 bool "Simple display driver for preconfigured display"
783 help
784 Enables a simple generic display driver which utilizes the
785 simple-framebuffer devicetree bindings.
786
787 This driver assumes that the display hardware has been initialized
788 before u-boot starts, and u-boot will simply render to the pre-
789 allocated frame buffer surface.
790
Icenowy Zheng60e4b8f2017-10-26 11:14:46 +0800791config VIDEO_DT_SIMPLEFB
792 bool "Enable SimpleFB support for passing framebuffer to OS"
793 help
794 Enables the code to pass the framebuffer to the kernel as a
795 simple framebuffer in the device tree.
796 The video output is initialized by U-Boot, and kept by the
797 kernel.
798
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200799config VIDEO_MCDE_SIMPLE
800 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold36f654a2021-07-02 19:21:56 +0200801 help
802 Enables a simple display driver for ST-Ericsson MCDE
803 (Multichannel Display Engine), which reads the configuration from
804 the MCDE registers.
805
806 This driver assumes that the display hardware has been initialized
807 before u-boot starts, and u-boot will simply render to the pre-
808 allocated frame buffer surface.
809
Mario Six1b773202018-09-27 09:19:29 +0200810config OSD
811 bool "Enable OSD support"
812 depends on DM
Mario Six1b773202018-09-27 09:19:29 +0200813 help
814 This supports drivers that provide a OSD (on-screen display), which
815 is a (usually text-oriented) graphics buffer to show information on
816 a display.
Mario Six8ea19da2018-09-27 09:19:30 +0200817
Mario Six02ad6fb2018-09-27 09:19:31 +0200818config SANDBOX_OSD
819 bool "Enable sandbox OSD"
820 depends on OSD
821 help
822 Enable support for sandbox OSD device used for testing purposes.
823
Mario Six8ea19da2018-09-27 09:19:30 +0200824config IHS_VIDEO_OUT
825 bool "Enable IHS video out driver"
826 depends on OSD
827 help
828 Enable support for the gdsys Integrated Hardware Systems (IHS) video
829 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
830 textual overlays of the display outputs.
831
Simon Glass2d7a7942020-08-11 11:23:35 -0600832config SPLASH_SCREEN
833 bool "Show a splash-screen image"
834 help
835 If this option is set, the environment is checked for a variable
836 "splashimage". If found, the usual display of logo, copyright and
837 system information on the LCD is suppressed and the BMP image at the
838 address specified in "splashimage" is loaded instead. The console is
839 redirected to the "nulldev", too. This allows for a "silent" boot
840 where a splash screen is loaded very quickly after power-on.
841
842 The splash_screen_prepare() function is a weak function defined in
843 common/splash.c. It is called as part of the splash screen display
844 sequence. It gives the board an opportunity to prepare the splash
845 image data before it is processed and sent to the frame buffer by
846 U-Boot. Define your own version to use this feature.
847
Simon Glass8b883a32022-10-18 06:24:16 -0600848if SPLASH_SCREEN
849
Simon Glass2d7a7942020-08-11 11:23:35 -0600850config SPLASH_SCREEN_ALIGN
851 bool "Allow positioning the splash image anywhere on the display"
Simon Glass2d7a7942020-08-11 11:23:35 -0600852 help
853 If this option is set the splash image can be freely positioned
854 on the screen. Environment variable "splashpos" specifies the
855 position as "x,y". If a positive number is given it is used as
856 number of pixel from left/top. If a negative number is given it
857 is used as number of pixel from right/bottom. You can also
858 specify 'm' for centering the image.
859
860 Example:
861 setenv splashpos m,m
862 => image at center of screen
863
864 setenv splashpos 30,20
865 => image at x = 30 and y = 20
866
867 setenv splashpos -10,m
868 => vertically centered image
869 at x = dspWidth - bmpWidth - 9
870
Simon Glass45c0a7e2022-10-18 06:30:56 -0600871config HIDE_LOGO_VERSION
872 bool "Hide the version information on the splash screen"
873 help
874 Normally the U-Boot version string is shown on the display when the
875 splash screen is enabled. This information is not otherwise visible
876 since video starts up after U-Boot has displayed the initial banner.
877
878 Enable this option to hide this information.
879
Simon Glass2d7a7942020-08-11 11:23:35 -0600880config SPLASH_SOURCE
881 bool "Control the source of the splash image"
Simon Glass2d7a7942020-08-11 11:23:35 -0600882 help
883 Use the splash_source.c library. This library provides facilities to
884 declare board specific splash image locations, routines for loading
885 splash image from supported locations, and a way of controlling the
886 selected splash location using the "splashsource" environment
887 variable.
888
889 This CONFIG works as follows:
890
891 - If splashsource is set to a supported location name as defined by
892 board code, use that splash location.
893 - If splashsource is undefined, use the first splash location as
894 default.
895 - If splashsource is set to an unsupported value, do not load a splash
896 screen.
897
898 A splash source location can describe either storage with raw data, a
899 storage formatted with a file system or a FIT image. In case of a
900 filesystem, the splash screen data is loaded as a file. The name of
901 the splash screen file can be controlled with the environment variable
902 "splashfile".
903
904 To enable loading the splash image from a FIT image, CONFIG_FIT must
905 be enabled. The FIT image has to start at the 'offset' field address
906 in the selected splash location. The name of splash image within the
907 FIT shall be specified by the environment variable "splashfile".
908
909 In case the environment variable "splashfile" is not defined the
910 default name 'splash.bmp' will be used.
911
Simon Glass8b883a32022-10-18 06:24:16 -0600912endif # SPLASH_SCREEN
913
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +0200914config VIDEO_BMP_GZIP
915 bool "Gzip compressed BMP image support"
Nikhil M Jain9fa24c12023-04-20 17:40:59 +0530916 depends on BMP || SPLASH_SCREEN
Patrick Delaunay5d0e2ab2020-09-28 11:30:14 +0200917 help
918 If this option is set, additionally to standard BMP
919 images, gzipped BMP images can be displayed via the
920 splashscreen support or the bmp command.
921
Simon Glass858198c2022-10-18 06:46:08 -0600922config VIDEO_LOGO_MAX_SIZE
Simon Glasscda7d0c2022-10-18 06:49:18 -0600923 hex "Maximum size of the bitmap logo in bytes"
924 default 0x100000
925 help
926 Sets the maximum uncompressed size of the logo. This is needed when
927 decompressing a BMP file using the gzip algorithm, since it cannot
928 read the size from the bitmap header.
Simon Glass858198c2022-10-18 06:46:08 -0600929
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200930config VIDEO_BMP_RLE8
931 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayc47fe772020-09-28 11:30:15 +0200932 help
933 If this option is set, the 8-bit RLE compressed BMP images
934 is supported.
935
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200936config BMP_16BPP
937 bool "16-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200938 help
939 Support display of bitmaps file with 16-bit-per-pixel
940
941config BMP_24BPP
942 bool "24-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200943 help
944 Support display of bitmaps file with 24-bit-per-pixel.
945
946config BMP_32BPP
947 bool "32-bit-per-pixel BMP image support"
Patrick Delaunayb1f17632020-09-28 11:30:16 +0200948 help
949 Support display of bitmaps file with 32-bit-per-pixel.
950
Simon Glass52cb5042022-10-18 07:46:31 -0600951endif # VIDEO
Simon Glass557786c2022-10-18 07:35:17 -0600952
Nikhil M Jain9fa24c12023-04-20 17:40:59 +0530953config SPL_VIDEO
954 bool "Enable driver model support for LCD/video"
955 depends on SPL_DM
956 help
957 The video subsystem adds a small amount of overhead to the image.
958 If this is acceptable and you have a need to use video drivers in
959 SPL, enable this option. It might provide a cleaner interface to
960 setting up video within SPL, and allows the same drivers to be
961 used as U-Boot proper.
962
963if SPL_VIDEO
964source "drivers/video/tidss/Kconfig"
965
966config SPL_VIDEO_LOGO
967 bool "Show the U-Boot logo on the display at SPL"
968 default y if !SPL_SPLASH_SCREEN
969 select SPL_VIDEO_BMP_RLE8
970 help
971 This enables showing the U-Boot logo on the display when a video
972 device is probed. It appears at the top right. The logo itself is at
973 tools/logos/u-boot_logo.bmp and looks best when the display has a
974 black background.
975
976config SPL_SPLASH_SCREEN
977 bool "Show a splash-screen image at SPL"
978 help
979 If this option is set, the environment is checked for a variable
980 "splashimage" at spl stage.
981
982config SPL_SYS_WHITE_ON_BLACK
983 bool "Display console as white on a black background at SPL"
984 help
985 Normally the display is black on a white background, Enable this
986 option to invert this, i.e. white on a black background at spl stage.
987 This can be better in low-light situations or to reduce eye strain in
988 some cases.
989
990config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
991 hex "Default framebuffer size to use if no drivers request it at SPL"
992 default 0x1000000 if X86 && PCI
993 default 0 if !(X86 && PCI)
994 help
995 Generally, video drivers request the amount of memory they need for
996 the frame buffer when they are bound, by setting the size field in
997 struct video_uc_plat. That memory is then reserved for use after
998 relocation. But PCI drivers cannot be bound before relocation unless
999 they are mentioned in the devicetree.
1000
1001 With this value set appropriately, it is possible for PCI video
1002 devices to have a framebuffer allocated by U-Boot.
1003
1004 Note: the framebuffer needs to be large enough to store all pixels at
1005 maximum resolution. For example, at 1920 x 1200 with 32 bits per
1006 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
1007
1008config SPL_CONSOLE_SCROLL_LINES
1009 int "Number of lines to scroll the console by at SPL"
1010 default 1
1011 help
1012 When the console need to be scrolled, this is the number of
1013 lines to scroll by. It defaults to 1. Increasing this makes the
1014 console jump but can help speed up operation when scrolling
1015 is slow.
1016
1017config SPL_CONSOLE_NORMAL
1018 bool "Support a simple text console at SPL"
1019 default y
1020 help
1021 Support drawing text on the frame buffer console so that it can be
1022 used as a console. Rotation is not supported by this driver (see
1023 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
1024 for the display.
1025
1026config SPL_BACKLIGHT
1027 bool "Enable panel backlight uclass support at SPL"
1028 default y
1029 help
1030 This provides backlight uclass driver that enables basic panel
1031 backlight support.
1032
1033config SPL_PANEL
1034 bool "Enable panel uclass support at SPL"
1035 default y
1036 help
1037 This provides panel uclass driver that enables basic panel support.
1038
1039config SPL_SIMPLE_PANEL
1040 bool "Enable simple panel support at SPL"
1041 depends on SPL_PANEL && SPL_BACKLIGHT && SPL_DM_GPIO
1042 default y
1043 help
1044 This turns on a simple panel driver that enables a compatible
1045 video panel.
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
1055if SPL_SPLASH_SCREEN
1056
1057config SPL_SPLASH_SCREEN_ALIGN
1058 bool "Allow positioning the splash image anywhere on the display at SPL"
1059 help
1060 If this option is set the splash image can be freely positioned
1061 on the screen only at SPL. Environment variable "splashpos" specifies
1062 the position as "x,y". If a positive number is given it is used as
1063 number of pixel from left/top. If a negative number is given it
1064 is used as number of pixel from right/bottom.
1065
1066config SPL_SPLASH_SOURCE
1067 bool "Control the source of the splash image at SPL"
1068 help
1069 Use the splash_source.c library. This library provides facilities to
1070 declare board specific splash image locations, routines for loading
1071 splash image from supported locations, and a way of controlling the
1072 selected splash location using the "splashsource" environment
1073 variable.
1074
1075 This CONFIG works as follows:
1076
1077 - If splashsource is set to a supported location name as defined by
1078 board code, use that splash location.
1079 - If splashsource is undefined, use the first splash location as
1080 default.
1081 - If splashsource is set to an unsupported value, do not load a splash
1082 screen.
1083
1084 A splash source location can describe either storage with raw data, a
1085 storage formatted with a file system or a FIT image. In case of a
1086 filesystem, the splash screen data is loaded as a file. The name of
1087 the splash screen file can be controlled with the environment variable
1088 "splashfile".
1089
1090 To enable loading the splash image from a FIT image, CONFIG_FIT must
1091 be enabled. The FIT image has to start at the 'offset' field address
1092 in the selected splash location. The name of splash image within the
1093 FIT shall be specified by the environment variable "splashfile".
1094
1095 In case the environment variable "splashfile" is not defined the
1096 default name 'splash.bmp' will be used.
1097
1098endif # SPL_SPLASH_SCREEN
1099
1100config SPL_VIDEO_BMP_GZIP
1101 bool "Gzip compressed BMP image support at SPL"
1102 depends on SPL_SPLASH_SCREEN || SPL_BMP
1103 help
1104 If this option is set, additionally to standard BMP
1105 images, gzipped BMP images can be displayed via the
1106 splashscreen supportat SPL stage.
1107
1108config SPL_VIDEO_LOGO_MAX_SIZE
1109 hex "Maximum size of the bitmap logo in bytes at SPL"
1110 default 0x100000
1111 help
1112 Sets the maximum uncompressed size of the logo. This is needed when
1113 decompressing a BMP file using the gzip algorithm, since it cannot
1114 read the size from the bitmap header.
1115
1116config SPL_VIDEO_BMP_RLE8
1117 bool "Run length encoded BMP image (RLE8) support at SPL"
1118 help
1119 If this option is set, the 8-bit RLE compressed BMP images
1120 is supported.
1121
1122config SPL_BMP_16BPP
1123 bool "16-bit-per-pixel BMP image support at SPL"
1124 help
1125 Support display of bitmaps file with 16-bit-per-pixel
1126
1127config SPL_BMP_24BPP
1128 bool "24-bit-per-pixel BMP image support at SPL"
1129 help
1130 Support display of bitmaps file with 24-bit-per-pixel.
1131
1132config SPL_BMP_32BPP
1133 bool "32-bit-per-pixel BMP image support at SPL"
1134 help
1135 Support display of bitmaps file with 32-bit-per-pixel.
1136
1137config SPL_VIDEO_BPP8
1138 bool "Support 8-bit-per-pixel displays at SPL"
1139 default y
1140 help
1141 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
1142 Enabling this will include code to support this display. Without
1143 this option, such displays will not be supported and console output
1144 will be empty.
1145
1146config SPL_VIDEO_BPP16
1147 bool "Support 16-bit-per-pixel displays at SPL"
1148 default y
1149 help
1150 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
1151 Enabling this will include code to support this display. Without
1152 this option, such displays will not be supported and console output
1153 will be empty.
1154
1155config SPL_VIDEO_BPP32
1156 bool "Support 32-bit-per-pixel displays at SPL"
1157 default y
1158 help
1159 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
1160 Enabling this will include code to support this display. Without
1161 this option, such displays will not be supported and console output
1162 will be empty.
1163
1164config SPL_HIDE_LOGO_VERSION
1165 bool "Hide the version information on the splash screen at SPL"
1166 help
1167 Normally the U-Boot version string is shown on the display when the
1168 splash screen is enabled. This information is not otherwise visible
1169 since video starts up after U-Boot has displayed the initial banner.
1170
1171 Enable this option to hide this information.
1172endif
1173
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001174endmenu