blob: e08b7a77dd2066cd9e2aebeac1a422ee1e05c573 [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
Simon Glass64cfeda2021-11-19 13:24:01 -070019config VIDEO_LOGO
20 bool "Show the U-Boot logo on the display"
Simon Glass7a8555d2021-11-19 13:24:04 -070021 default y if !SPLASH_SCREEN
Simon Glass84e63ab2021-11-19 13:24:03 -070022 select VIDEO_BMP_RLE8
Simon Glass64cfeda2021-11-19 13:24:01 -070023 help
24 This enables showing the U-Boot logo on the display when a video
25 device is probed. It appears at the top right. The logo itself is at
26 tools/logos/u-boot_logo.bmp and looks best when the display has a
27 black background.
28
Anatolij Gustschine26e5202020-05-26 00:20:49 +020029config BACKLIGHT
30 bool "Enable panel backlight uclass support"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020031 default y
32 help
33 This provides backlight uclass driver that enables basic panel
34 backlight support.
35
Simon Glass551ca0e2020-07-02 21:12:33 -060036config VIDEO_PCI_DEFAULT_FB_SIZE
37 hex "Default framebuffer size to use if no drivers request it"
Simon Glass551ca0e2020-07-02 21:12:33 -060038 default 0x1000000 if X86 && PCI
39 default 0 if !(X86 && PCI)
40 help
41 Generally, video drivers request the amount of memory they need for
42 the frame buffer when they are bound, by setting the size field in
Dario Binacchi196947b2021-01-23 19:43:52 +010043 struct video_uc_plat. That memory is then reserved for use after
Simon Glass551ca0e2020-07-02 21:12:33 -060044 relocation. But PCI drivers cannot be bound before relocation unless
45 they are mentioned in the devicetree.
46
47 With this value set appropriately, it is possible for PCI video
48 devices to have a framebuffer allocated by U-Boot.
49
50 Note: the framebuffer needs to be large enough to store all pixels at
51 maximum resolution. For example, at 1920 x 1200 with 32 bits per
52 pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
53
Simon Glass9beac5d2020-07-02 21:12:20 -060054config VIDEO_COPY
55 bool "Enable copying the frame buffer to a hardware copy"
Simon Glass9beac5d2020-07-02 21:12:20 -060056 help
57 On some machines (e.g. x86), reading from the frame buffer is very
58 slow because it is uncached. To improve performance, this feature
59 allows the frame buffer to be kept in cached memory (allocated by
60 U-Boot) and then copied to the hardware frame-buffer as needed.
61
62 To use this, your video driver must set @copy_base in
Dario Binacchi196947b2021-01-23 19:43:52 +010063 struct video_uc_plat.
Simon Glass9beac5d2020-07-02 21:12:20 -060064
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020065config BACKLIGHT_PWM
66 bool "Generic PWM based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020067 depends on BACKLIGHT && DM_PWM
Patrick Delaunay08a43cf2017-08-03 12:36:06 +020068 default y
69 help
70 If you have a LCD backlight adjustable by PWM, say Y to enable
71 this driver.
72 This driver can be use with "simple-panel" and
73 it understands the standard device tree
74 (leds/backlight/pwm-backlight.txt)
75
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +020076config BACKLIGHT_GPIO
77 bool "Generic GPIO based Backlight Driver"
Anatolij Gustschine26e5202020-05-26 00:20:49 +020078 depends on BACKLIGHT
Patrick Delaunay5b6a6a92017-08-03 12:36:07 +020079 help
80 If you have a LCD backlight adjustable by GPIO, say Y to enable
81 this driver.
82 This driver can be used with "simple-panel" and
83 it understands the standard device tree
84 (leds/backlight/gpio-backlight.txt)
85
Simon Glass1acafc72016-01-18 19:52:15 -070086config VIDEO_BPP8
87 bool "Support 8-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +010088 default y
Simon Glass1acafc72016-01-18 19:52:15 -070089 help
90 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
91 Enabling this will include code to support this display. Without
92 this option, such displays will not be supported and console output
93 will be empty.
94
95config VIDEO_BPP16
96 bool "Support 16-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +010097 default y
Simon Glass1acafc72016-01-18 19:52:15 -070098 help
99 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
100 Enabling this will include code to support this display. Without
101 this option, such displays will not be supported and console output
102 will be empty.
103
104config VIDEO_BPP32
105 bool "Support 32-bit-per-pixel displays"
Anatolij Gustschin8a6ffed2020-02-04 22:43:06 +0100106 default y
Simon Glass1acafc72016-01-18 19:52:15 -0700107 help
108 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
109 Enabling this will include code to support this display. Without
110 this option, such displays will not be supported and console output
111 will be empty.
112
Rob Clarka085aa12017-09-13 18:12:21 -0400113config VIDEO_ANSI
114 bool "Support ANSI escape sequences in video console"
Simon Glass72a0dd82023-01-06 08:52:29 -0600115 default y if EFI_LOADER
Rob Clarka085aa12017-09-13 18:12:21 -0400116 help
117 Enable ANSI escape sequence decoding for a more fully functional
Simon Glass72a0dd82023-01-06 08:52:29 -0600118 console. Functionality includes changing the text colour and moving
119 the cursor. These date from the 1970s and are still widely used today
120 to control a text terminal. U-Boot implements these by decoding the
121 sequences and performing the appropriate operation.
Rob Clarka085aa12017-09-13 18:12:21 -0400122
Yannick Fertré66c37242019-10-07 15:29:04 +0200123config VIDEO_MIPI_DSI
124 bool "Support MIPI DSI interface"
Yannick Fertré66c37242019-10-07 15:29:04 +0200125 help
126 Support MIPI DSI interface for driving a MIPI compatible device.
127 The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
128 serial interface between a host processor and a display module.
129
Simon Glass6e42e252016-01-22 21:53:37 +0100130config CONSOLE_NORMAL
131 bool "Support a simple text console"
Simon Glassfeda1932022-10-18 07:35:17 -0600132 default y
Simon Glass6e42e252016-01-22 21:53:37 +0100133 help
134 Support drawing text on the frame buffer console so that it can be
135 used as a console. Rotation is not supported by this driver (see
136 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
137 for the display.
138
139config CONSOLE_ROTATION
Simon Glassb5146b22016-01-18 19:52:19 -0700140 bool "Support rotated displays"
Simon Glassb5146b22016-01-18 19:52:19 -0700141 help
142 Sometimes, for example if the display is mounted in portrait
143 mode or even if it's mounted landscape but rotated by 180degree,
144 we need to rotate our content of the display relative to the
145 framebuffer, so that user can read the messages which are
146 printed out. Enable this option to include a text driver which can
147 support this. The rotation is set by the 'rot' parameter in
148 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
149 degrees, 3=270 degrees.
150
Simon Glassa29b0122016-01-14 18:10:42 -0700151config CONSOLE_TRUETYPE
152 bool "Support a console that uses TrueType fonts"
Simon Glassa29b0122016-01-14 18:10:42 -0700153 help
154 TrueTrype fonts can provide outline-drawing capability rather than
155 needing to provide a bitmap for each font and size that is needed.
156 With this option you can adjust the text size and use a variety of
157 fonts. Note that this is noticeably slower than with normal console.
158
159config CONSOLE_TRUETYPE_SIZE
160 int "TrueType font size"
161 depends on CONSOLE_TRUETYPE
162 default 18
163 help
164 This sets the font size for the console. The size is measured in
165 pixels and is the nominal height of a character. Note that fonts
166 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
167 However that measurement depends on the size of your display and
168 there is no standard display density. At present there is not a
169 method to select the display's physical size, which would allow
170 U-Boot to calculate the correct font size.
171
Simon Glass31efa252022-10-06 08:36:11 -0600172config CONSOLE_TRUETYPE_MAX_METRICS
173 int "TrueType maximum number of font / size combinations"
174 depends on CONSOLE_TRUETYPE
175 default 10 if EXPO
176 default 1
177 help
178 This sets the number of font / size combinations which can be used by
179 the console. For simple console use a single font is enough. When
180 boot menus are in use, this may need to be increased.
181
182 Note that a separate entry is needed for each font size, even if the
183 font itself is the same. This is because the entry caches various
184 font metrics which are expensive to regenerate each time the font
185 size changes.
186
Simon Glass983b1032017-04-26 22:27:57 -0600187config SYS_WHITE_ON_BLACK
188 bool "Display console as white on a black background"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400189 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glass983b1032017-04-26 22:27:57 -0600190 help
191 Normally the display is black on a white background, Enable this
192 option to invert this, i.e. white on a black background. This can be
193 better in low-light situations or to reduce eye strain in some
194 cases.
195
Rob Clark8ef05352017-08-03 12:47:01 -0400196config NO_FB_CLEAR
197 bool "Skip framebuffer clear"
198 help
199 If firmware (whatever loads u-boot) has already put a splash image
200 on screen, you might want to preserve it until whatever u-boot
201 loads takes over the screen. This, for example, can be used to
202 keep splash image on screen until grub graphical boot menu starts.
203
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200204config PANEL
205 bool "Enable panel uclass support"
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200206 default y
207 help
208 This provides panel uclass driver that enables basic panel support.
209
210config SIMPLE_PANEL
211 bool "Enable simple panel support"
Asherah Connor1bed5762021-03-03 14:46:47 +1100212 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200213 default y
214 help
215 This turns on a simple panel driver that enables a compatible
216 video panel.
217
Simon Glass820b5892022-10-06 08:36:07 -0600218config PANEL_HX8238D
219 bool "Enable Himax HX-8238D LCD driver"
220 depends on PANEL
221 help
222 Support for HX-8238D LCD Panel
223 The HX8238-D is a single chip controller and driver LSI that
224 integrates the power circuit.
225 It can drive a maximum 960x240 dot graphics on a-TFT panel
226 displays in 16M colors with dithering.
227
Simon Glassa29b0122016-01-14 18:10:42 -0700228source "drivers/video/fonts/Kconfig"
229
Simon Glassa2931b32016-02-06 14:31:37 -0700230config VIDCONSOLE_AS_LCD
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200231 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200232 help
233 This is a work-around for boards which have 'lcd' or 'vga' in their
234 stdout environment variable, but have moved to use driver model for
235 video. In this case the console will no-longer work. While it is
236 possible to update the environment, the breakage may be confusing for
237 users. This option will be removed around the end of 2020.
238
239config VIDCONSOLE_AS_NAME
240 string "Use 'vidconsole' when string defined here is seen in stdout"
241 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200242 default "lcd" if LCD || TEGRA_COMMON
243 default "vga" if !LCD
Simon Glassa2931b32016-02-06 14:31:37 -0700244 help
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200245 This is a work-around for boards which have 'lcd' or 'vga' in their
246 stdout environment variable, but have moved to use driver model for
247 video. In this case the console will no-longer work. While it is
248 possible to update the environment, the breakage may be confusing for
249 users. This option will be removed around the end of 2020.
Simon Glassa2931b32016-02-06 14:31:37 -0700250
Bin Meng13b2bfc2016-10-09 04:14:16 -0700251config VIDEO_COREBOOT
252 bool "Enable coreboot framebuffer driver support"
Simon Glass19987c92021-03-15 18:00:27 +1300253 depends on X86
Bin Meng13b2bfc2016-10-09 04:14:16 -0700254 help
255 Turn on this option to enable a framebuffer driver when U-Boot is
256 loaded by coreboot where the graphics device is configured by
257 coreboot already. This can in principle be used with any platform
258 that coreboot supports.
259
Bin Meng4a08c742018-06-12 08:36:22 -0700260config VIDEO_EFI
261 bool "Enable EFI framebuffer driver support"
Simon Glass1834c082021-11-03 21:09:10 -0600262 depends on EFI_STUB || EFI_APP
Bin Meng4a08c742018-06-12 08:36:22 -0700263 help
264 Turn on this option to enable a framebuffeer driver when U-Boot is
265 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
266 the graphics device is configured by the EFI BIOS already. This can
267 in principle be used with any platform that has an EFI BIOS.
268
Simon Glass6b1ba982014-12-29 19:32:28 -0700269config VIDEO_VESA
270 bool "Enable VESA video driver support"
Simon Glass6b1ba982014-12-29 19:32:28 -0700271 help
272 Turn on this option to enable a very simple driver which uses vesa
273 to discover the video mode and then provides a frame buffer for use
274 by U-Boot. This can in principle be used with any platform that
275 supports PCI and video cards that support VESA BIOS Extension (VBE).
276
Bin Meng6bde2dc2015-05-11 07:36:29 +0800277config FRAMEBUFFER_SET_VESA_MODE
278 bool "Set framebuffer graphics resolution"
Simon Glass97cb0922016-03-11 22:07:30 -0700279 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng6bde2dc2015-05-11 07:36:29 +0800280 help
281 Set VESA/native framebuffer mode (needed for bootsplash and graphical
282 framebuffer console)
283
284choice
285 prompt "framebuffer graphics resolution"
Bin Meng17b07d72018-04-11 22:02:16 -0700286 default FRAMEBUFFER_VESA_MODE_118
Bin Meng6bde2dc2015-05-11 07:36:29 +0800287 depends on FRAMEBUFFER_SET_VESA_MODE
288 help
289 This option sets the resolution used for the U-Boot framebuffer (and
290 bootsplash screen).
291
292config FRAMEBUFFER_VESA_MODE_100
293 bool "640x400 256-color"
294
295config FRAMEBUFFER_VESA_MODE_101
296 bool "640x480 256-color"
297
298config FRAMEBUFFER_VESA_MODE_102
299 bool "800x600 16-color"
300
301config FRAMEBUFFER_VESA_MODE_103
302 bool "800x600 256-color"
303
304config FRAMEBUFFER_VESA_MODE_104
305 bool "1024x768 16-color"
306
307config FRAMEBUFFER_VESA_MODE_105
Bin Meng57dccb52015-08-09 23:26:59 -0700308 bool "1024x768 256-color"
Bin Meng6bde2dc2015-05-11 07:36:29 +0800309
310config FRAMEBUFFER_VESA_MODE_106
311 bool "1280x1024 16-color"
312
313config FRAMEBUFFER_VESA_MODE_107
314 bool "1280x1024 256-color"
315
316config FRAMEBUFFER_VESA_MODE_108
317 bool "80x60 text"
318
319config FRAMEBUFFER_VESA_MODE_109
320 bool "132x25 text"
321
322config FRAMEBUFFER_VESA_MODE_10A
323 bool "132x43 text"
324
325config FRAMEBUFFER_VESA_MODE_10B
326 bool "132x50 text"
327
328config FRAMEBUFFER_VESA_MODE_10C
329 bool "132x60 text"
330
331config FRAMEBUFFER_VESA_MODE_10D
332 bool "320x200 32k-color (1:5:5:5)"
333
334config FRAMEBUFFER_VESA_MODE_10E
335 bool "320x200 64k-color (5:6:5)"
336
337config FRAMEBUFFER_VESA_MODE_10F
338 bool "320x200 16.8M-color (8:8:8)"
339
340config FRAMEBUFFER_VESA_MODE_110
341 bool "640x480 32k-color (1:5:5:5)"
342
343config FRAMEBUFFER_VESA_MODE_111
344 bool "640x480 64k-color (5:6:5)"
345
346config FRAMEBUFFER_VESA_MODE_112
347 bool "640x480 16.8M-color (8:8:8)"
348
349config FRAMEBUFFER_VESA_MODE_113
350 bool "800x600 32k-color (1:5:5:5)"
351
352config FRAMEBUFFER_VESA_MODE_114
353 bool "800x600 64k-color (5:6:5)"
354
355config FRAMEBUFFER_VESA_MODE_115
356 bool "800x600 16.8M-color (8:8:8)"
357
358config FRAMEBUFFER_VESA_MODE_116
359 bool "1024x768 32k-color (1:5:5:5)"
360
361config FRAMEBUFFER_VESA_MODE_117
362 bool "1024x768 64k-color (5:6:5)"
363
364config FRAMEBUFFER_VESA_MODE_118
365 bool "1024x768 16.8M-color (8:8:8)"
366
367config FRAMEBUFFER_VESA_MODE_119
368 bool "1280x1024 32k-color (1:5:5:5)"
369
370config FRAMEBUFFER_VESA_MODE_11A
371 bool "1280x1024 64k-color (5:6:5)"
372
373config FRAMEBUFFER_VESA_MODE_11B
374 bool "1280x1024 16.8M-color (8:8:8)"
375
376config FRAMEBUFFER_VESA_MODE_USER
377 bool "Manually select VESA mode"
378
379endchoice
380
381# Map the config names to an integer (KB).
382config FRAMEBUFFER_VESA_MODE
383 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
384 hex
385 default 0x100 if FRAMEBUFFER_VESA_MODE_100
386 default 0x101 if FRAMEBUFFER_VESA_MODE_101
387 default 0x102 if FRAMEBUFFER_VESA_MODE_102
388 default 0x103 if FRAMEBUFFER_VESA_MODE_103
389 default 0x104 if FRAMEBUFFER_VESA_MODE_104
390 default 0x105 if FRAMEBUFFER_VESA_MODE_105
391 default 0x106 if FRAMEBUFFER_VESA_MODE_106
392 default 0x107 if FRAMEBUFFER_VESA_MODE_107
393 default 0x108 if FRAMEBUFFER_VESA_MODE_108
394 default 0x109 if FRAMEBUFFER_VESA_MODE_109
395 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
396 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
397 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
398 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
399 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
400 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
401 default 0x110 if FRAMEBUFFER_VESA_MODE_110
402 default 0x111 if FRAMEBUFFER_VESA_MODE_111
403 default 0x112 if FRAMEBUFFER_VESA_MODE_112
404 default 0x113 if FRAMEBUFFER_VESA_MODE_113
405 default 0x114 if FRAMEBUFFER_VESA_MODE_114
406 default 0x115 if FRAMEBUFFER_VESA_MODE_115
407 default 0x116 if FRAMEBUFFER_VESA_MODE_116
408 default 0x117 if FRAMEBUFFER_VESA_MODE_117
409 default 0x118 if FRAMEBUFFER_VESA_MODE_118
410 default 0x119 if FRAMEBUFFER_VESA_MODE_119
411 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
412 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
413 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
414
Hans de Goede66525bb2015-08-08 16:03:29 +0200415config VIDEO_LCD_ANX9804
416 bool "ANX9804 bridge chip"
Hans de Goede66525bb2015-08-08 16:03:29 +0200417 ---help---
418 Support for the ANX9804 bridge chip, which can take pixel data coming
419 from a parallel LCD interface and translate it on the fy into a DP
420 interface for driving eDP TFT displays. It uses I2C for configuration.
421
Tom Rini286c4532022-03-18 08:38:28 -0400422config ATMEL_LCD
423 bool "Atmel LCD panel support"
Simon Glassfeda1932022-10-18 07:35:17 -0600424 depends on ARCH_AT91
Tom Rini286c4532022-03-18 08:38:28 -0400425
426config ATMEL_LCD_BGR555
427 bool "Display in BGR555 mode"
428 help
429 Use the BGR555 output mode. Otherwise RGB565 is used.
430
Simon Glass2cbc1c02022-01-23 07:04:14 -0700431config VIDEO_BCM2835
432 bool "Display support for BCM2835"
433 help
434 The graphics processor already sets up the display so this driver
435 simply checks the resolution and then sets up the frame buffer with
436 that same resolution (or as near as possible) and 32bpp depth, so
437 that U-Boot can access it with full colour depth.
438
Yannick Fertré78157b22019-10-07 15:29:08 +0200439config VIDEO_LCD_ORISETECH_OTM8009A
440 bool "OTM8009A DSI LCD panel support"
Yannick Fertré78157b22019-10-07 15:29:08 +0200441 select VIDEO_MIPI_DSI
Yannick Fertré78157b22019-10-07 15:29:08 +0200442 help
443 Say Y here if you want to enable support for Orise Technology
444 otm8009a 480x800 dsi 2dl panel.
445
Yannick Fertré06ef1312019-10-07 15:29:09 +0200446config VIDEO_LCD_RAYDIUM_RM68200
447 bool "RM68200 DSI LCD panel support"
Yannick Fertré06ef1312019-10-07 15:29:09 +0200448 select VIDEO_MIPI_DSI
Yannick Fertré06ef1312019-10-07 15:29:09 +0200449 help
450 Say Y here if you want to enable support for Raydium RM68200
451 720x1280 DSI video mode panel.
452
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200453config VIDEO_LCD_SSD2828
454 bool "SSD2828 bridge chip"
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200455 ---help---
456 Support for the SSD2828 bridge chip, which can take pixel data coming
457 from a parallel LCD interface and translate it on the fly into MIPI DSI
458 interface for driving a MIPI compatible LCD panel. It uses SPI for
459 configuration.
460
461config VIDEO_LCD_SSD2828_TX_CLK
462 int "SSD2828 TX_CLK frequency (in MHz)"
463 depends on VIDEO_LCD_SSD2828
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200464 default 0
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200465 ---help---
466 The frequency of the crystal, which is clocking SSD2828. It may be
467 anything in the 8MHz-30MHz range and the exact value should be
468 retrieved from the board schematics. Or in the case of Allwinner
469 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200470 FEX files. It can be also set to 0 for selecting PCLK from the
471 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200472
473config VIDEO_LCD_SSD2828_RESET
474 string "RESET pin of SSD2828"
475 depends on VIDEO_LCD_SSD2828
476 default ""
477 ---help---
478 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500479 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200480
Neil Armstrongc823f242020-09-29 11:53:53 +0200481config VIDEO_LCD_TDO_TL070WSH30
482 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrongc823f242020-09-29 11:53:53 +0200483 select VIDEO_MIPI_DSI
Neil Armstrongc823f242020-09-29 11:53:53 +0200484 help
485 Say Y here if you want to enable support for TDO TL070WSH30
486 1024x600 DSI video mode panel.
487
Hans de Goedea5464f22015-01-20 09:22:26 +0100488config VIDEO_LCD_HITACHI_TX18D42VM
489 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedea5464f22015-01-20 09:22:26 +0100490 ---help---
491 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
492 lcd controller which needs to be initialized over SPI, once that is
493 done they work like a regular LVDS panel.
494
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200495config VIDEO_LCD_SPI_CS
496 string "SPI CS pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100497 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200498 default ""
499 ---help---
500 This is one of the SPI communication pins, involved in setting up a
501 working LCD configuration. The exact role of SPI may differ for
502 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500503 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200504
505config VIDEO_LCD_SPI_SCLK
506 string "SPI SCLK pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100507 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200508 default ""
509 ---help---
510 This is one of the SPI communication pins, involved in setting up a
511 working LCD configuration. The exact role of SPI may differ for
512 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500513 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200514
515config VIDEO_LCD_SPI_MOSI
516 string "SPI MOSI pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100517 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200518 default ""
519 ---help---
520 This is one of the SPI communication pins, involved in setting up a
521 working LCD configuration. The exact role of SPI may differ for
522 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500523 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200524
525config VIDEO_LCD_SPI_MISO
526 string "SPI MISO pin for LCD related config job (optional)"
527 depends on VIDEO_LCD_SSD2828
528 default ""
529 ---help---
530 This is one of the SPI communication pins, involved in setting up a
531 working LCD configuration. The exact role of SPI may differ for
532 different hardware setups. If wired up, this pin may provide additional
533 useful functionality. Such as bi-directional communication with the
534 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Holland4d9958b2021-09-11 16:50:48 -0500535 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200536 function, e.g. PH1 for pin 1 of port H.
Simon Glass51f2c992015-04-14 21:03:38 -0600537
Neil Armstrong3bed4222018-07-24 17:45:28 +0200538source "drivers/video/meson/Kconfig"
539
Stefan Roese913d1be2016-01-20 08:13:28 +0100540config VIDEO_MVEBU
541 bool "Armada XP LCD controller"
Stefan Roese913d1be2016-01-20 08:13:28 +0100542 ---help---
543 Support for the LCD controller integrated in the Marvell
544 Armada XP SoC.
545
Adam Ford244eaea2018-08-02 08:50:20 -0500546config VIDEO_OMAP3
547 bool "Enable OMAP3+ DSS Support"
548 depends on ARCH_OMAP2PLUS
549 help
550 This enables the Display subsystem (DSS) on OMAP3+ boards.
551
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100552config I2C_EDID
553 bool "Enable EDID library"
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100554 help
555 This enables library for accessing EDID data from an LCD panel.
556
Simon Glass2dcf1432016-01-21 19:45:00 -0700557config DISPLAY
558 bool "Enable Display support"
559 depends on DM
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100560 select I2C_EDID
Simon Glass51f2c992015-04-14 21:03:38 -0600561 help
Simon Glass2dcf1432016-01-21 19:45:00 -0700562 This supports drivers that provide a display, such as eDP (Embedded
563 DisplayPort) and HDMI (High Definition Multimedia Interface).
564 The devices provide a simple interface to start up the display,
565 read display information and enable it.
Simon Glasse7e88232015-04-14 21:03:42 -0600566
Liviu Dudau055da182018-09-28 13:49:31 +0100567config NXP_TDA19988
568 bool "Enable NXP TDA19988 support"
569 depends on DISPLAY
Liviu Dudau055da182018-09-28 13:49:31 +0100570 help
571 This enables support for the NXP TDA19988 HDMI encoder. This encoder
572 will convert RGB data streams into HDMI-encoded signals.
573
Songjun Wu79278312017-04-11 16:33:30 +0800574config ATMEL_HLCD
575 bool "Enable ATMEL video support using HLCDC"
Songjun Wu79278312017-04-11 16:33:30 +0800576 help
577 HLCDC supports video output to an attached LCD panel.
578
Dario Binacchif4cf8712023-01-28 16:55:31 +0100579source "drivers/video/ti/Kconfig"
580
Tom Rini4d2cab32022-06-10 22:59:34 -0400581source "drivers/video/exynos/Kconfig"
582
Mario Six25a9f972018-08-09 14:51:23 +0200583config LOGICORE_DP_TX
584 bool "Enable Logicore DP TX driver"
585 depends on DISPLAY
586 help
587 Enable the driver for the transmitter part of the Xilinx LogiCORE
588 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
589 video interface as defined by VESA DisplayPort v1.2.
590
591 Note that this is a pure transmitter device, and has no display
592 capabilities by itself.
593
Simon Glass97cb0922016-03-11 22:07:30 -0700594config VIDEO_BROADWELL_IGD
595 bool "Enable Intel Broadwell integrated graphics device"
596 depends on X86
597 help
Simon Glass1df91272016-10-05 20:42:14 -0600598 This enables support for integrated graphics on Intel broadwell
Simon Glass97cb0922016-03-11 22:07:30 -0700599 devices. Initialisation is mostly performed by a VGA boot ROM, with
600 some setup handled by U-Boot itself. The graphics adaptor works as
601 a VESA device and supports LCD panels, eDP and LVDS outputs.
602 Configuration of most aspects of device operation is performed using
603 a special tool which configures the VGA ROM, but the graphics
604 resolution can be selected in U-Boot.
605
Simon Glass2c943802016-10-05 20:42:15 -0600606config VIDEO_IVYBRIDGE_IGD
607 bool "Enable Intel Ivybridge integration graphics support"
608 depends on X86
609 help
610 This enables support for integrated graphics on Intel ivybridge
611 devices. Initialisation is mostly performed by a VGA boot ROM, with
612 some setup handled by U-Boot itself. The graphics adaptor works as
613 a VESA device and supports LCD panels, eDP and LVDS outputs.
614 Configuration of most aspects of device operation is performed using
615 a special tool which configures the VGA ROM, but the graphics
616 resolution can be selected in U-Boot.
617
eric.gao@rock-chips.comb98f0a32017-04-17 22:24:23 +0800618source "drivers/video/rockchip/Kconfig"
Simon Glassc2539482016-01-21 19:45:03 -0700619
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100620config VIDEO_ARM_MALIDP
621 bool "Enable Arm Mali Display Processor support"
Simon Glassfeda1932022-10-18 07:35:17 -0600622 depends on OF_CONTROL
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100623 select VEXPRESS_CLK
624 help
625 This enables support for Arm Ltd Mali Display Processors from
626 the DP500, DP550 and DP650 family.
627
Simon Glass1e69ad02016-01-18 19:52:24 -0700628config VIDEO_SANDBOX_SDL
629 bool "Enable sandbox video console using SDL"
Tom Rinid948c892022-11-19 18:45:43 -0500630 depends on SANDBOX_SDL
Simon Glass1e69ad02016-01-18 19:52:24 -0700631 help
632 When using sandbox you can enable an emulated LCD display which
633 appears as an SDL (Simple DirectMedia Layer) window. This is a
634 console device and can display stdout output. Within U-Boot is is
635 a normal bitmap display and can display images as well as text.
636
Philippe CORNU72719d22017-08-03 12:36:08 +0200637source "drivers/video/stm32/Kconfig"
638
Simon Glassd2f90652016-01-30 16:37:51 -0700639config VIDEO_TEGRA20
640 bool "Enable LCD support on Tegra20"
Simon Glass40d56a92016-01-30 16:37:54 -0700641 depends on OF_CONTROL
Simon Glassd2f90652016-01-30 16:37:51 -0700642 help
643 Tegra20 supports video output to an attached LCD panel as well as
644 other options such as HDMI. Only the LCD is supported in U-Boot.
645 This option enables this support which can be used on devices which
646 have an LCD display connected.
647
Simon Glasse7e88232015-04-14 21:03:42 -0600648config VIDEO_TEGRA124
649 bool "Enable video support on Tegra124"
650 help
651 Tegra124 supports many video output options including eDP and
652 HDMI. At present only eDP is supported by U-Boot. This option
653 enables this support which can be used on devices which
654 have an eDP display connected.
Simon Glass801ab9e2015-07-02 18:16:08 -0600655
656source "drivers/video/bridge/Kconfig"
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900657
Anatolij Gustschinbffd1312019-03-18 23:29:32 +0100658source "drivers/video/imx/Kconfig"
Anatolij Gustschin57f065f2019-03-18 23:29:31 +0100659
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200660config VIDEO_MXS
661 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200662 help
663 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
664
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200665config VIDEO_NX
666 bool "Enable video support on Nexell SoC"
667 depends on ARCH_S5P6818 || ARCH_S5P4418
668 help
669 Nexell SoC supports many video output options including eDP and
670 HDMI. This option enables this support which can be used on devices
671 which have an eDP display connected.
672
Michal Simekb66d7af2020-12-03 09:31:35 +0100673config VIDEO_SEPS525
674 bool "Enable video support for Seps525"
Simon Glassfeda1932022-10-18 07:35:17 -0600675 depends on DM_GPIO
Michal Simekb66d7af2020-12-03 09:31:35 +0100676 help
677 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
678 Currently driver is supporting only SPI interface.
679
Michal Simek98cacab2022-02-23 15:52:02 +0100680config VIDEO_ZYNQMP_DPSUB
681 bool "Enable video support for ZynqMP Display Port"
Simon Glassfeda1932022-10-18 07:35:17 -0600682 depends on ZYNQMP_POWER_DOMAIN
Michal Simek98cacab2022-02-23 15:52:02 +0100683 help
684 Enable support for Xilinx ZynqMP Display Port. Currently this file
685 is used as placeholder for driver. The main reason is to record
686 compatible string and calling power domain driver.
687
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200688source "drivers/video/nexell/Kconfig"
689
Simon Glassb87ca802016-10-17 20:12:57 -0600690config CONSOLE_SCROLL_LINES
691 int "Number of lines to scroll the console by"
Simon Glassb87ca802016-10-17 20:12:57 -0600692 default 1
693 help
694 When the console need to be scrolled, this is the number of
695 lines to scroll by. It defaults to 1. Increasing this makes the
696 console jump but can help speed up operation when scrolling
697 is slow.
698
Philipp Tomsich8517f642017-05-05 21:48:26 +0200699config VIDEO_DW_HDMI
700 bool
701 help
702 Enables the common driver code for the Designware HDMI TX
703 block found in SoCs from various vendors.
704 As this does not provide any functionality by itself (but
705 rather requires a SoC-specific glue driver to call it), it
706 can not be enabled from the configuration menu.
707
Yannick Fertré23f965a2019-10-07 15:29:05 +0200708config VIDEO_DSI_HOST_SANDBOX
709 bool "Enable sandbox for dsi host"
710 depends on SANDBOX
711 select VIDEO_MIPI_DSI
712 help
713 Enable support for sandbox dsi host device used for testing
714 purposes.
715 Display Serial Interface (DSI) defines a serial bus and
716 a communication protocol between the host and the device
717 (panel, bridge).
718
Yannick Fertréd4f7ea82019-10-07 15:29:06 +0200719config VIDEO_DW_MIPI_DSI
720 bool
721 select VIDEO_MIPI_DSI
722 help
723 Enables the common driver code for the Synopsis Designware
724 MIPI DSI block found in SoCs from various vendors.
725 As this does not provide any functionality by itself (but
726 rather requires a SoC-specific glue driver to call it), it
727 can not be enabled from the configuration menu.
728
Rob Clark971d7e62017-08-03 12:47:00 -0400729config VIDEO_SIMPLE
730 bool "Simple display driver for preconfigured display"
731 help
732 Enables a simple generic display driver which utilizes the
733 simple-framebuffer devicetree bindings.
734
735 This driver assumes that the display hardware has been initialized
736 before u-boot starts, and u-boot will simply render to the pre-
737 allocated frame buffer surface.
738
Icenowy Zhengf6bdddc2017-10-26 11:14:46 +0800739config VIDEO_DT_SIMPLEFB
740 bool "Enable SimpleFB support for passing framebuffer to OS"
741 help
742 Enables the code to pass the framebuffer to the kernel as a
743 simple framebuffer in the device tree.
744 The video output is initialized by U-Boot, and kept by the
745 kernel.
746
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200747config VIDEO_MCDE_SIMPLE
748 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200749 help
750 Enables a simple display driver for ST-Ericsson MCDE
751 (Multichannel Display Engine), which reads the configuration from
752 the MCDE registers.
753
754 This driver assumes that the display hardware has been initialized
755 before u-boot starts, and u-boot will simply render to the pre-
756 allocated frame buffer surface.
757
Mario Six39a336f2018-09-27 09:19:29 +0200758config OSD
759 bool "Enable OSD support"
760 depends on DM
Mario Six39a336f2018-09-27 09:19:29 +0200761 help
762 This supports drivers that provide a OSD (on-screen display), which
763 is a (usually text-oriented) graphics buffer to show information on
764 a display.
Mario Six9671f692018-09-27 09:19:30 +0200765
Mario Six4eea5312018-09-27 09:19:31 +0200766config SANDBOX_OSD
767 bool "Enable sandbox OSD"
768 depends on OSD
769 help
770 Enable support for sandbox OSD device used for testing purposes.
771
Mario Six9671f692018-09-27 09:19:30 +0200772config IHS_VIDEO_OUT
773 bool "Enable IHS video out driver"
774 depends on OSD
775 help
776 Enable support for the gdsys Integrated Hardware Systems (IHS) video
777 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
778 textual overlays of the display outputs.
779
Simon Glass35bd70c2020-08-11 11:23:35 -0600780config SPLASH_SCREEN
781 bool "Show a splash-screen image"
782 help
783 If this option is set, the environment is checked for a variable
784 "splashimage". If found, the usual display of logo, copyright and
785 system information on the LCD is suppressed and the BMP image at the
786 address specified in "splashimage" is loaded instead. The console is
787 redirected to the "nulldev", too. This allows for a "silent" boot
788 where a splash screen is loaded very quickly after power-on.
789
790 The splash_screen_prepare() function is a weak function defined in
791 common/splash.c. It is called as part of the splash screen display
792 sequence. It gives the board an opportunity to prepare the splash
793 image data before it is processed and sent to the frame buffer by
794 U-Boot. Define your own version to use this feature.
795
Simon Glass988d19d2022-10-18 06:24:16 -0600796if SPLASH_SCREEN
797
Simon Glass35bd70c2020-08-11 11:23:35 -0600798config SPLASH_SCREEN_ALIGN
799 bool "Allow positioning the splash image anywhere on the display"
Simon Glass35bd70c2020-08-11 11:23:35 -0600800 help
801 If this option is set the splash image can be freely positioned
802 on the screen. Environment variable "splashpos" specifies the
803 position as "x,y". If a positive number is given it is used as
804 number of pixel from left/top. If a negative number is given it
805 is used as number of pixel from right/bottom. You can also
806 specify 'm' for centering the image.
807
808 Example:
809 setenv splashpos m,m
810 => image at center of screen
811
812 setenv splashpos 30,20
813 => image at x = 30 and y = 20
814
815 setenv splashpos -10,m
816 => vertically centered image
817 at x = dspWidth - bmpWidth - 9
818
Simon Glass4adc28e2022-10-18 06:30:56 -0600819config HIDE_LOGO_VERSION
820 bool "Hide the version information on the splash screen"
821 help
822 Normally the U-Boot version string is shown on the display when the
823 splash screen is enabled. This information is not otherwise visible
824 since video starts up after U-Boot has displayed the initial banner.
825
826 Enable this option to hide this information.
827
Simon Glass35bd70c2020-08-11 11:23:35 -0600828config SPLASH_SOURCE
829 bool "Control the source of the splash image"
Simon Glass35bd70c2020-08-11 11:23:35 -0600830 help
831 Use the splash_source.c library. This library provides facilities to
832 declare board specific splash image locations, routines for loading
833 splash image from supported locations, and a way of controlling the
834 selected splash location using the "splashsource" environment
835 variable.
836
837 This CONFIG works as follows:
838
839 - If splashsource is set to a supported location name as defined by
840 board code, use that splash location.
841 - If splashsource is undefined, use the first splash location as
842 default.
843 - If splashsource is set to an unsupported value, do not load a splash
844 screen.
845
846 A splash source location can describe either storage with raw data, a
847 storage formatted with a file system or a FIT image. In case of a
848 filesystem, the splash screen data is loaded as a file. The name of
849 the splash screen file can be controlled with the environment variable
850 "splashfile".
851
852 To enable loading the splash image from a FIT image, CONFIG_FIT must
853 be enabled. The FIT image has to start at the 'offset' field address
854 in the selected splash location. The name of splash image within the
855 FIT shall be specified by the environment variable "splashfile".
856
857 In case the environment variable "splashfile" is not defined the
858 default name 'splash.bmp' will be used.
859
Simon Glass988d19d2022-10-18 06:24:16 -0600860endif # SPLASH_SCREEN
861
Patrick Delaunay0ed6c0f2020-09-28 11:30:14 +0200862config VIDEO_BMP_GZIP
863 bool "Gzip compressed BMP image support"
864 depends on CMD_BMP || SPLASH_SCREEN
865 help
866 If this option is set, additionally to standard BMP
867 images, gzipped BMP images can be displayed via the
868 splashscreen support or the bmp command.
869
Simon Glasse6550032022-10-18 06:46:08 -0600870config VIDEO_LOGO_MAX_SIZE
Simon Glass2fd5a572022-10-18 06:49:18 -0600871 hex "Maximum size of the bitmap logo in bytes"
872 default 0x100000
873 help
874 Sets the maximum uncompressed size of the logo. This is needed when
875 decompressing a BMP file using the gzip algorithm, since it cannot
876 read the size from the bitmap header.
Simon Glasse6550032022-10-18 06:46:08 -0600877
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200878config VIDEO_BMP_RLE8
879 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200880 help
881 If this option is set, the 8-bit RLE compressed BMP images
882 is supported.
883
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200884config BMP_16BPP
885 bool "16-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200886 help
887 Support display of bitmaps file with 16-bit-per-pixel
888
889config BMP_24BPP
890 bool "24-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200891 help
892 Support display of bitmaps file with 24-bit-per-pixel.
893
894config BMP_32BPP
895 bool "32-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200896 help
897 Support display of bitmaps file with 32-bit-per-pixel.
898
Simon Glassb86986c2022-10-18 07:46:31 -0600899endif # VIDEO
Simon Glassfeda1932022-10-18 07:35:17 -0600900
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900901endmenu