blob: ce97eb47270779b0f4decd0fa84497fc35dfa8c4 [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"
Simon Glassa29b0122016-01-14 18:10:42 -0700168 help
169 TrueTrype fonts can provide outline-drawing capability rather than
170 needing to provide a bitmap for each font and size that is needed.
171 With this option you can adjust the text size and use a variety of
172 fonts. Note that this is noticeably slower than with normal console.
173
174config CONSOLE_TRUETYPE_SIZE
175 int "TrueType font size"
176 depends on CONSOLE_TRUETYPE
177 default 18
178 help
179 This sets the font size for the console. The size is measured in
180 pixels and is the nominal height of a character. Note that fonts
181 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
182 However that measurement depends on the size of your display and
183 there is no standard display density. At present there is not a
184 method to select the display's physical size, which would allow
185 U-Boot to calculate the correct font size.
186
Simon Glass31efa252022-10-06 08:36:11 -0600187config CONSOLE_TRUETYPE_MAX_METRICS
188 int "TrueType maximum number of font / size combinations"
189 depends on CONSOLE_TRUETYPE
190 default 10 if EXPO
191 default 1
192 help
193 This sets the number of font / size combinations which can be used by
194 the console. For simple console use a single font is enough. When
195 boot menus are in use, this may need to be increased.
196
197 Note that a separate entry is needed for each font size, even if the
198 font itself is the same. This is because the entry caches various
199 font metrics which are expensive to regenerate each time the font
200 size changes.
201
Simon Glass983b1032017-04-26 22:27:57 -0600202config SYS_WHITE_ON_BLACK
203 bool "Display console as white on a black background"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400204 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
Simon Glass983b1032017-04-26 22:27:57 -0600205 help
206 Normally the display is black on a white background, Enable this
207 option to invert this, i.e. white on a black background. This can be
208 better in low-light situations or to reduce eye strain in some
209 cases.
210
Rob Clark8ef05352017-08-03 12:47:01 -0400211config NO_FB_CLEAR
212 bool "Skip framebuffer clear"
213 help
214 If firmware (whatever loads u-boot) has already put a splash image
215 on screen, you might want to preserve it until whatever u-boot
216 loads takes over the screen. This, for example, can be used to
217 keep splash image on screen until grub graphical boot menu starts.
218
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200219config PANEL
220 bool "Enable panel uclass support"
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200221 default y
222 help
223 This provides panel uclass driver that enables basic panel support.
224
225config SIMPLE_PANEL
226 bool "Enable simple panel support"
Asherah Connor1bed5762021-03-03 14:46:47 +1100227 depends on PANEL && BACKLIGHT && DM_GPIO
Anatolij Gustschine26e5202020-05-26 00:20:49 +0200228 default y
229 help
230 This turns on a simple panel driver that enables a compatible
231 video panel.
232
Simon Glass820b5892022-10-06 08:36:07 -0600233config PANEL_HX8238D
234 bool "Enable Himax HX-8238D LCD driver"
235 depends on PANEL
236 help
237 Support for HX-8238D LCD Panel
238 The HX8238-D is a single chip controller and driver LSI that
239 integrates the power circuit.
240 It can drive a maximum 960x240 dot graphics on a-TFT panel
241 displays in 16M colors with dithering.
242
Simon Glassa29b0122016-01-14 18:10:42 -0700243source "drivers/video/fonts/Kconfig"
244
Simon Glassa2931b32016-02-06 14:31:37 -0700245config VIDCONSOLE_AS_LCD
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200246 bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
Patrick Delaunay27b5b9e2020-07-01 14:56:10 +0200247 help
248 This is a work-around for boards which have 'lcd' or 'vga' in their
249 stdout environment variable, but have moved to use driver model for
250 video. In this case the console will no-longer work. While it is
251 possible to update the environment, the breakage may be confusing for
252 users. This option will be removed around the end of 2020.
253
254config VIDCONSOLE_AS_NAME
255 string "Use 'vidconsole' when string defined here is seen in stdout"
256 depends on VIDCONSOLE_AS_LCD
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200257 default "lcd" if LCD || TEGRA_COMMON
258 default "vga" if !LCD
Simon Glassa2931b32016-02-06 14:31:37 -0700259 help
Anatolij Gustschin22b897a2020-05-23 17:11:20 +0200260 This is a work-around for boards which have 'lcd' or 'vga' in their
261 stdout environment variable, but have moved to use driver model for
262 video. In this case the console will no-longer work. While it is
263 possible to update the environment, the breakage may be confusing for
264 users. This option will be removed around the end of 2020.
Simon Glassa2931b32016-02-06 14:31:37 -0700265
Bin Meng13b2bfc2016-10-09 04:14:16 -0700266config VIDEO_COREBOOT
267 bool "Enable coreboot framebuffer driver support"
Simon Glass19987c92021-03-15 18:00:27 +1300268 depends on X86
Bin Meng13b2bfc2016-10-09 04:14:16 -0700269 help
270 Turn on this option to enable a framebuffer driver when U-Boot is
271 loaded by coreboot where the graphics device is configured by
272 coreboot already. This can in principle be used with any platform
273 that coreboot supports.
274
Bin Meng4a08c742018-06-12 08:36:22 -0700275config VIDEO_EFI
276 bool "Enable EFI framebuffer driver support"
Simon Glass1834c082021-11-03 21:09:10 -0600277 depends on EFI_STUB || EFI_APP
Bin Meng4a08c742018-06-12 08:36:22 -0700278 help
279 Turn on this option to enable a framebuffeer driver when U-Boot is
280 loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
281 the graphics device is configured by the EFI BIOS already. This can
282 in principle be used with any platform that has an EFI BIOS.
283
Simon Glass6b1ba982014-12-29 19:32:28 -0700284config VIDEO_VESA
285 bool "Enable VESA video driver support"
Simon Glass6b1ba982014-12-29 19:32:28 -0700286 help
287 Turn on this option to enable a very simple driver which uses vesa
288 to discover the video mode and then provides a frame buffer for use
289 by U-Boot. This can in principle be used with any platform that
290 supports PCI and video cards that support VESA BIOS Extension (VBE).
291
Bin Meng6bde2dc2015-05-11 07:36:29 +0800292config FRAMEBUFFER_SET_VESA_MODE
293 bool "Set framebuffer graphics resolution"
Simon Glass97cb0922016-03-11 22:07:30 -0700294 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng6bde2dc2015-05-11 07:36:29 +0800295 help
296 Set VESA/native framebuffer mode (needed for bootsplash and graphical
297 framebuffer console)
298
299choice
300 prompt "framebuffer graphics resolution"
Bin Meng17b07d72018-04-11 22:02:16 -0700301 default FRAMEBUFFER_VESA_MODE_118
Bin Meng6bde2dc2015-05-11 07:36:29 +0800302 depends on FRAMEBUFFER_SET_VESA_MODE
303 help
304 This option sets the resolution used for the U-Boot framebuffer (and
305 bootsplash screen).
306
307config FRAMEBUFFER_VESA_MODE_100
308 bool "640x400 256-color"
309
310config FRAMEBUFFER_VESA_MODE_101
311 bool "640x480 256-color"
312
313config FRAMEBUFFER_VESA_MODE_102
314 bool "800x600 16-color"
315
316config FRAMEBUFFER_VESA_MODE_103
317 bool "800x600 256-color"
318
319config FRAMEBUFFER_VESA_MODE_104
320 bool "1024x768 16-color"
321
322config FRAMEBUFFER_VESA_MODE_105
Bin Meng57dccb52015-08-09 23:26:59 -0700323 bool "1024x768 256-color"
Bin Meng6bde2dc2015-05-11 07:36:29 +0800324
325config FRAMEBUFFER_VESA_MODE_106
326 bool "1280x1024 16-color"
327
328config FRAMEBUFFER_VESA_MODE_107
329 bool "1280x1024 256-color"
330
331config FRAMEBUFFER_VESA_MODE_108
332 bool "80x60 text"
333
334config FRAMEBUFFER_VESA_MODE_109
335 bool "132x25 text"
336
337config FRAMEBUFFER_VESA_MODE_10A
338 bool "132x43 text"
339
340config FRAMEBUFFER_VESA_MODE_10B
341 bool "132x50 text"
342
343config FRAMEBUFFER_VESA_MODE_10C
344 bool "132x60 text"
345
346config FRAMEBUFFER_VESA_MODE_10D
347 bool "320x200 32k-color (1:5:5:5)"
348
349config FRAMEBUFFER_VESA_MODE_10E
350 bool "320x200 64k-color (5:6:5)"
351
352config FRAMEBUFFER_VESA_MODE_10F
353 bool "320x200 16.8M-color (8:8:8)"
354
355config FRAMEBUFFER_VESA_MODE_110
356 bool "640x480 32k-color (1:5:5:5)"
357
358config FRAMEBUFFER_VESA_MODE_111
359 bool "640x480 64k-color (5:6:5)"
360
361config FRAMEBUFFER_VESA_MODE_112
362 bool "640x480 16.8M-color (8:8:8)"
363
364config FRAMEBUFFER_VESA_MODE_113
365 bool "800x600 32k-color (1:5:5:5)"
366
367config FRAMEBUFFER_VESA_MODE_114
368 bool "800x600 64k-color (5:6:5)"
369
370config FRAMEBUFFER_VESA_MODE_115
371 bool "800x600 16.8M-color (8:8:8)"
372
373config FRAMEBUFFER_VESA_MODE_116
374 bool "1024x768 32k-color (1:5:5:5)"
375
376config FRAMEBUFFER_VESA_MODE_117
377 bool "1024x768 64k-color (5:6:5)"
378
379config FRAMEBUFFER_VESA_MODE_118
380 bool "1024x768 16.8M-color (8:8:8)"
381
382config FRAMEBUFFER_VESA_MODE_119
383 bool "1280x1024 32k-color (1:5:5:5)"
384
385config FRAMEBUFFER_VESA_MODE_11A
386 bool "1280x1024 64k-color (5:6:5)"
387
388config FRAMEBUFFER_VESA_MODE_11B
389 bool "1280x1024 16.8M-color (8:8:8)"
390
391config FRAMEBUFFER_VESA_MODE_USER
392 bool "Manually select VESA mode"
393
394endchoice
395
396# Map the config names to an integer (KB).
397config FRAMEBUFFER_VESA_MODE
398 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
399 hex
400 default 0x100 if FRAMEBUFFER_VESA_MODE_100
401 default 0x101 if FRAMEBUFFER_VESA_MODE_101
402 default 0x102 if FRAMEBUFFER_VESA_MODE_102
403 default 0x103 if FRAMEBUFFER_VESA_MODE_103
404 default 0x104 if FRAMEBUFFER_VESA_MODE_104
405 default 0x105 if FRAMEBUFFER_VESA_MODE_105
406 default 0x106 if FRAMEBUFFER_VESA_MODE_106
407 default 0x107 if FRAMEBUFFER_VESA_MODE_107
408 default 0x108 if FRAMEBUFFER_VESA_MODE_108
409 default 0x109 if FRAMEBUFFER_VESA_MODE_109
410 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
411 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
412 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
413 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
414 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
415 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
416 default 0x110 if FRAMEBUFFER_VESA_MODE_110
417 default 0x111 if FRAMEBUFFER_VESA_MODE_111
418 default 0x112 if FRAMEBUFFER_VESA_MODE_112
419 default 0x113 if FRAMEBUFFER_VESA_MODE_113
420 default 0x114 if FRAMEBUFFER_VESA_MODE_114
421 default 0x115 if FRAMEBUFFER_VESA_MODE_115
422 default 0x116 if FRAMEBUFFER_VESA_MODE_116
423 default 0x117 if FRAMEBUFFER_VESA_MODE_117
424 default 0x118 if FRAMEBUFFER_VESA_MODE_118
425 default 0x119 if FRAMEBUFFER_VESA_MODE_119
426 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
427 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
428 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
429
Hans de Goede66525bb2015-08-08 16:03:29 +0200430config VIDEO_LCD_ANX9804
431 bool "ANX9804 bridge chip"
Hans de Goede66525bb2015-08-08 16:03:29 +0200432 ---help---
433 Support for the ANX9804 bridge chip, which can take pixel data coming
434 from a parallel LCD interface and translate it on the fy into a DP
435 interface for driving eDP TFT displays. It uses I2C for configuration.
436
Tom Rini286c4532022-03-18 08:38:28 -0400437config ATMEL_LCD
438 bool "Atmel LCD panel support"
Simon Glassfeda1932022-10-18 07:35:17 -0600439 depends on ARCH_AT91
Tom Rini286c4532022-03-18 08:38:28 -0400440
441config ATMEL_LCD_BGR555
442 bool "Display in BGR555 mode"
443 help
444 Use the BGR555 output mode. Otherwise RGB565 is used.
445
Simon Glass2cbc1c02022-01-23 07:04:14 -0700446config VIDEO_BCM2835
447 bool "Display support for BCM2835"
448 help
449 The graphics processor already sets up the display so this driver
450 simply checks the resolution and then sets up the frame buffer with
451 that same resolution (or as near as possible) and 32bpp depth, so
452 that U-Boot can access it with full colour depth.
453
Yannick Fertré78157b22019-10-07 15:29:08 +0200454config VIDEO_LCD_ORISETECH_OTM8009A
455 bool "OTM8009A DSI LCD panel support"
Yannick Fertré78157b22019-10-07 15:29:08 +0200456 select VIDEO_MIPI_DSI
Yannick Fertré78157b22019-10-07 15:29:08 +0200457 help
458 Say Y here if you want to enable support for Orise Technology
459 otm8009a 480x800 dsi 2dl panel.
460
Yannick Fertré06ef1312019-10-07 15:29:09 +0200461config VIDEO_LCD_RAYDIUM_RM68200
462 bool "RM68200 DSI LCD panel support"
Yannick Fertré06ef1312019-10-07 15:29:09 +0200463 select VIDEO_MIPI_DSI
Yannick Fertré06ef1312019-10-07 15:29:09 +0200464 help
465 Say Y here if you want to enable support for Raydium RM68200
466 720x1280 DSI video mode panel.
467
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200468config VIDEO_LCD_SSD2828
469 bool "SSD2828 bridge chip"
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200470 ---help---
471 Support for the SSD2828 bridge chip, which can take pixel data coming
472 from a parallel LCD interface and translate it on the fly into MIPI DSI
473 interface for driving a MIPI compatible LCD panel. It uses SPI for
474 configuration.
475
476config VIDEO_LCD_SSD2828_TX_CLK
477 int "SSD2828 TX_CLK frequency (in MHz)"
478 depends on VIDEO_LCD_SSD2828
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200479 default 0
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200480 ---help---
481 The frequency of the crystal, which is clocking SSD2828. It may be
482 anything in the 8MHz-30MHz range and the exact value should be
483 retrieved from the board schematics. Or in the case of Allwinner
484 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200485 FEX files. It can be also set to 0 for selecting PCLK from the
486 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200487
488config VIDEO_LCD_SSD2828_RESET
489 string "RESET pin of SSD2828"
490 depends on VIDEO_LCD_SSD2828
491 default ""
492 ---help---
493 The reset pin of SSD2828 chip. This takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500494 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200495
Neil Armstrongc823f242020-09-29 11:53:53 +0200496config VIDEO_LCD_TDO_TL070WSH30
497 bool "TDO TL070WSH30 DSI LCD panel support"
Neil Armstrongc823f242020-09-29 11:53:53 +0200498 select VIDEO_MIPI_DSI
Neil Armstrongc823f242020-09-29 11:53:53 +0200499 help
500 Say Y here if you want to enable support for TDO TL070WSH30
501 1024x600 DSI video mode panel.
502
Hans de Goedea5464f22015-01-20 09:22:26 +0100503config VIDEO_LCD_HITACHI_TX18D42VM
504 bool "Hitachi tx18d42vm LVDS LCD panel support"
Hans de Goedea5464f22015-01-20 09:22:26 +0100505 ---help---
506 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
507 lcd controller which needs to be initialized over SPI, once that is
508 done they work like a regular LVDS panel.
509
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200510config VIDEO_LCD_SPI_CS
511 string "SPI CS pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100512 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200513 default ""
514 ---help---
515 This is one of the SPI communication pins, involved in setting up a
516 working LCD configuration. The exact role of SPI may differ for
517 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500518 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200519
520config VIDEO_LCD_SPI_SCLK
521 string "SPI SCLK pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100522 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200523 default ""
524 ---help---
525 This is one of the SPI communication pins, involved in setting up a
526 working LCD configuration. The exact role of SPI may differ for
527 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500528 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200529
530config VIDEO_LCD_SPI_MOSI
531 string "SPI MOSI pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100532 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200533 default ""
534 ---help---
535 This is one of the SPI communication pins, involved in setting up a
536 working LCD configuration. The exact role of SPI may differ for
537 different hardware setups. The option takes a string in the format
Samuel Holland4d9958b2021-09-11 16:50:48 -0500538 understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200539
540config VIDEO_LCD_SPI_MISO
541 string "SPI MISO pin for LCD related config job (optional)"
542 depends on VIDEO_LCD_SSD2828
543 default ""
544 ---help---
545 This is one of the SPI communication pins, involved in setting up a
546 working LCD configuration. The exact role of SPI may differ for
547 different hardware setups. If wired up, this pin may provide additional
548 useful functionality. Such as bi-directional communication with the
549 hardware and LCD panel id retrieval (if the panel can report it). The
Samuel Holland4d9958b2021-09-11 16:50:48 -0500550 option takes a string in the format understood by 'sunxi_name_to_gpio'
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200551 function, e.g. PH1 for pin 1 of port H.
Simon Glass51f2c992015-04-14 21:03:38 -0600552
Neil Armstrong3bed4222018-07-24 17:45:28 +0200553source "drivers/video/meson/Kconfig"
554
Stefan Roese913d1be2016-01-20 08:13:28 +0100555config VIDEO_MVEBU
556 bool "Armada XP LCD controller"
Stefan Roese913d1be2016-01-20 08:13:28 +0100557 ---help---
558 Support for the LCD controller integrated in the Marvell
559 Armada XP SoC.
560
Adam Ford244eaea2018-08-02 08:50:20 -0500561config VIDEO_OMAP3
562 bool "Enable OMAP3+ DSS Support"
563 depends on ARCH_OMAP2PLUS
564 help
565 This enables the Display subsystem (DSS) on OMAP3+ boards.
566
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100567config I2C_EDID
568 bool "Enable EDID library"
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100569 help
570 This enables library for accessing EDID data from an LCD panel.
571
Simon Glass2dcf1432016-01-21 19:45:00 -0700572config DISPLAY
573 bool "Enable Display support"
574 depends on DM
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100575 select I2C_EDID
Simon Glass51f2c992015-04-14 21:03:38 -0600576 help
Simon Glass2dcf1432016-01-21 19:45:00 -0700577 This supports drivers that provide a display, such as eDP (Embedded
578 DisplayPort) and HDMI (High Definition Multimedia Interface).
579 The devices provide a simple interface to start up the display,
580 read display information and enable it.
Simon Glasse7e88232015-04-14 21:03:42 -0600581
Liviu Dudau055da182018-09-28 13:49:31 +0100582config NXP_TDA19988
583 bool "Enable NXP TDA19988 support"
584 depends on DISPLAY
Liviu Dudau055da182018-09-28 13:49:31 +0100585 help
586 This enables support for the NXP TDA19988 HDMI encoder. This encoder
587 will convert RGB data streams into HDMI-encoded signals.
588
Songjun Wu79278312017-04-11 16:33:30 +0800589config ATMEL_HLCD
590 bool "Enable ATMEL video support using HLCDC"
Songjun Wu79278312017-04-11 16:33:30 +0800591 help
592 HLCDC supports video output to an attached LCD panel.
593
Dario Binacchif4cf8712023-01-28 16:55:31 +0100594source "drivers/video/ti/Kconfig"
595
Tom Rini4d2cab32022-06-10 22:59:34 -0400596source "drivers/video/exynos/Kconfig"
597
Mario Six25a9f972018-08-09 14:51:23 +0200598config LOGICORE_DP_TX
599 bool "Enable Logicore DP TX driver"
600 depends on DISPLAY
601 help
602 Enable the driver for the transmitter part of the Xilinx LogiCORE
603 DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
604 video interface as defined by VESA DisplayPort v1.2.
605
606 Note that this is a pure transmitter device, and has no display
607 capabilities by itself.
608
Simon Glass97cb0922016-03-11 22:07:30 -0700609config VIDEO_BROADWELL_IGD
610 bool "Enable Intel Broadwell integrated graphics device"
611 depends on X86
612 help
Simon Glass1df91272016-10-05 20:42:14 -0600613 This enables support for integrated graphics on Intel broadwell
Simon Glass97cb0922016-03-11 22:07:30 -0700614 devices. Initialisation is mostly performed by a VGA boot ROM, with
615 some setup handled by U-Boot itself. The graphics adaptor works as
616 a VESA device and supports LCD panels, eDP and LVDS outputs.
617 Configuration of most aspects of device operation is performed using
618 a special tool which configures the VGA ROM, but the graphics
619 resolution can be selected in U-Boot.
620
Simon Glass2c943802016-10-05 20:42:15 -0600621config VIDEO_IVYBRIDGE_IGD
622 bool "Enable Intel Ivybridge integration graphics support"
623 depends on X86
624 help
625 This enables support for integrated graphics on Intel ivybridge
626 devices. Initialisation is mostly performed by a VGA boot ROM, with
627 some setup handled by U-Boot itself. The graphics adaptor works as
628 a VESA device and supports LCD panels, eDP and LVDS outputs.
629 Configuration of most aspects of device operation is performed using
630 a special tool which configures the VGA ROM, but the graphics
631 resolution can be selected in U-Boot.
632
eric.gao@rock-chips.comb98f0a32017-04-17 22:24:23 +0800633source "drivers/video/rockchip/Kconfig"
Simon Glassc2539482016-01-21 19:45:03 -0700634
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100635config VIDEO_ARM_MALIDP
636 bool "Enable Arm Mali Display Processor support"
Simon Glassfeda1932022-10-18 07:35:17 -0600637 depends on OF_CONTROL
Liviu Dudauc1a65a82018-09-28 13:50:53 +0100638 select VEXPRESS_CLK
639 help
640 This enables support for Arm Ltd Mali Display Processors from
641 the DP500, DP550 and DP650 family.
642
Simon Glass1e69ad02016-01-18 19:52:24 -0700643config VIDEO_SANDBOX_SDL
644 bool "Enable sandbox video console using SDL"
Tom Rinid948c892022-11-19 18:45:43 -0500645 depends on SANDBOX_SDL
Simon Glass1e69ad02016-01-18 19:52:24 -0700646 help
647 When using sandbox you can enable an emulated LCD display which
648 appears as an SDL (Simple DirectMedia Layer) window. This is a
649 console device and can display stdout output. Within U-Boot is is
650 a normal bitmap display and can display images as well as text.
651
Philippe CORNU72719d22017-08-03 12:36:08 +0200652source "drivers/video/stm32/Kconfig"
653
Nikhil M Jain5f9f8162023-01-31 15:35:17 +0530654source "drivers/video/tidss/Kconfig"
655
Simon Glassd2f90652016-01-30 16:37:51 -0700656config VIDEO_TEGRA20
657 bool "Enable LCD support on Tegra20"
Simon Glass40d56a92016-01-30 16:37:54 -0700658 depends on OF_CONTROL
Simon Glassd2f90652016-01-30 16:37:51 -0700659 help
660 Tegra20 supports video output to an attached LCD panel as well as
661 other options such as HDMI. Only the LCD is supported in U-Boot.
662 This option enables this support which can be used on devices which
663 have an LCD display connected.
664
Simon Glasse7e88232015-04-14 21:03:42 -0600665config VIDEO_TEGRA124
666 bool "Enable video support on Tegra124"
667 help
668 Tegra124 supports many video output options including eDP and
669 HDMI. At present only eDP is supported by U-Boot. This option
670 enables this support which can be used on devices which
671 have an eDP display connected.
Simon Glass801ab9e2015-07-02 18:16:08 -0600672
673source "drivers/video/bridge/Kconfig"
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900674
Anatolij Gustschinbffd1312019-03-18 23:29:32 +0100675source "drivers/video/imx/Kconfig"
Anatolij Gustschin57f065f2019-03-18 23:29:31 +0100676
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200677config VIDEO_MXS
678 bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
Anatolij Gustschin79c05332021-10-04 17:33:12 +0200679 help
680 Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
681
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200682config VIDEO_NX
683 bool "Enable video support on Nexell SoC"
684 depends on ARCH_S5P6818 || ARCH_S5P4418
685 help
686 Nexell SoC supports many video output options including eDP and
687 HDMI. This option enables this support which can be used on devices
688 which have an eDP display connected.
689
Michal Simekb66d7af2020-12-03 09:31:35 +0100690config VIDEO_SEPS525
691 bool "Enable video support for Seps525"
Simon Glassfeda1932022-10-18 07:35:17 -0600692 depends on DM_GPIO
Michal Simekb66d7af2020-12-03 09:31:35 +0100693 help
694 Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
695 Currently driver is supporting only SPI interface.
696
Michal Simek98cacab2022-02-23 15:52:02 +0100697config VIDEO_ZYNQMP_DPSUB
698 bool "Enable video support for ZynqMP Display Port"
Simon Glassfeda1932022-10-18 07:35:17 -0600699 depends on ZYNQMP_POWER_DOMAIN
Michal Simek98cacab2022-02-23 15:52:02 +0100700 help
701 Enable support for Xilinx ZynqMP Display Port. Currently this file
702 is used as placeholder for driver. The main reason is to record
703 compatible string and calling power domain driver.
704
Stefan Bosche1e96ba2020-07-10 19:07:36 +0200705source "drivers/video/nexell/Kconfig"
706
Simon Glassb87ca802016-10-17 20:12:57 -0600707config CONSOLE_SCROLL_LINES
708 int "Number of lines to scroll the console by"
Simon Glassb87ca802016-10-17 20:12:57 -0600709 default 1
710 help
711 When the console need to be scrolled, this is the number of
712 lines to scroll by. It defaults to 1. Increasing this makes the
713 console jump but can help speed up operation when scrolling
714 is slow.
715
Philipp Tomsich8517f642017-05-05 21:48:26 +0200716config VIDEO_DW_HDMI
717 bool
718 help
719 Enables the common driver code for the Designware HDMI TX
720 block found in SoCs from various vendors.
721 As this does not provide any functionality by itself (but
722 rather requires a SoC-specific glue driver to call it), it
723 can not be enabled from the configuration menu.
724
Yannick Fertré23f965a2019-10-07 15:29:05 +0200725config VIDEO_DSI_HOST_SANDBOX
726 bool "Enable sandbox for dsi host"
727 depends on SANDBOX
728 select VIDEO_MIPI_DSI
729 help
730 Enable support for sandbox dsi host device used for testing
731 purposes.
732 Display Serial Interface (DSI) defines a serial bus and
733 a communication protocol between the host and the device
734 (panel, bridge).
735
Yannick Fertréd4f7ea82019-10-07 15:29:06 +0200736config VIDEO_DW_MIPI_DSI
737 bool
738 select VIDEO_MIPI_DSI
739 help
740 Enables the common driver code for the Synopsis Designware
741 MIPI DSI block found in SoCs from various vendors.
742 As this does not provide any functionality by itself (but
743 rather requires a SoC-specific glue driver to call it), it
744 can not be enabled from the configuration menu.
745
Rob Clark971d7e62017-08-03 12:47:00 -0400746config VIDEO_SIMPLE
747 bool "Simple display driver for preconfigured display"
748 help
749 Enables a simple generic display driver which utilizes the
750 simple-framebuffer devicetree bindings.
751
752 This driver assumes that the display hardware has been initialized
753 before u-boot starts, and u-boot will simply render to the pre-
754 allocated frame buffer surface.
755
Icenowy Zhengf6bdddc2017-10-26 11:14:46 +0800756config VIDEO_DT_SIMPLEFB
757 bool "Enable SimpleFB support for passing framebuffer to OS"
758 help
759 Enables the code to pass the framebuffer to the kernel as a
760 simple framebuffer in the device tree.
761 The video output is initialized by U-Boot, and kept by the
762 kernel.
763
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200764config VIDEO_MCDE_SIMPLE
765 bool "Simple driver for ST-Ericsson MCDE with preconfigured display"
Stephan Gerhold21a151a2021-07-02 19:21:56 +0200766 help
767 Enables a simple display driver for ST-Ericsson MCDE
768 (Multichannel Display Engine), which reads the configuration from
769 the MCDE registers.
770
771 This driver assumes that the display hardware has been initialized
772 before u-boot starts, and u-boot will simply render to the pre-
773 allocated frame buffer surface.
774
Mario Six39a336f2018-09-27 09:19:29 +0200775config OSD
776 bool "Enable OSD support"
777 depends on DM
Mario Six39a336f2018-09-27 09:19:29 +0200778 help
779 This supports drivers that provide a OSD (on-screen display), which
780 is a (usually text-oriented) graphics buffer to show information on
781 a display.
Mario Six9671f692018-09-27 09:19:30 +0200782
Mario Six4eea5312018-09-27 09:19:31 +0200783config SANDBOX_OSD
784 bool "Enable sandbox OSD"
785 depends on OSD
786 help
787 Enable support for sandbox OSD device used for testing purposes.
788
Mario Six9671f692018-09-27 09:19:30 +0200789config IHS_VIDEO_OUT
790 bool "Enable IHS video out driver"
791 depends on OSD
792 help
793 Enable support for the gdsys Integrated Hardware Systems (IHS) video
794 out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
795 textual overlays of the display outputs.
796
Simon Glass35bd70c2020-08-11 11:23:35 -0600797config SPLASH_SCREEN
798 bool "Show a splash-screen image"
799 help
800 If this option is set, the environment is checked for a variable
801 "splashimage". If found, the usual display of logo, copyright and
802 system information on the LCD is suppressed and the BMP image at the
803 address specified in "splashimage" is loaded instead. The console is
804 redirected to the "nulldev", too. This allows for a "silent" boot
805 where a splash screen is loaded very quickly after power-on.
806
807 The splash_screen_prepare() function is a weak function defined in
808 common/splash.c. It is called as part of the splash screen display
809 sequence. It gives the board an opportunity to prepare the splash
810 image data before it is processed and sent to the frame buffer by
811 U-Boot. Define your own version to use this feature.
812
Simon Glass988d19d2022-10-18 06:24:16 -0600813if SPLASH_SCREEN
814
Simon Glass35bd70c2020-08-11 11:23:35 -0600815config SPLASH_SCREEN_ALIGN
816 bool "Allow positioning the splash image anywhere on the display"
Simon Glass35bd70c2020-08-11 11:23:35 -0600817 help
818 If this option is set the splash image can be freely positioned
819 on the screen. Environment variable "splashpos" specifies the
820 position as "x,y". If a positive number is given it is used as
821 number of pixel from left/top. If a negative number is given it
822 is used as number of pixel from right/bottom. You can also
823 specify 'm' for centering the image.
824
825 Example:
826 setenv splashpos m,m
827 => image at center of screen
828
829 setenv splashpos 30,20
830 => image at x = 30 and y = 20
831
832 setenv splashpos -10,m
833 => vertically centered image
834 at x = dspWidth - bmpWidth - 9
835
Simon Glass4adc28e2022-10-18 06:30:56 -0600836config HIDE_LOGO_VERSION
837 bool "Hide the version information on the splash screen"
838 help
839 Normally the U-Boot version string is shown on the display when the
840 splash screen is enabled. This information is not otherwise visible
841 since video starts up after U-Boot has displayed the initial banner.
842
843 Enable this option to hide this information.
844
Simon Glass35bd70c2020-08-11 11:23:35 -0600845config SPLASH_SOURCE
846 bool "Control the source of the splash image"
Simon Glass35bd70c2020-08-11 11:23:35 -0600847 help
848 Use the splash_source.c library. This library provides facilities to
849 declare board specific splash image locations, routines for loading
850 splash image from supported locations, and a way of controlling the
851 selected splash location using the "splashsource" environment
852 variable.
853
854 This CONFIG works as follows:
855
856 - If splashsource is set to a supported location name as defined by
857 board code, use that splash location.
858 - If splashsource is undefined, use the first splash location as
859 default.
860 - If splashsource is set to an unsupported value, do not load a splash
861 screen.
862
863 A splash source location can describe either storage with raw data, a
864 storage formatted with a file system or a FIT image. In case of a
865 filesystem, the splash screen data is loaded as a file. The name of
866 the splash screen file can be controlled with the environment variable
867 "splashfile".
868
869 To enable loading the splash image from a FIT image, CONFIG_FIT must
870 be enabled. The FIT image has to start at the 'offset' field address
871 in the selected splash location. The name of splash image within the
872 FIT shall be specified by the environment variable "splashfile".
873
874 In case the environment variable "splashfile" is not defined the
875 default name 'splash.bmp' will be used.
876
Simon Glass988d19d2022-10-18 06:24:16 -0600877endif # SPLASH_SCREEN
878
Patrick Delaunay0ed6c0f2020-09-28 11:30:14 +0200879config VIDEO_BMP_GZIP
880 bool "Gzip compressed BMP image support"
881 depends on CMD_BMP || SPLASH_SCREEN
882 help
883 If this option is set, additionally to standard BMP
884 images, gzipped BMP images can be displayed via the
885 splashscreen support or the bmp command.
886
Simon Glasse6550032022-10-18 06:46:08 -0600887config VIDEO_LOGO_MAX_SIZE
Simon Glass2fd5a572022-10-18 06:49:18 -0600888 hex "Maximum size of the bitmap logo in bytes"
889 default 0x100000
890 help
891 Sets the maximum uncompressed size of the logo. This is needed when
892 decompressing a BMP file using the gzip algorithm, since it cannot
893 read the size from the bitmap header.
Simon Glasse6550032022-10-18 06:46:08 -0600894
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200895config VIDEO_BMP_RLE8
896 bool "Run length encoded BMP image (RLE8) support"
Patrick Delaunayf9a48652020-09-28 11:30:15 +0200897 help
898 If this option is set, the 8-bit RLE compressed BMP images
899 is supported.
900
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200901config BMP_16BPP
902 bool "16-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200903 help
904 Support display of bitmaps file with 16-bit-per-pixel
905
906config BMP_24BPP
907 bool "24-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200908 help
909 Support display of bitmaps file with 24-bit-per-pixel.
910
911config BMP_32BPP
912 bool "32-bit-per-pixel BMP image support"
Patrick Delaunay8fc78fc2020-09-28 11:30:16 +0200913 help
914 Support display of bitmaps file with 32-bit-per-pixel.
915
Simon Glassb86986c2022-10-18 07:46:31 -0600916endif # VIDEO
Simon Glassfeda1932022-10-18 07:35:17 -0600917
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900918endmenu