blob: 2fc0defcd0d1d01b462ea7404980fe629f202851 [file] [log] [blame]
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glass623d28f2016-01-18 19:52:15 -07007config DM_VIDEO
8 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
Patrick Delaunay4300f072017-08-03 12:36:06 +020017config BACKLIGHT_PWM
18 bool "Generic PWM based Backlight Driver"
19 depends on DM_VIDEO && DM_PWM
20 default y
21 help
22 If you have a LCD backlight adjustable by PWM, say Y to enable
23 this driver.
24 This driver can be use with "simple-panel" and
25 it understands the standard device tree
26 (leds/backlight/pwm-backlight.txt)
27
Patrick Delaunaya3c046f2017-08-03 12:36:07 +020028config BACKLIGHT_GPIO
29 bool "Generic GPIO based Backlight Driver"
30 depends on DM_VIDEO
31 help
32 If you have a LCD backlight adjustable by GPIO, say Y to enable
33 this driver.
34 This driver can be used with "simple-panel" and
35 it understands the standard device tree
36 (leds/backlight/gpio-backlight.txt)
37
Simon Glass623d28f2016-01-18 19:52:15 -070038config VIDEO_BPP8
39 bool "Support 8-bit-per-pixel displays"
40 depends on DM_VIDEO
Maxime Ripardfa438782018-01-16 09:44:19 +010041 default n if ARCH_SUNXI
Simon Glass623d28f2016-01-18 19:52:15 -070042 default y if DM_VIDEO
43 help
44 Support drawing text and bitmaps onto a 8-bit-per-pixel display.
45 Enabling this will include code to support this display. Without
46 this option, such displays will not be supported and console output
47 will be empty.
48
49config VIDEO_BPP16
50 bool "Support 16-bit-per-pixel displays"
51 depends on DM_VIDEO
Maxime Ripard9cddcba2018-01-16 09:44:20 +010052 default n if ARCH_SUNXI
Simon Glass623d28f2016-01-18 19:52:15 -070053 default y if DM_VIDEO
54 help
55 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
56 Enabling this will include code to support this display. Without
57 this option, such displays will not be supported and console output
58 will be empty.
59
60config VIDEO_BPP32
61 bool "Support 32-bit-per-pixel displays"
62 depends on DM_VIDEO
63 default y if DM_VIDEO
64 help
65 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
66 Enabling this will include code to support this display. Without
67 this option, such displays will not be supported and console output
68 will be empty.
69
Rob Clark06e7a0d2017-09-13 18:12:21 -040070config VIDEO_ANSI
71 bool "Support ANSI escape sequences in video console"
72 depends on DM_VIDEO
73 default y if DM_VIDEO
74 help
75 Enable ANSI escape sequence decoding for a more fully functional
76 console.
77
Simon Glass6e0721d2016-01-22 21:53:37 +010078config CONSOLE_NORMAL
79 bool "Support a simple text console"
80 depends on DM_VIDEO
81 default y if DM_VIDEO
82 help
83 Support drawing text on the frame buffer console so that it can be
84 used as a console. Rotation is not supported by this driver (see
85 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
86 for the display.
87
88config CONSOLE_ROTATION
Simon Glass87aae882016-01-18 19:52:19 -070089 bool "Support rotated displays"
90 depends on DM_VIDEO
91 help
92 Sometimes, for example if the display is mounted in portrait
93 mode or even if it's mounted landscape but rotated by 180degree,
94 we need to rotate our content of the display relative to the
95 framebuffer, so that user can read the messages which are
96 printed out. Enable this option to include a text driver which can
97 support this. The rotation is set by the 'rot' parameter in
98 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
99 degrees, 3=270 degrees.
100
Simon Glass2ef353e2016-01-14 18:10:42 -0700101config CONSOLE_TRUETYPE
102 bool "Support a console that uses TrueType fonts"
103 depends on DM_VIDEO
104 help
105 TrueTrype fonts can provide outline-drawing capability rather than
106 needing to provide a bitmap for each font and size that is needed.
107 With this option you can adjust the text size and use a variety of
108 fonts. Note that this is noticeably slower than with normal console.
109
110config CONSOLE_TRUETYPE_SIZE
111 int "TrueType font size"
112 depends on CONSOLE_TRUETYPE
113 default 18
114 help
115 This sets the font size for the console. The size is measured in
116 pixels and is the nominal height of a character. Note that fonts
117 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
118 However that measurement depends on the size of your display and
119 there is no standard display density. At present there is not a
120 method to select the display's physical size, which would allow
121 U-Boot to calculate the correct font size.
122
Simon Glassd65a1422017-04-26 22:27:57 -0600123config SYS_WHITE_ON_BLACK
124 bool "Display console as white on a black background"
125 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || TEGRA || X86
126 help
127 Normally the display is black on a white background, Enable this
128 option to invert this, i.e. white on a black background. This can be
129 better in low-light situations or to reduce eye strain in some
130 cases.
131
Rob Clarkf1411882017-08-03 12:47:01 -0400132config NO_FB_CLEAR
133 bool "Skip framebuffer clear"
134 help
135 If firmware (whatever loads u-boot) has already put a splash image
136 on screen, you might want to preserve it until whatever u-boot
137 loads takes over the screen. This, for example, can be used to
138 keep splash image on screen until grub graphical boot menu starts.
139
Simon Glass2ef353e2016-01-14 18:10:42 -0700140source "drivers/video/fonts/Kconfig"
141
Simon Glass86f07462016-02-06 14:31:37 -0700142config VIDCONSOLE_AS_LCD
143 bool "Use 'vidconsole' when 'lcd' is seen in stdout"
144 depends on DM_VIDEO
145 help
146 This is a work-around for boards which have 'lcd' in their stdout
147 environment variable, but have moved to use driver model for video.
148 In this case the console will no-longer work. While it is possible
149 to update the environment, the breakage may be confusing for users.
150 This option will be removed around the end of 2016.
151
Bin Menga0676be2016-10-09 04:14:16 -0700152config VIDEO_COREBOOT
153 bool "Enable coreboot framebuffer driver support"
154 depends on X86 && SYS_COREBOOT
155 help
156 Turn on this option to enable a framebuffer driver when U-Boot is
157 loaded by coreboot where the graphics device is configured by
158 coreboot already. This can in principle be used with any platform
159 that coreboot supports.
160
Simon Glass42bf3ee2014-12-29 19:32:28 -0700161config VIDEO_VESA
162 bool "Enable VESA video driver support"
Simon Glass42bf3ee2014-12-29 19:32:28 -0700163 default n
164 help
165 Turn on this option to enable a very simple driver which uses vesa
166 to discover the video mode and then provides a frame buffer for use
167 by U-Boot. This can in principle be used with any platform that
168 supports PCI and video cards that support VESA BIOS Extension (VBE).
169
Bin Meng072b79d2015-05-11 07:36:29 +0800170config FRAMEBUFFER_SET_VESA_MODE
171 bool "Set framebuffer graphics resolution"
Simon Glassdec49b72016-03-11 22:07:30 -0700172 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng072b79d2015-05-11 07:36:29 +0800173 help
174 Set VESA/native framebuffer mode (needed for bootsplash and graphical
175 framebuffer console)
176
177choice
178 prompt "framebuffer graphics resolution"
179 default FRAMEBUFFER_VESA_MODE_117
180 depends on FRAMEBUFFER_SET_VESA_MODE
181 help
182 This option sets the resolution used for the U-Boot framebuffer (and
183 bootsplash screen).
184
185config FRAMEBUFFER_VESA_MODE_100
186 bool "640x400 256-color"
187
188config FRAMEBUFFER_VESA_MODE_101
189 bool "640x480 256-color"
190
191config FRAMEBUFFER_VESA_MODE_102
192 bool "800x600 16-color"
193
194config FRAMEBUFFER_VESA_MODE_103
195 bool "800x600 256-color"
196
197config FRAMEBUFFER_VESA_MODE_104
198 bool "1024x768 16-color"
199
200config FRAMEBUFFER_VESA_MODE_105
Bin Meng932adc62015-08-09 23:26:59 -0700201 bool "1024x768 256-color"
Bin Meng072b79d2015-05-11 07:36:29 +0800202
203config FRAMEBUFFER_VESA_MODE_106
204 bool "1280x1024 16-color"
205
206config FRAMEBUFFER_VESA_MODE_107
207 bool "1280x1024 256-color"
208
209config FRAMEBUFFER_VESA_MODE_108
210 bool "80x60 text"
211
212config FRAMEBUFFER_VESA_MODE_109
213 bool "132x25 text"
214
215config FRAMEBUFFER_VESA_MODE_10A
216 bool "132x43 text"
217
218config FRAMEBUFFER_VESA_MODE_10B
219 bool "132x50 text"
220
221config FRAMEBUFFER_VESA_MODE_10C
222 bool "132x60 text"
223
224config FRAMEBUFFER_VESA_MODE_10D
225 bool "320x200 32k-color (1:5:5:5)"
226
227config FRAMEBUFFER_VESA_MODE_10E
228 bool "320x200 64k-color (5:6:5)"
229
230config FRAMEBUFFER_VESA_MODE_10F
231 bool "320x200 16.8M-color (8:8:8)"
232
233config FRAMEBUFFER_VESA_MODE_110
234 bool "640x480 32k-color (1:5:5:5)"
235
236config FRAMEBUFFER_VESA_MODE_111
237 bool "640x480 64k-color (5:6:5)"
238
239config FRAMEBUFFER_VESA_MODE_112
240 bool "640x480 16.8M-color (8:8:8)"
241
242config FRAMEBUFFER_VESA_MODE_113
243 bool "800x600 32k-color (1:5:5:5)"
244
245config FRAMEBUFFER_VESA_MODE_114
246 bool "800x600 64k-color (5:6:5)"
247
248config FRAMEBUFFER_VESA_MODE_115
249 bool "800x600 16.8M-color (8:8:8)"
250
251config FRAMEBUFFER_VESA_MODE_116
252 bool "1024x768 32k-color (1:5:5:5)"
253
254config FRAMEBUFFER_VESA_MODE_117
255 bool "1024x768 64k-color (5:6:5)"
256
257config FRAMEBUFFER_VESA_MODE_118
258 bool "1024x768 16.8M-color (8:8:8)"
259
260config FRAMEBUFFER_VESA_MODE_119
261 bool "1280x1024 32k-color (1:5:5:5)"
262
263config FRAMEBUFFER_VESA_MODE_11A
264 bool "1280x1024 64k-color (5:6:5)"
265
266config FRAMEBUFFER_VESA_MODE_11B
267 bool "1280x1024 16.8M-color (8:8:8)"
268
269config FRAMEBUFFER_VESA_MODE_USER
270 bool "Manually select VESA mode"
271
272endchoice
273
274# Map the config names to an integer (KB).
275config FRAMEBUFFER_VESA_MODE
276 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
277 hex
278 default 0x100 if FRAMEBUFFER_VESA_MODE_100
279 default 0x101 if FRAMEBUFFER_VESA_MODE_101
280 default 0x102 if FRAMEBUFFER_VESA_MODE_102
281 default 0x103 if FRAMEBUFFER_VESA_MODE_103
282 default 0x104 if FRAMEBUFFER_VESA_MODE_104
283 default 0x105 if FRAMEBUFFER_VESA_MODE_105
284 default 0x106 if FRAMEBUFFER_VESA_MODE_106
285 default 0x107 if FRAMEBUFFER_VESA_MODE_107
286 default 0x108 if FRAMEBUFFER_VESA_MODE_108
287 default 0x109 if FRAMEBUFFER_VESA_MODE_109
288 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
289 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
290 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
291 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
292 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
293 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
294 default 0x110 if FRAMEBUFFER_VESA_MODE_110
295 default 0x111 if FRAMEBUFFER_VESA_MODE_111
296 default 0x112 if FRAMEBUFFER_VESA_MODE_112
297 default 0x113 if FRAMEBUFFER_VESA_MODE_113
298 default 0x114 if FRAMEBUFFER_VESA_MODE_114
299 default 0x115 if FRAMEBUFFER_VESA_MODE_115
300 default 0x116 if FRAMEBUFFER_VESA_MODE_116
301 default 0x117 if FRAMEBUFFER_VESA_MODE_117
302 default 0x118 if FRAMEBUFFER_VESA_MODE_118
303 default 0x119 if FRAMEBUFFER_VESA_MODE_119
304 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
305 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
306 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
307
Hans de Goededfc1efe2015-08-08 16:03:29 +0200308config VIDEO_LCD_ANX9804
309 bool "ANX9804 bridge chip"
310 default n
311 ---help---
312 Support for the ANX9804 bridge chip, which can take pixel data coming
313 from a parallel LCD interface and translate it on the fy into a DP
314 interface for driving eDP TFT displays. It uses I2C for configuration.
315
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200316config VIDEO_LCD_SSD2828
317 bool "SSD2828 bridge chip"
318 default n
319 ---help---
320 Support for the SSD2828 bridge chip, which can take pixel data coming
321 from a parallel LCD interface and translate it on the fly into MIPI DSI
322 interface for driving a MIPI compatible LCD panel. It uses SPI for
323 configuration.
324
325config VIDEO_LCD_SSD2828_TX_CLK
326 int "SSD2828 TX_CLK frequency (in MHz)"
327 depends on VIDEO_LCD_SSD2828
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200328 default 0
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200329 ---help---
330 The frequency of the crystal, which is clocking SSD2828. It may be
331 anything in the 8MHz-30MHz range and the exact value should be
332 retrieved from the board schematics. Or in the case of Allwinner
333 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashka61fb91f2015-01-19 05:23:35 +0200334 FEX files. It can be also set to 0 for selecting PCLK from the
335 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200336
337config VIDEO_LCD_SSD2828_RESET
338 string "RESET pin of SSD2828"
339 depends on VIDEO_LCD_SSD2828
340 default ""
341 ---help---
342 The reset pin of SSD2828 chip. This takes a string in the format
343 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
344
Hans de Goedec0482032015-01-20 09:22:26 +0100345config VIDEO_LCD_HITACHI_TX18D42VM
346 bool "Hitachi tx18d42vm LVDS LCD panel support"
347 depends on VIDEO
348 default n
349 ---help---
350 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
351 lcd controller which needs to be initialized over SPI, once that is
352 done they work like a regular LVDS panel.
353
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200354config VIDEO_LCD_SPI_CS
355 string "SPI CS pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100356 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200357 default ""
358 ---help---
359 This is one of the SPI communication pins, involved in setting up a
360 working LCD configuration. The exact role of SPI may differ for
361 different hardware setups. The option takes a string in the format
362 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
363
364config VIDEO_LCD_SPI_SCLK
365 string "SPI SCLK pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100366 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200367 default ""
368 ---help---
369 This is one of the SPI communication pins, involved in setting up a
370 working LCD configuration. The exact role of SPI may differ for
371 different hardware setups. The option takes a string in the format
372 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
373
374config VIDEO_LCD_SPI_MOSI
375 string "SPI MOSI pin for LCD related config job"
Hans de Goedec0482032015-01-20 09:22:26 +0100376 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashka4c19cf22015-01-19 05:23:32 +0200377 default ""
378 ---help---
379 This is one of the SPI communication pins, involved in setting up a
380 working LCD configuration. The exact role of SPI may differ for
381 different hardware setups. The option takes a string in the format
382 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
383
384config VIDEO_LCD_SPI_MISO
385 string "SPI MISO pin for LCD related config job (optional)"
386 depends on VIDEO_LCD_SSD2828
387 default ""
388 ---help---
389 This is one of the SPI communication pins, involved in setting up a
390 working LCD configuration. The exact role of SPI may differ for
391 different hardware setups. If wired up, this pin may provide additional
392 useful functionality. Such as bi-directional communication with the
393 hardware and LCD panel id retrieval (if the panel can report it). The
394 option takes a string in the format understood by 'name_to_gpio'
395 function, e.g. PH1 for pin 1 of port H.
Simon Glass06679ad2015-04-14 21:03:38 -0600396
Stefan Roeseab91fd52016-01-20 08:13:28 +0100397config VIDEO_MVEBU
398 bool "Armada XP LCD controller"
399 default n
400 ---help---
401 Support for the LCD controller integrated in the Marvell
402 Armada XP SoC.
403
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100404config I2C_EDID
405 bool "Enable EDID library"
406 depends on DM_I2C
407 default n
408 help
409 This enables library for accessing EDID data from an LCD panel.
410
Simon Glass7d3d7762016-01-21 19:45:00 -0700411config DISPLAY
412 bool "Enable Display support"
413 depends on DM
Anatolij Gustschin4601eb42016-01-25 17:17:22 +0100414 default n
415 select I2C_EDID
Simon Glass06679ad2015-04-14 21:03:38 -0600416 help
Simon Glass7d3d7762016-01-21 19:45:00 -0700417 This supports drivers that provide a display, such as eDP (Embedded
418 DisplayPort) and HDMI (High Definition Multimedia Interface).
419 The devices provide a simple interface to start up the display,
420 read display information and enable it.
Simon Glass3ef2a722015-04-14 21:03:42 -0600421
Songjun Wu72ac56a2017-04-11 16:33:30 +0800422config ATMEL_HLCD
423 bool "Enable ATMEL video support using HLCDC"
424 depends on DM_VIDEO
425 help
426 HLCDC supports video output to an attached LCD panel.
427
Simon Glassdec49b72016-03-11 22:07:30 -0700428config VIDEO_BROADWELL_IGD
429 bool "Enable Intel Broadwell integrated graphics device"
430 depends on X86
431 help
Simon Glassa3fdd002016-10-05 20:42:14 -0600432 This enables support for integrated graphics on Intel broadwell
Simon Glassdec49b72016-03-11 22:07:30 -0700433 devices. Initialisation is mostly performed by a VGA boot ROM, with
434 some setup handled by U-Boot itself. The graphics adaptor works as
435 a VESA device and supports LCD panels, eDP and LVDS outputs.
436 Configuration of most aspects of device operation is performed using
437 a special tool which configures the VGA ROM, but the graphics
438 resolution can be selected in U-Boot.
439
Simon Glass03f2a512016-10-05 20:42:15 -0600440config VIDEO_IVYBRIDGE_IGD
441 bool "Enable Intel Ivybridge integration graphics support"
442 depends on X86
443 help
444 This enables support for integrated graphics on Intel ivybridge
445 devices. Initialisation is mostly performed by a VGA boot ROM, with
446 some setup handled by U-Boot itself. The graphics adaptor works as
447 a VESA device and supports LCD panels, eDP and LVDS outputs.
448 Configuration of most aspects of device operation is performed using
449 a special tool which configures the VGA ROM, but the graphics
450 resolution can be selected in U-Boot.
451
Sanchayan Maitye15479b2017-04-11 11:12:09 +0530452config VIDEO_FSL_DCU_FB
453 bool "Enable Freescale Display Control Unit"
454 depends on VIDEO
455 help
456 This enables support for Freescale Display Control Unit (DCU4)
457 module found on Freescale Vybrid and QorIQ family of SoCs.
458
Stefan Agnerec954232017-04-11 11:12:10 +0530459config VIDEO_FSL_DCU_MAX_FB_SIZE_MB
460 int "Freescale DCU framebuffer size"
461 depends on VIDEO_FSL_DCU_FB
462 default 4194304
463 help
464 Set maximum framebuffer size to be used for Freescale Display
465 Controller Unit (DCU4).
466
eric.gao@rock-chips.com735ddea2017-04-17 22:24:23 +0800467source "drivers/video/rockchip/Kconfig"
Simon Glass0139ae62016-01-21 19:45:03 -0700468
Simon Glass161eea72016-01-18 19:52:24 -0700469config VIDEO_SANDBOX_SDL
470 bool "Enable sandbox video console using SDL"
471 depends on SANDBOX
472 help
473 When using sandbox you can enable an emulated LCD display which
474 appears as an SDL (Simple DirectMedia Layer) window. This is a
475 console device and can display stdout output. Within U-Boot is is
476 a normal bitmap display and can display images as well as text.
477
Philippe CORNUdcbad9a2017-08-03 12:36:08 +0200478source "drivers/video/stm32/Kconfig"
479
Simon Glass89c03462016-01-30 16:37:51 -0700480config VIDEO_TEGRA20
481 bool "Enable LCD support on Tegra20"
Simon Glass54832f22016-01-30 16:37:54 -0700482 depends on OF_CONTROL
Simon Glass89c03462016-01-30 16:37:51 -0700483 help
484 Tegra20 supports video output to an attached LCD panel as well as
485 other options such as HDMI. Only the LCD is supported in U-Boot.
486 This option enables this support which can be used on devices which
487 have an LCD display connected.
488
Simon Glass3ef2a722015-04-14 21:03:42 -0600489config VIDEO_TEGRA124
490 bool "Enable video support on Tegra124"
Simon Glassfad72182016-01-30 16:37:50 -0700491 depends on DM_VIDEO
Simon Glass3ef2a722015-04-14 21:03:42 -0600492 help
493 Tegra124 supports many video output options including eDP and
494 HDMI. At present only eDP is supported by U-Boot. This option
495 enables this support which can be used on devices which
496 have an eDP display connected.
Simon Glass7cf17572015-07-02 18:16:08 -0600497
498source "drivers/video/bridge/Kconfig"
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900499
Simon Glasse9d797a2016-10-17 20:12:40 -0600500config VIDEO
501 bool "Enable legacy video support"
502 depends on !DM_VIDEO
503 help
504 Define this for video support, without using driver model. Some
505 drivers use this because they are not yet converted to driver
506 model. Video drivers typically provide a colour text console and
507 cursor.
508
Jagan Tekif36b5942016-12-06 00:00:54 +0100509config VIDEO_IPUV3
510 bool "i.MX IPUv3 Core video support"
511 depends on VIDEO && MX6
512 help
513 This enables framebuffer driver for i.MX processors working
514 on the IPUv3(Image Processing Unit) internal graphic processor.
515
Simon Glasse64c7242016-10-17 20:12:41 -0600516config CFB_CONSOLE
517 bool "Enable colour frame buffer console"
518 depends on VIDEO
519 default y if VIDEO
520 help
521 Enables the colour frame buffer driver. This supports colour
522 output on a bitmap display from an in-memory frame buffer.
523 Several colour devices are supported along with various options to
524 adjust the supported features. The driver is implemented in
525 cfb_console.c
526
527 The following defines are needed (cf. smiLynxEM, i8042)
528 VIDEO_FB_LITTLE_ENDIAN graphic memory organisation
529 (default big endian)
530 VIDEO_HW_RECTFILL graphic chip supports
531 rectangle fill (cf. smiLynxEM)
532 VIDEO_HW_BITBLT graphic chip supports
533 bit-blit (cf. smiLynxEM)
534 VIDEO_VISIBLE_COLS visible pixel columns (cols=pitch)
535 VIDEO_VISIBLE_ROWS visible pixel rows
536 VIDEO_PIXEL_SIZE bytes per pixel
537 VIDEO_DATA_FORMAT graphic data format
538 (0-5, cf. cfb_console.c)
539 VIDEO_FB_ADRS framebuffer address
540 VIDEO_KBD_INIT_FCT keyboard int fct (i.e. rx51_kp_init())
541 VIDEO_TSTC_FCT test char fct (i.e. rx51_kp_tstc)
542 VIDEO_GETC_FCT get char fct (i.e. rx51_kp_getc)
543 CONFIG_VIDEO_LOGO display Linux logo in upper left corner
544 CONFIG_VIDEO_BMP_LOGO use bmp_logo.h instead of linux_logo.h
545 for logo. Requires CONFIG_VIDEO_LOGO
546 CONFIG_CONSOLE_EXTRA_INFO
547 additional board info beside
548 the logo
549 CONFIG_HIDE_LOGO_VERSION
550 do not display bootloader
551 version string
552
553 When CONFIG_CFB_CONSOLE is defined, the video console is the
554 default console. The serial console can be forced by setting the
555 environment 'console=serial'.
556
Simon Glass8d0efc12016-10-17 20:12:42 -0600557config CFB_CONSOLE_ANSI
558 bool "Support ANSI escape sequences"
559 depends on CFB_CONSOLE
560 help
561 This allows the colour buffer frame buffer driver to support
562 a limited number of ANSI escape sequences (cursor control,
563 erase functions and limited graphics rendition control). Normal
564 output from U-Boot will pass through this filter.
565
Simon Glassdcff6922016-10-17 20:12:49 -0600566config VGA_AS_SINGLE_DEVICE
567 bool "Set the video as an output-only device"
568 depends on CFB_CONSOLE
569 default y
570 help
571 If enable the framebuffer device will be initialized as an
572 output-only device. The Keyboard driver will not be set up. This
573 may be used if you have no keyboard device, or more than one
574 (USB Keyboard, AT Keyboard).
575
Simon Glass706605f2016-10-17 20:12:51 -0600576config VIDEO_SW_CURSOR
577 bool "Enable a software cursor"
578 depends on CFB_CONSOLE
579 default y if CFB_CONSOLE
580 help
581 This draws a cursor after the last character. No blinking is
582 provided. This makes it possible to see the current cursor
583 position when entering text on the console. It is recommended to
584 enable this.
585
Simon Glass5a772352016-10-17 20:12:53 -0600586config CONSOLE_EXTRA_INFO
587 bool "Display additional board information"
588 depends on CFB_CONSOLE
589 help
590 Display additional board information strings that normally go to
591 the serial port. When this option is enabled, a board-specific
592 function video_get_info_str() is called to get the string for
593 each line of the display. The function should return the string,
594 which can be empty if there is nothing to display for that line.
595
Simon Glassd76f29a2016-10-17 20:12:57 -0600596config CONSOLE_SCROLL_LINES
597 int "Number of lines to scroll the console by"
598 depends on CFB_CONSOLE || DM_VIDEO || LCD
599 default 1
600 help
601 When the console need to be scrolled, this is the number of
602 lines to scroll by. It defaults to 1. Increasing this makes the
603 console jump but can help speed up operation when scrolling
604 is slow.
605
Simon Glass884889d2016-10-17 20:12:44 -0600606config SYS_CONSOLE_BG_COL
607 hex "Background colour"
Bin Mengfb4beba2017-08-03 21:56:50 -0700608 depends on CFB_CONSOLE
Simon Glass884889d2016-10-17 20:12:44 -0600609 default 0x00
610 help
611 Defines the background colour for the console. The value is from
612 0x00 to 0xff and the meaning depends on the graphics card.
613 Typically, 0x00 means black and 0xff means white. Do not set
614 the background and foreground to the same colour or you will see
615 nothing.
616
617config SYS_CONSOLE_FG_COL
618 hex "Foreground colour"
Bin Mengfb4beba2017-08-03 21:56:50 -0700619 depends on CFB_CONSOLE
Simon Glass884889d2016-10-17 20:12:44 -0600620 default 0xa0
621 help
622 Defines the foreground colour for the console. The value is from
623 0x00 to 0xff and the meaning depends on the graphics card.
624 Typically, 0x00 means black and 0xff means white. Do not set
625 the background and foreground to the same colour or you will see
626 nothing.
627
Simon Glass169bb3b2016-10-17 20:12:56 -0600628config LCD
629 bool "Enable legacy LCD support"
630 help
631 Define this to enable LCD support (for output to LCD display).
632 You will also need to select an LCD driver using an additional
633 CONFIG option. See the README for details. Drives which have been
634 converted to driver model will instead used CONFIG_DM_VIDEO.
635
Philipp Tomsich3a53b3e2017-05-05 21:48:26 +0200636config VIDEO_DW_HDMI
637 bool
638 help
639 Enables the common driver code for the Designware HDMI TX
640 block found in SoCs from various vendors.
641 As this does not provide any functionality by itself (but
642 rather requires a SoC-specific glue driver to call it), it
643 can not be enabled from the configuration menu.
644
Rob Clarkcf7ab0c2017-08-03 12:47:00 -0400645config VIDEO_SIMPLE
646 bool "Simple display driver for preconfigured display"
647 help
648 Enables a simple generic display driver which utilizes the
649 simple-framebuffer devicetree bindings.
650
651 This driver assumes that the display hardware has been initialized
652 before u-boot starts, and u-boot will simply render to the pre-
653 allocated frame buffer surface.
654
Icenowy Zheng60e4b8f2017-10-26 11:14:46 +0800655config VIDEO_DT_SIMPLEFB
656 bool "Enable SimpleFB support for passing framebuffer to OS"
657 help
658 Enables the code to pass the framebuffer to the kernel as a
659 simple framebuffer in the device tree.
660 The video output is initialized by U-Boot, and kept by the
661 kernel.
662
Masahiro Yamadacc85b7b2015-07-26 02:46:26 +0900663endmenu