blob: e1bcc89b30ac9dd44fed101b3970411e265119fd [file] [log] [blame]
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glassb86986c2022-10-18 07:46:31 -06007config VIDEO
Simon Glass1acafc72016-01-18 19:52:15 -07008 bool "Enable driver model support for LCD/video"
9 depends on DM
10 help
11 This enables driver model for LCD and video devices. These support
12 a bitmap display of various sizes and depths which can be drawn on
13 to display a command-line console or splash screen. Enabling this
14 option compiles in the video uclass and routes all LCD/video access
15 through this.
16
Simon Glassb86986c2022-10-18 07:46:31 -060017if VIDEO
Simon Glassfeda1932022-10-18 07:35:17 -060018
Dzmitry Sankouski39c1fa22023-03-07 13:21:14 +030019config VIDEO_FONT_4X6
20 bool "4 x 6 font size"
21 help
22 Font for video console driver, 4 x 6 pixels.
23 Provides character bitmap data in header file.
24 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
25
26config VIDEO_FONT_8X16
27 bool "8 x 16 font size"
28 default y
29 help
30 Font for video console driver, 8 x 16 pixels
31 Provides character bitmap data in header file.
32 When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
33
Simon Glass64cfeda2021-11-19 13:24:01 -070034config VIDEO_LOGO
35 bool "Show the U-Boot logo on the display"
Simon Glass7a8555d2021-11-19 13:24:04 -070036 default y if !SPLASH_SCREEN
Simon Glass84e63ab2021-11-19 13:24:03 -070037 select VIDEO_BMP_RLE8
Simon Glass64cfeda2021-11-19 13:24:01 -070038 help
39 This enables showing the U-Boot logo on the display when a video
40 device is probed. It appears at the top right. The logo itself is at
41 tools/logos/u-boot_logo.bmp and looks best when the display has a
42 black background.
43
Anatolij Gustschine26e5202020-05-26 00:20:49 +020044config BACKLIGHT
45 bool "Enable panel backlight uclass support"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020046 default y
47 help
48 This provides backlight uclass driver that enables basic panel
49 backlight support.
50
Simon Glass551ca0e2020-07-02 21:12:33 -060051config VIDEO_PCI_DEFAULT_FB_SIZE
52 hex "Default framebuffer size to use if no drivers request it"
Simon Glass551ca0e2020-07-02 21:12:33 -060053 default 0x1000000 if X86 && PCI
54 default 0 if !(X86 && PCI)
55 help
56 Generally, video drivers request the amount of memory they need for
57 the frame buffer when they are bound, by setting the size field in
Dario Binacchi196947b2021-01-23 19:43:52 +010058 struct video_uc_plat. That memory is then reserved for use after
Simon Glass551ca0e2020-07-02 21:12:33 -060059 relocation. But PCI drivers cannot be bound before relocation unless
60 they are mentioned in the devicetree.
61
62 With this value set appropriately, it is possible for PCI video
63 devices to have a framebuffer allocated by U-Boot.
64
65 Note: the framebuffer needs to be large enough to store all pixels at
66 maximum resolution. For example, at 1920 x 1200 with 32 bits per
67 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
68
Simon Glass9beac5d2020-07-02 21:12:20 -060069config VIDEO_COPY
70 bool "Enable copying the frame buffer to a hardware copy"
Simon Glass9beac5d2020-07-02 21:12:20 -060071 help
72 On some machines (e.g. x86), reading from the frame buffer is very
73 slow because it is uncached. To improve performance, this feature
74 allows the frame buffer to be kept in cached memory (allocated by
75 U-Boot) and then copied to the hardware frame-buffer as needed.
76
77 To use this, your video driver must set @copy_base in
Dario Binacchi196947b2021-01-23 19:43:52 +010078 struct video_uc_plat.
Simon Glass9beac5d2020-07-02 21:12:20 -060079
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020080config BACKLIGHT_PWM
81 bool "Generic PWM based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020082 depends on BACKLIGHT && DM_PWM
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020083 default y
84 help
85 If you have a LCD backlight adjustable by PWM, say Y to enable
86 this driver.
87 This driver can be use with "simple-panel" and
88 it understands the standard device tree
89 (leds/backlight/pwm-backlight.txt)
90
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +020091config BACKLIGHT_GPIO
92 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020093 depends on BACKLIGHT
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +020094 help
95 If you have a LCD backlight adjustable by GPIO, say Y to enable
96 this driver.
97 This driver can be used with "simple-panel" and
98 it understands the standard device tree
99 (leds/backlight/gpio-backlight.txt)
100
Simon Glass1acafc72016-01-18 19:52:15 -0700101config VIDEO_BPP8
102 bool "Support 8-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100103 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700104 help
105 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
106 Enabling this will include code to support this display. Without
107 this option, such displays will not be supported and console output
108 will be empty.
109
110config VIDEO_BPP16
111 bool "Support 16-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100112 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700113 help
114 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
115 Enabling this will include code to support this display. Without
116 this option, such displays will not be supported and console output
117 will be empty.
118
119config VIDEO_BPP32
120 bool "Support 32-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100121 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700122 help
123 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
124 Enabling this will include code to support this display. Without
125 this option, such displays will not be supported and console output
126 will be empty.
127
Rob Clarka085aa12017-09-13 18:12:21 -0400128config VIDEO_ANSI
129 bool "Support ANSI escape sequences in video console"
Simon Glass72a0dd82023-01-06 08:52:29 -0600130 default y if EFI_LOADER
Rob Clarka085aa12017-09-13 18:12:21 -0400131 help
132 Enable ANSI escape sequence decoding for a more fully functional
Simon Glass72a0dd82023-01-06 08:52:29 -0600133 console. Functionality includes changing the text colour and moving
134 the cursor. These date from the 1970s and are still widely used today
135 to control a text terminal. U-Boot implements these by decoding the
136 sequences and performing the appropriate operation.
Rob Clarka085aa12017-09-13 18:12:21 -0400137
Yannick Fertré66c37242019-10-07 15:29:04 +0200138config VIDEO_MIPI_DSI
139 bool "Support MIPI DSI interface"
Yannick Fertré66c37242019-10-07 15:29:04 +0200140 help
141 Support MIPI DSI interface for driving a MIPI compatible device.
142 The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
143 serial interface between a host processor and a display module.
144
Simon Glass6e42e252016-01-22 21:53:37 +0100145config CONSOLE_NORMAL
146 bool "Support a simple text console"
Simon Glassfeda1932022-10-18 07:35:17 -0600147 default y
Simon Glass6e42e252016-01-22 21:53:37 +0100148 help
149 Support drawing text on the frame buffer console so that it can be
150 used as a console. Rotation is not supported by this driver (see
151 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
152 for the display.
153
154config CONSOLE_ROTATION
Simon Glassb5146b22016-01-18 19:52:19 -0700155 bool "Support rotated displays"
Simon Glassb5146b22016-01-18 19:52:19 -0700156 help
157 Sometimes, for example if the display is mounted in portrait
158 mode or even if it's mounted landscape but rotated by 180degree,
159 we need to rotate our content of the display relative to the
160 framebuffer, so that user can read the messages which are
161 printed out. Enable this option to include a text driver which can
162 support this. The rotation is set by the 'rot' parameter in
163 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
164 degrees, 3=270 degrees.
165
Simon Glassa29b0122016-01-14 18:10:42 -0700166config CONSOLE_TRUETYPE
167 bool "Support a console that uses TrueType fonts"
Dzmitry Sankouskie7ee1fd2023-03-07 13:21:16 +0300168 select CMD_SELECT_FONT
Simon Glassa29b0122016-01-14 18:10:42 -0700169 help
170 TrueTrype fonts can provide outline-drawing capability rather than
171 needing to provide a bitmap for each font and size that is needed.
172 With this option you can adjust the text size and use a variety of
173 fonts. Note that this is noticeably slower than with normal console.
174
175config CONSOLE_TRUETYPE_SIZE
176 int "TrueType font size"
177 depends on CONSOLE_TRUETYPE
178 default 18
179 help
180 This sets the font size for the console. The size is measured in
181 pixels and is the nominal height of a character. Note that fonts
182 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
183 However that measurement depends on the size of your display and
184 there is no standard display density. At present there is not a
185 method to select the display's physical size, which would allow
186 U-Boot to calculate the correct font size.
187
Simon Glass31efa252022-10-06 08:36:11 -0600188config CONSOLE_TRUETYPE_MAX_METRICS
189 int "TrueType maximum number of font / size combinations"
190 depends on CONSOLE_TRUETYPE
191 default 10 if EXPO
192 default 1
193 help
194 This sets the number of font / size combinations which can be used by
195 the console. For simple console use a single font is enough. When
196 boot menus are in use, this may need to be increased.
197
198 Note that a separate entry is needed for each font size, even if the
199 font itself is the same. This is because the entry caches various
200 font metrics which are expensive to regenerate each time the font
201 size changes.
202
Simon Glass983b1032017-04-26 22:27:57 -0600203config SYS_WHITE_ON_BLACK
204 bool "Display console as white on a black background"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400205 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glass983b1032017-04-26 22:27:57 -0600206 help
207 Normally the display is black on a white background, Enable this
208 option to invert this, i.e. white on a black background. This can be
209 better in low-light situations or to reduce eye strain in some
210 cases.
211
Rob Clark8ef05352017-08-03 12:47:01 -0400212config NO_FB_CLEAR
213 bool "Skip framebuffer clear"
214 help
215 If firmware (whatever loads u-boot) has already put a splash image
216 on screen, you might want to preserve it until whatever u-boot
217 loads takes over the screen. This, for example, can be used to
218 keep splash image on screen until grub graphical boot menu starts.
219
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200220config PANEL
221 bool "Enable panel uclass support"
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200222 default y
223 help
224 This provides panel uclass driver that enables basic panel support.
225
226config SIMPLE_PANEL
227 bool "Enable simple panel support"
Asherah Connor1bed5762021-03-03 14:46:47 +1100228 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200229 default y
230 help
231 This turns on a simple panel driver that enables a compatible
232 video panel.
233
Simon Glass820b5892022-10-06 08:36:07 -0600234config PANEL_HX8238D
235 bool "Enable Himax HX-8238D LCD driver"
236 depends on PANEL
237 help
238 Support for HX-8238D LCD Panel
239 The HX8238-D is a single chip controller and driver LSI that
240 integrates the power circuit.
241 It can drive a maximum 960x240 dot graphics on a-TFT panel
242 displays in 16M colors with dithering.
243
Simon Glassa29b0122016-01-14 18:10:42 -0700244source "drivers/video/fonts/Kconfig"
245
Simon Glassa2931b32016-02-06 14:31:37 -0700246config VIDCONSOLE_AS_LCD
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200247 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200248 help
249 This is a work-around for boards which have 'lcd' or 'vga' in their
250 stdout environment variable, but have moved to use driver model for
251 video. In this case the console will no-longer work. While it is
252 possible to update the environment, the breakage may be confusing for
253 users. This option will be removed around the end of 2020.
254
255config VIDCONSOLE_AS_NAME
256 string "Use 'vidconsole' when string defined here is seen in stdout"
257 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200258 default "lcd" if LCD || TEGRA_COMMON
259 default "vga" if !LCD
Simon Glassa2931b32016-02-06 14:31:37 -0700260 help
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200261 This is a work-around for boards which have 'lcd' or 'vga' in their
262 stdout environment variable, but have moved to use driver model for
263 video. In this case the console will no-longer work. While it is
264 possible to update the environment, the breakage may be confusing for
265 users. This option will be removed around the end of 2020.
Simon Glassa2931b32016-02-06 14:31:37 -0700266
Bin Meng13b2bfc2016-10-09 04:14:16 -0700267config VIDEO_COREBOOT
268 bool "Enable coreboot framebuffer driver support"
Simon Glass19987c92021-03-15 18:00:27 +1300269 depends on X86
Bin Meng13b2bfc2016-10-09 04:14:16 -0700270 help
271 Turn on this option to enable a framebuffer driver when U-Boot is
272 loaded by coreboot where the graphics device is configured by
273 coreboot already. This can in principle be used with any platform
274 that coreboot supports.
275
Bin Meng4a08c742018-06-12 08:36:22 -0700276config VIDEO_EFI
277 bool "Enable EFI framebuffer driver support"
Simon Glass1834c082021-11-03 21:09:10 -0600278 depends on EFI_STUB || EFI_APP
Bin Meng4a08c742018-06-12 08:36:22 -0700279 help
280 Turn on this option to enable a framebuffeer driver when U-Boot is
281 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
282 the graphics device is configured by the EFI BIOS already. This can
283 in principle be used with any platform that has an EFI BIOS.
284
Simon Glass6b1ba982014-12-29 19:32:28 -0700285config VIDEO_VESA
286 bool "Enable VESA video driver support"
Simon Glass6b1ba982014-12-29 19:32:28 -0700287 help
288 Turn on this option to enable a very simple driver which uses vesa
289 to discover the video mode and then provides a frame buffer for use
290 by U-Boot. This can in principle be used with any platform that
291 supports PCI and video cards that support VESA BIOS Extension (VBE).
292
Bin Meng6bde2dc2015-05-11 07:36:29 +0800293config FRAMEBUFFER_SET_VESA_MODE
294 bool "Set framebuffer graphics resolution"
Simon Glass97cb0922016-03-11 22:07:30 -0700295 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng6bde2dc2015-05-11 07:36:29 +0800296 help
297 Set VESA/native framebuffer mode (needed for bootsplash and graphical
298 framebuffer console)
299
300choice
301 prompt "framebuffer graphics resolution"
Bin Meng17b07d72018-04-11 22:02:16 -0700302 default FRAMEBUFFER_VESA_MODE_118
Bin Meng6bde2dc2015-05-11 07:36:29 +0800303 depends on FRAMEBUFFER_SET_VESA_MODE
304 help
305 This option sets the resolution used for the U-Boot framebuffer (and
306 bootsplash screen).
307
308config FRAMEBUFFER_VESA_MODE_100
309 bool "640x400 256-color"
310
311config FRAMEBUFFER_VESA_MODE_101
312 bool "640x480 256-color"
313
314config FRAMEBUFFER_VESA_MODE_102
315 bool "800x600 16-color"
316
317config FRAMEBUFFER_VESA_MODE_103
318 bool "800x600 256-color"
319
320config FRAMEBUFFER_VESA_MODE_104
321 bool "1024x768 16-color"
322
323config FRAMEBUFFER_VESA_MODE_105
Bin Meng57dccb52015-08-09 23:26:59 -0700324 bool "1024x768 256-color"
Bin Meng6bde2dc2015-05-11 07:36:29 +0800325
326config FRAMEBUFFER_VESA_MODE_106
327 bool "1280x1024 16-color"
328
329config FRAMEBUFFER_VESA_MODE_107
330 bool "1280x1024 256-color"
331
332config FRAMEBUFFER_VESA_MODE_108
333 bool "80x60 text"
334
335config FRAMEBUFFER_VESA_MODE_109
336 bool "132x25 text"
337
338config FRAMEBUFFER_VESA_MODE_10A
339 bool "132x43 text"
340
341config FRAMEBUFFER_VESA_MODE_10B
342 bool "132x50 text"
343
344config FRAMEBUFFER_VESA_MODE_10C
345 bool "132x60 text"
346
347config FRAMEBUFFER_VESA_MODE_10D
348 bool "320x200 32k-color (1:5:5:5)"
349
350config FRAMEBUFFER_VESA_MODE_10E
351 bool "320x200 64k-color (5:6:5)"
352
353config FRAMEBUFFER_VESA_MODE_10F
354 bool "320x200 16.8M-color (8:8:8)"
355
356config FRAMEBUFFER_VESA_MODE_110
357 bool "640x480 32k-color (1:5:5:5)"
358
359config FRAMEBUFFER_VESA_MODE_111
360 bool "640x480 64k-color (5:6:5)"
361
362config FRAMEBUFFER_VESA_MODE_112
363 bool "640x480 16.8M-color (8:8:8)"
364
365config FRAMEBUFFER_VESA_MODE_113
366 bool "800x600 32k-color (1:5:5:5)"
367
368config FRAMEBUFFER_VESA_MODE_114
369 bool "800x600 64k-color (5:6:5)"
370
371config FRAMEBUFFER_VESA_MODE_115
372 bool "800x600 16.8M-color (8:8:8)"
373
374config FRAMEBUFFER_VESA_MODE_116
375 bool "1024x768 32k-color (1:5:5:5)"
376
377config FRAMEBUFFER_VESA_MODE_117
378 bool "1024x768 64k-color (5:6:5)"
379
380config FRAMEBUFFER_VESA_MODE_118
381 bool "1024x768 16.8M-color (8:8:8)"
382
383config FRAMEBUFFER_VESA_MODE_119
384 bool "1280x1024 32k-color (1:5:5:5)"
385
386config FRAMEBUFFER_VESA_MODE_11A
387 bool "1280x1024 64k-color (5:6:5)"
388
389config FRAMEBUFFER_VESA_MODE_11B
390 bool "1280x1024 16.8M-color (8:8:8)"
391
392config FRAMEBUFFER_VESA_MODE_USER
393 bool "Manually select VESA mode"
394
395endchoice
396
397# Map the config names to an integer (KB).
398config FRAMEBUFFER_VESA_MODE
399 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
400 hex
401 default 0x100 if FRAMEBUFFER_VESA_MODE_100
402 default 0x101 if FRAMEBUFFER_VESA_MODE_101
403 default 0x102 if FRAMEBUFFER_VESA_MODE_102
404 default 0x103 if FRAMEBUFFER_VESA_MODE_103
405 default 0x104 if FRAMEBUFFER_VESA_MODE_104
406 default 0x105 if FRAMEBUFFER_VESA_MODE_105
407 default 0x106 if FRAMEBUFFER_VESA_MODE_106
408 default 0x107 if FRAMEBUFFER_VESA_MODE_107
409 default 0x108 if FRAMEBUFFER_VESA_MODE_108
410 default 0x109 if FRAMEBUFFER_VESA_MODE_109
411 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
412 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
413 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
414 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
415 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
416 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
417 default 0x110 if FRAMEBUFFER_VESA_MODE_110
418 default 0x111 if FRAMEBUFFER_VESA_MODE_111
419 default 0x112 if FRAMEBUFFER_VESA_MODE_112
420 default 0x113 if FRAMEBUFFER_VESA_MODE_113
421 default 0x114 if FRAMEBUFFER_VESA_MODE_114
422 default 0x115 if FRAMEBUFFER_VESA_MODE_115
423 default 0x116 if FRAMEBUFFER_VESA_MODE_116
424 default 0x117 if FRAMEBUFFER_VESA_MODE_117
425 default 0x118 if FRAMEBUFFER_VESA_MODE_118
426 default 0x119 if FRAMEBUFFER_VESA_MODE_119
427 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
428 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
429 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
430
Hans de Goede66525bb2015-08-08 16:03:29 +0200431config VIDEO_LCD_ANX9804
432 bool "ANX9804 bridge chip"
Hans de Goede66525bb2015-08-08 16:03:29 +0200433 ---help---
434 Support for the ANX9804 bridge chip, which can take pixel data coming
435 from a parallel LCD interface and translate it on the fy into a DP
436 interface for driving eDP TFT displays. It uses I2C for configuration.
437
Tom Rini286c4532022-03-18 08:38:28 -0400438config ATMEL_LCD
439 bool "Atmel LCD panel support"
Simon Glassfeda1932022-10-18 07:35:17 -0600440 depends on ARCH_AT91
Tom Rini286c4532022-03-18 08:38:28 -0400441
442config ATMEL_LCD_BGR555
443 bool "Display in BGR555 mode"
444 help
445 Use the BGR555 output mode. Otherwise RGB565 is used.
446
Simon Glass2cbc1c02022-01-23 07:04:14 -0700447config VIDEO_BCM2835
448 bool "Display support for BCM2835"
449 help
450 The graphics processor already sets up the display so this driver
451 simply checks the resolution and then sets up the frame buffer with
452 that same resolution (or as near as possible) and 32bpp depth, so
453 that U-Boot can access it with full colour depth.
454
Yannick Fertré78157b22019-10-07 15:29:08 +0200455config VIDEO_LCD_ORISETECH_OTM8009A
456 bool "OTM8009A DSI LCD panel support"
Yannick Fertré78157b22019-10-07 15:29:08 +0200457 select VIDEO_MIPI_DSI
Yannick Fertré78157b22019-10-07 15:29:08 +0200458 help
459 Say Y here if you want to enable support for Orise Technology
460 otm8009a 480x800 dsi 2dl panel.
461
Yannick Fertré06ef1312019-10-07 15:29:09 +0200462config VIDEO_LCD_RAYDIUM_RM68200
463 bool "RM68200 DSI LCD panel support"
Yannick Fertré06ef1312019-10-07 15:29:09 +0200464 select VIDEO_MIPI_DSI
Yannick Fertré06ef1312019-10-07 15:29:09 +0200465 help
466 Say Y here if you want to enable support for Raydium RM68200
467 720x1280 DSI video mode panel.
468
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200469config VIDEO_LCD_SSD2828
470 bool "SSD2828 bridge chip"
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200471 ---help---
472 Support for the SSD2828 bridge chip, which can take pixel data coming
473 from a parallel LCD interface and translate it on the fly into MIPI DSI
474 interface for driving a MIPI compatible LCD panel. It uses SPI for
475 configuration.
476
477config VIDEO_LCD_SSD2828_TX_CLK
478 int "SSD2828 TX_CLK frequency (in MHz)"
479 depends on VIDEO_LCD_SSD2828
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200480 default 0
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200481 ---help---
482 The frequency of the crystal, which is clocking SSD2828. It may be
483 anything in the 8MHz-30MHz range and the exact value should be
484 retrieved from the board schematics. Or in the case of Allwinner
485 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200486 FEX files. It can be also set to 0 for selecting PCLK from the
487 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200488
489config VIDEO_LCD_SSD2828_RESET
490 string "RESET pin of SSD2828"
491 depends on VIDEO_LCD_SSD2828
492 default ""
493 ---help---
494 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500495 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200496
Neil Armstrongc823f242020-09-29 11:53:53 +0200497config VIDEO_LCD_TDO_TL070WSH30
498 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrongc823f242020-09-29 11:53:53 +0200499 select VIDEO_MIPI_DSI
Neil Armstrongc823f242020-09-29 11:53:53 +0200500 help
501 Say Y here if you want to enable support for TDO TL070WSH30
502 1024x600 DSI video mode panel.
503
Hans de Goedea5464f22015-01-20 09:22:26 +0100504config VIDEO_LCD_HITACHI_TX18D42VM
505 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedea5464f22015-01-20 09:22:26 +0100506 ---help---
507 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
508 lcd controller which needs to be initialized over SPI, once that is
509 done they work like a regular LVDS panel.
510
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200511config VIDEO_LCD_SPI_CS
512 string "SPI CS pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100513 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200514 default ""
515 ---help---
516 This is one of the SPI communication pins, involved in setting up a
517 working LCD configuration. The exact role of SPI may differ for
518 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500519 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200520
521config VIDEO_LCD_SPI_SCLK
522 string "SPI SCLK pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100523 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200524 default ""
525 ---help---
526 This is one of the SPI communication pins, involved in setting up a
527 working LCD configuration. The exact role of SPI may differ for
528 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500529 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200530
531config VIDEO_LCD_SPI_MOSI
532 string "SPI MOSI pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100533 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200534 default ""
535 ---help---
536 This is one of the SPI communication pins, involved in setting up a
537 working LCD configuration. The exact role of SPI may differ for
538 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500539 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200540
541config VIDEO_LCD_SPI_MISO
542 string "SPI MISO pin for LCD related config job (optional)"
543 depends on VIDEO_LCD_SSD2828
544 default ""
545 ---help---
546 This is one of the SPI communication pins, involved in setting up a
547 working LCD configuration. The exact role of SPI may differ for
548 different hardware setups. If wired up, this pin may provide additional
549 useful functionality. Such as bi-directional communication with the
550 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Holland4d9958b2021-09-11 16:50:48 -0500551 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200552 function, e.g. PH1 for pin 1 of port H.
Simon Glass51f2c992015-04-14 21:03:38 -0600553
Neil Armstrong3bed4222018-07-24 17:45:28 +0200554source "drivers/video/meson/Kconfig"
555
Stefan Roese913d1be2016-01-20 08:13:28 +0100556config VIDEO_MVEBU
557 bool "Armada XP LCD controller"
Stefan Roese913d1be2016-01-20 08:13:28 +0100558 ---help---
559 Support for the LCD controller integrated in the Marvell
560 Armada XP SoC.
561
Adam Ford244eaea2018-08-02 08:50:20 -0500562config VIDEO_OMAP3
563 bool "Enable OMAP3+ DSS Support"
564 depends on ARCH_OMAP2PLUS
565 help
566 This enables the Display subsystem (DSS) on OMAP3+ boards.
567
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100568config I2C_EDID
569 bool "Enable EDID library"
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100570 help
571 This enables library for accessing EDID data from an LCD panel.
572
Simon Glass2dcf1432016-01-21 19:45:00 -0700573config DISPLAY
574 bool "Enable Display support"
575 depends on DM
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100576 select I2C_EDID
Simon Glass51f2c992015-04-14 21:03:38 -0600577 help
Simon Glass2dcf1432016-01-21 19:45:00 -0700578 This supports drivers that provide a display, such as eDP (Embedded
579 DisplayPort) and HDMI (High Definition Multimedia Interface).
580 The devices provide a simple interface to start up the display,
581 read display information and enable it.
Simon Glasse7e88232015-04-14 21:03:42 -0600582
Liviu Dudau055da182018-09-28 13:49:31 +0100583config NXP_TDA19988
584 bool "Enable NXP TDA19988 support"
585 depends on DISPLAY
Liviu Dudau055da182018-09-28 13:49:31 +0100586 help
587 This enables support for the NXP TDA19988 HDMI encoder. This encoder
588 will convert RGB data streams into HDMI-encoded signals.
589
Songjun Wu79278312017-04-11 16:33:30 +0800590config ATMEL_HLCD
591 bool "Enable ATMEL video support using HLCDC"
Songjun Wu79278312017-04-11 16:33:30 +0800592 help
593 HLCDC supports video output to an attached LCD panel.
594
Dario Binacchif4cf8712023-01-28 16:55:31 +0100595source "drivers/video/ti/Kconfig"
596
Tom Rini4d2cab32022-06-10 22:59:34 -0400597source "drivers/video/exynos/Kconfig"
598
Mario Six25a9f972018-08-09 14:51:23 +0200599config LOGICORE_DP_TX
600 bool "Enable Logicore DP TX driver"
601 depends on DISPLAY
602 help
603 Enable the driver for the transmitter part of the Xilinx LogiCORE
604 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
605 video interface as defined by VESA DisplayPort v1.2.
606
607 Note that this is a pure transmitter device, and has no display
608 capabilities by itself.
609
Simon Glass97cb0922016-03-11 22:07:30 -0700610config VIDEO_BROADWELL_IGD
611 bool "Enable Intel Broadwell integrated graphics device"
612 depends on X86
613 help
Simon Glass1df91272016-10-05 20:42:14 -0600614 This enables support for integrated graphics on Intel broadwell
Simon Glass97cb0922016-03-11 22:07:30 -0700615 devices. Initialisation is mostly performed by a VGA boot ROM, with
616 some setup handled by U-Boot itself. The graphics adaptor works as
617 a VESA device and supports LCD panels, eDP and LVDS outputs.
618 Configuration of most aspects of device operation is performed using
619 a special tool which configures the VGA ROM, but the graphics
620 resolution can be selected in U-Boot.
621
Simon Glass2c943802016-10-05 20:42:15 -0600622config VIDEO_IVYBRIDGE_IGD
623 bool "Enable Intel Ivybridge integration graphics support"
624 depends on X86
625 help
626 This enables support for integrated graphics on Intel ivybridge
627 devices. Initialisation is mostly performed by a VGA boot ROM, with
628 some setup handled by U-Boot itself. The graphics adaptor works as
629 a VESA device and supports LCD panels, eDP and LVDS outputs.
630 Configuration of most aspects of device operation is performed using
631 a special tool which configures the VGA ROM, but the graphics
632 resolution can be selected in U-Boot.
633
eric.gao@rock-chips.comb98f0a32017-04-17 22:24:23 +0800634source "drivers/video/rockchip/Kconfig"
Simon Glassc2539482016-01-21 19:45:03 -0700635
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100636config VIDEO_ARM_MALIDP
637 bool "Enable Arm Mali Display Processor support"
Simon Glassfeda1932022-10-18 07:35:17 -0600638 depends on OF_CONTROL
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100639 select VEXPRESS_CLK
640 help
641 This enables support for Arm Ltd Mali Display Processors from
642 the DP500, DP550 and DP650 family.
643
Simon Glass1e69ad02016-01-18 19:52:24 -0700644config VIDEO_SANDBOX_SDL
645 bool "Enable sandbox video console using SDL"
Tom Rinid948c892022-11-19 18:45:43 -0500646 depends on SANDBOX_SDL
Simon Glass1e69ad02016-01-18 19:52:24 -0700647 help
648 When using sandbox you can enable an emulated LCD display which
649 appears as an SDL (Simple DirectMedia Layer) window. This is a
650 console device and can display stdout output. Within U-Boot is is
651 a normal bitmap display and can display images as well as text.
652
Philippe CORNU72719d22017-08-03 12:36:08 +0200653source "drivers/video/stm32/Kconfig"
654
Nikhil M Jain5f9f8162023-01-31 15:35:17 +0530655source "drivers/video/tidss/Kconfig"
656
Simon Glassd2f90652016-01-30 16:37:51 -0700657config VIDEO_TEGRA20
658 bool "Enable LCD support on Tegra20"
Simon Glass40d56a92016-01-30 16:37:54 -0700659 depends on OF_CONTROL
Simon Glassd2f90652016-01-30 16:37:51 -0700660 help
661 Tegra20 supports video output to an attached LCD panel as well as
662 other options such as HDMI. Only the LCD is supported in U-Boot.
663 This option enables this support which can be used on devices which
664 have an LCD display connected.
665
Simon Glasse7e88232015-04-14 21:03:42 -0600666config VIDEO_TEGRA124
667 bool "Enable video support on Tegra124"
668 help
669 Tegra124 supports many video output options including eDP and
670 HDMI. At present only eDP is supported by U-Boot. This option
671 enables this support which can be used on devices which
672 have an eDP display connected.
Simon Glass801ab9e2015-07-02 18:16:08 -0600673
674source "drivers/video/bridge/Kconfig"
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900675
Anatolij Gustschinbffd1312019-03-18 23:29:32 +0100676source "drivers/video/imx/Kconfig"
Anatolij Gustschin57f065f2019-03-18 23:29:31 +0100677
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200678config VIDEO_MXS
679 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200680 help
681 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
682
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200683config VIDEO_NX
684 bool "Enable video support on Nexell SoC"
685 depends on ARCH_S5P6818 || ARCH_S5P4418
686 help
687 Nexell SoC supports many video output options including eDP and
688 HDMI. This option enables this support which can be used on devices
689 which have an eDP display connected.
690
Michal Simekb66d7af2020-12-03 09:31:35 +0100691config VIDEO_SEPS525
692 bool "Enable video support for Seps525"
Simon Glassfeda1932022-10-18 07:35:17 -0600693 depends on DM_GPIO
Michal Simekb66d7af2020-12-03 09:31:35 +0100694 help
695 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
696 Currently driver is supporting only SPI interface.
697
Michal Simek98cacab2022-02-23 15:52:02 +0100698config VIDEO_ZYNQMP_DPSUB
699 bool "Enable video support for ZynqMP Display Port"
Simon Glassfeda1932022-10-18 07:35:17 -0600700 depends on ZYNQMP_POWER_DOMAIN
Michal Simek98cacab2022-02-23 15:52:02 +0100701 help
702 Enable support for Xilinx ZynqMP Display Port. Currently this file
703 is used as placeholder for driver. The main reason is to record
704 compatible string and calling power domain driver.
705
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200706source "drivers/video/nexell/Kconfig"
707
Simon Glassb87ca802016-10-17 20:12:57 -0600708config CONSOLE_SCROLL_LINES
709 int "Number of lines to scroll the console by"
Simon Glassb87ca802016-10-17 20:12:57 -0600710 default 1
711 help
712 When the console need to be scrolled, this is the number of
713 lines to scroll by. It defaults to 1. Increasing this makes the
714 console jump but can help speed up operation when scrolling
715 is slow.
716
Philipp Tomsich8517f642017-05-05 21:48:26 +0200717config VIDEO_DW_HDMI
718 bool
719 help
720 Enables the common driver code for the Designware HDMI TX
721 block found in SoCs from various vendors.
722 As this does not provide any functionality by itself (but
723 rather requires a SoC-specific glue driver to call it), it
724 can not be enabled from the configuration menu.
725
Yannick Fertré23f965a2019-10-07 15:29:05 +0200726config VIDEO_DSI_HOST_SANDBOX
727 bool "Enable sandbox for dsi host"
728 depends on SANDBOX
729 select VIDEO_MIPI_DSI
730 help
731 Enable support for sandbox dsi host device used for testing
732 purposes.
733 Display Serial Interface (DSI) defines a serial bus and
734 a communication protocol between the host and the device
735 (panel, bridge).
736
Yannick Fertréd4f7ea82019-10-07 15:29:06 +0200737config VIDEO_DW_MIPI_DSI
738 bool
739 select VIDEO_MIPI_DSI
740 help
741 Enables the common driver code for the Synopsis Designware
742 MIPI DSI block found in SoCs from various vendors.
743 As this does not provide any functionality by itself (but
744 rather requires a SoC-specific glue driver to call it), it
745 can not be enabled from the configuration menu.
746
Rob Clark971d7e62017-08-03 12:47:00 -0400747config VIDEO_SIMPLE
748 bool "Simple display driver for preconfigured display"
749 help
750 Enables a simple generic display driver which utilizes the
751 simple-framebuffer devicetree bindings.
752
753 This driver assumes that the display hardware has been initialized
754 before u-boot starts, and u-boot will simply render to the pre-
755 allocated frame buffer surface.
756
Icenowy Zhengf6bdddc2017-10-26 11:14:46 +0800757config VIDEO_DT_SIMPLEFB
758 bool "Enable SimpleFB support for passing framebuffer to OS"
759 help
760 Enables the code to pass the framebuffer to the kernel as a
761 simple framebuffer in the device tree.
762 The video output is initialized by U-Boot, and kept by the
763 kernel.
764
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200765config VIDEO_MCDE_SIMPLE
766 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200767 help
768 Enables a simple display driver for ST-Ericsson MCDE
769 (Multichannel Display Engine), which reads the configuration from
770 the MCDE registers.
771
772 This driver assumes that the display hardware has been initialized
773 before u-boot starts, and u-boot will simply render to the pre-
774 allocated frame buffer surface.
775
Mario Six39a336f2018-09-27 09:19:29 +0200776config OSD
777 bool "Enable OSD support"
778 depends on DM
Mario Six39a336f2018-09-27 09:19:29 +0200779 help
780 This supports drivers that provide a OSD (on-screen display), which
781 is a (usually text-oriented) graphics buffer to show information on
782 a display.
Mario Six9671f692018-09-27 09:19:30 +0200783
Mario Six4eea5312018-09-27 09:19:31 +0200784config SANDBOX_OSD
785 bool "Enable sandbox OSD"
786 depends on OSD
787 help
788 Enable support for sandbox OSD device used for testing purposes.
789
Mario Six9671f692018-09-27 09:19:30 +0200790config IHS_VIDEO_OUT
791 bool "Enable IHS video out driver"
792 depends on OSD
793 help
794 Enable support for the gdsys Integrated Hardware Systems (IHS) video
795 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
796 textual overlays of the display outputs.
797
Simon Glass35bd70c2020-08-11 11:23:35 -0600798config SPLASH_SCREEN
799 bool "Show a splash-screen image"
800 help
801 If this option is set, the environment is checked for a variable
802 "splashimage". If found, the usual display of logo, copyright and
803 system information on the LCD is suppressed and the BMP image at the
804 address specified in "splashimage" is loaded instead. The console is
805 redirected to the "nulldev", too. This allows for a "silent" boot
806 where a splash screen is loaded very quickly after power-on.
807
808 The splash_screen_prepare() function is a weak function defined in
809 common/splash.c. It is called as part of the splash screen display
810 sequence. It gives the board an opportunity to prepare the splash
811 image data before it is processed and sent to the frame buffer by
812 U-Boot. Define your own version to use this feature.
813
Simon Glass988d19d2022-10-18 06:24:16 -0600814if SPLASH_SCREEN
815
Simon Glass35bd70c2020-08-11 11:23:35 -0600816config SPLASH_SCREEN_ALIGN
817 bool "Allow positioning the splash image anywhere on the display"
Simon Glass35bd70c2020-08-11 11:23:35 -0600818 help
819 If this option is set the splash image can be freely positioned
820 on the screen. Environment variable "splashpos" specifies the
821 position as "x,y". If a positive number is given it is used as
822 number of pixel from left/top. If a negative number is given it
823 is used as number of pixel from right/bottom. You can also
824 specify 'm' for centering the image.
825
826 Example:
827 setenv splashpos m,m
828 => image at center of screen
829
830 setenv splashpos 30,20
831 => image at x = 30 and y = 20
832
833 setenv splashpos -10,m
834 => vertically centered image
835 at x = dspWidth - bmpWidth - 9
836
Simon Glass4adc28e2022-10-18 06:30:56 -0600837config HIDE_LOGO_VERSION
838 bool "Hide the version information on the splash screen"
839 help
840 Normally the U-Boot version string is shown on the display when the
841 splash screen is enabled. This information is not otherwise visible
842 since video starts up after U-Boot has displayed the initial banner.
843
844 Enable this option to hide this information.
845
Simon Glass35bd70c2020-08-11 11:23:35 -0600846config SPLASH_SOURCE
847 bool "Control the source of the splash image"
Simon Glass35bd70c2020-08-11 11:23:35 -0600848 help
849 Use the splash_source.c library. This library provides facilities to
850 declare board specific splash image locations, routines for loading
851 splash image from supported locations, and a way of controlling the
852 selected splash location using the "splashsource" environment
853 variable.
854
855 This CONFIG works as follows:
856
857 - If splashsource is set to a supported location name as defined by
858 board code, use that splash location.
859 - If splashsource is undefined, use the first splash location as
860 default.
861 - If splashsource is set to an unsupported value, do not load a splash
862 screen.
863
864 A splash source location can describe either storage with raw data, a
865 storage formatted with a file system or a FIT image. In case of a
866 filesystem, the splash screen data is loaded as a file. The name of
867 the splash screen file can be controlled with the environment variable
868 "splashfile".
869
870 To enable loading the splash image from a FIT image, CONFIG_FIT must
871 be enabled. The FIT image has to start at the 'offset' field address
872 in the selected splash location. The name of splash image within the
873 FIT shall be specified by the environment variable "splashfile".
874
875 In case the environment variable "splashfile" is not defined the
876 default name 'splash.bmp' will be used.
877
Simon Glass988d19d2022-10-18 06:24:16 -0600878endif # SPLASH_SCREEN
879
Patrick Delaunay0ed6c0f2020-09-28 11:30:14 +0200880config VIDEO_BMP_GZIP
881 bool "Gzip compressed BMP image support"
882 depends on CMD_BMP || SPLASH_SCREEN
883 help
884 If this option is set, additionally to standard BMP
885 images, gzipped BMP images can be displayed via the
886 splashscreen support or the bmp command.
887
Simon Glasse6550032022-10-18 06:46:08 -0600888config VIDEO_LOGO_MAX_SIZE
Simon Glass2fd5a572022-10-18 06:49:18 -0600889 hex "Maximum size of the bitmap logo in bytes"
890 default 0x100000
891 help
892 Sets the maximum uncompressed size of the logo. This is needed when
893 decompressing a BMP file using the gzip algorithm, since it cannot
894 read the size from the bitmap header.
Simon Glasse6550032022-10-18 06:46:08 -0600895
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200896config VIDEO_BMP_RLE8
897 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200898 help
899 If this option is set, the 8-bit RLE compressed BMP images
900 is supported.
901
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200902config BMP_16BPP
903 bool "16-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200904 help
905 Support display of bitmaps file with 16-bit-per-pixel
906
907config BMP_24BPP
908 bool "24-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200909 help
910 Support display of bitmaps file with 24-bit-per-pixel.
911
912config BMP_32BPP
913 bool "32-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200914 help
915 Support display of bitmaps file with 32-bit-per-pixel.
916
Simon Glassb86986c2022-10-18 07:46:31 -0600917endif # VIDEO
Simon Glassfeda1932022-10-18 07:35:17 -0600918
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900919endmenu