blob: a267c9acfecb0f3d465bf584ef2a4bbdd4b9a49a [file] [log] [blame]
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +09001#
2# Video configuration
3#
4
5menu "Graphics support"
6
Simon Glass1acafc72016-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 Delaunay08a43cf2017-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 Delaunay5b6a6a92017-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 Glass1acafc72016-01-18 19:52:15 -070038config VIDEO_BPP8
39 bool "Support 8-bit-per-pixel displays"
40 depends on DM_VIDEO
Maxime Ripard2e8f1dd2018-01-16 09:44:19 +010041 default n if ARCH_SUNXI
Simon Glass1acafc72016-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
52 default y if DM_VIDEO
53 help
54 Support drawing text and bitmaps onto a 16-bit-per-pixel display.
55 Enabling this will include code to support this display. Without
56 this option, such displays will not be supported and console output
57 will be empty.
58
59config VIDEO_BPP32
60 bool "Support 32-bit-per-pixel displays"
61 depends on DM_VIDEO
62 default y if DM_VIDEO
63 help
64 Support drawing text and bitmaps onto a 32-bit-per-pixel display.
65 Enabling this will include code to support this display. Without
66 this option, such displays will not be supported and console output
67 will be empty.
68
Rob Clarka085aa12017-09-13 18:12:21 -040069config VIDEO_ANSI
70 bool "Support ANSI escape sequences in video console"
71 depends on DM_VIDEO
72 default y if DM_VIDEO
73 help
74 Enable ANSI escape sequence decoding for a more fully functional
75 console.
76
Simon Glass6e42e252016-01-22 21:53:37 +010077config CONSOLE_NORMAL
78 bool "Support a simple text console"
79 depends on DM_VIDEO
80 default y if DM_VIDEO
81 help
82 Support drawing text on the frame buffer console so that it can be
83 used as a console. Rotation is not supported by this driver (see
84 CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
85 for the display.
86
87config CONSOLE_ROTATION
Simon Glassb5146b22016-01-18 19:52:19 -070088 bool "Support rotated displays"
89 depends on DM_VIDEO
90 help
91 Sometimes, for example if the display is mounted in portrait
92 mode or even if it's mounted landscape but rotated by 180degree,
93 we need to rotate our content of the display relative to the
94 framebuffer, so that user can read the messages which are
95 printed out. Enable this option to include a text driver which can
96 support this. The rotation is set by the 'rot' parameter in
97 struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
98 degrees, 3=270 degrees.
99
Simon Glassa29b0122016-01-14 18:10:42 -0700100config CONSOLE_TRUETYPE
101 bool "Support a console that uses TrueType fonts"
102 depends on DM_VIDEO
103 help
104 TrueTrype fonts can provide outline-drawing capability rather than
105 needing to provide a bitmap for each font and size that is needed.
106 With this option you can adjust the text size and use a variety of
107 fonts. Note that this is noticeably slower than with normal console.
108
109config CONSOLE_TRUETYPE_SIZE
110 int "TrueType font size"
111 depends on CONSOLE_TRUETYPE
112 default 18
113 help
114 This sets the font size for the console. The size is measured in
115 pixels and is the nominal height of a character. Note that fonts
116 are commonly measured in 'points', being 1/72 inch (about 3.52mm).
117 However that measurement depends on the size of your display and
118 there is no standard display density. At present there is not a
119 method to select the display's physical size, which would allow
120 U-Boot to calculate the correct font size.
121
Simon Glass983b1032017-04-26 22:27:57 -0600122config SYS_WHITE_ON_BLACK
123 bool "Display console as white on a black background"
124 default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || TEGRA || X86
125 help
126 Normally the display is black on a white background, Enable this
127 option to invert this, i.e. white on a black background. This can be
128 better in low-light situations or to reduce eye strain in some
129 cases.
130
Rob Clark8ef05352017-08-03 12:47:01 -0400131config NO_FB_CLEAR
132 bool "Skip framebuffer clear"
133 help
134 If firmware (whatever loads u-boot) has already put a splash image
135 on screen, you might want to preserve it until whatever u-boot
136 loads takes over the screen. This, for example, can be used to
137 keep splash image on screen until grub graphical boot menu starts.
138
Simon Glassa29b0122016-01-14 18:10:42 -0700139source "drivers/video/fonts/Kconfig"
140
Simon Glassa2931b32016-02-06 14:31:37 -0700141config VIDCONSOLE_AS_LCD
142 bool "Use 'vidconsole' when 'lcd' is seen in stdout"
143 depends on DM_VIDEO
144 help
145 This is a work-around for boards which have 'lcd' in their stdout
146 environment variable, but have moved to use driver model for video.
147 In this case the console will no-longer work. While it is possible
148 to update the environment, the breakage may be confusing for users.
149 This option will be removed around the end of 2016.
150
Bin Meng13b2bfc2016-10-09 04:14:16 -0700151config VIDEO_COREBOOT
152 bool "Enable coreboot framebuffer driver support"
153 depends on X86 && SYS_COREBOOT
154 help
155 Turn on this option to enable a framebuffer driver when U-Boot is
156 loaded by coreboot where the graphics device is configured by
157 coreboot already. This can in principle be used with any platform
158 that coreboot supports.
159
Simon Glass6b1ba982014-12-29 19:32:28 -0700160config VIDEO_VESA
161 bool "Enable VESA video driver support"
Simon Glass6b1ba982014-12-29 19:32:28 -0700162 default n
163 help
164 Turn on this option to enable a very simple driver which uses vesa
165 to discover the video mode and then provides a frame buffer for use
166 by U-Boot. This can in principle be used with any platform that
167 supports PCI and video cards that support VESA BIOS Extension (VBE).
168
Bin Meng6bde2dc2015-05-11 07:36:29 +0800169config FRAMEBUFFER_SET_VESA_MODE
170 bool "Set framebuffer graphics resolution"
Simon Glass97cb0922016-03-11 22:07:30 -0700171 depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
Bin Meng6bde2dc2015-05-11 07:36:29 +0800172 help
173 Set VESA/native framebuffer mode (needed for bootsplash and graphical
174 framebuffer console)
175
176choice
177 prompt "framebuffer graphics resolution"
178 default FRAMEBUFFER_VESA_MODE_117
179 depends on FRAMEBUFFER_SET_VESA_MODE
180 help
181 This option sets the resolution used for the U-Boot framebuffer (and
182 bootsplash screen).
183
184config FRAMEBUFFER_VESA_MODE_100
185 bool "640x400 256-color"
186
187config FRAMEBUFFER_VESA_MODE_101
188 bool "640x480 256-color"
189
190config FRAMEBUFFER_VESA_MODE_102
191 bool "800x600 16-color"
192
193config FRAMEBUFFER_VESA_MODE_103
194 bool "800x600 256-color"
195
196config FRAMEBUFFER_VESA_MODE_104
197 bool "1024x768 16-color"
198
199config FRAMEBUFFER_VESA_MODE_105
Bin Meng57dccb52015-08-09 23:26:59 -0700200 bool "1024x768 256-color"
Bin Meng6bde2dc2015-05-11 07:36:29 +0800201
202config FRAMEBUFFER_VESA_MODE_106
203 bool "1280x1024 16-color"
204
205config FRAMEBUFFER_VESA_MODE_107
206 bool "1280x1024 256-color"
207
208config FRAMEBUFFER_VESA_MODE_108
209 bool "80x60 text"
210
211config FRAMEBUFFER_VESA_MODE_109
212 bool "132x25 text"
213
214config FRAMEBUFFER_VESA_MODE_10A
215 bool "132x43 text"
216
217config FRAMEBUFFER_VESA_MODE_10B
218 bool "132x50 text"
219
220config FRAMEBUFFER_VESA_MODE_10C
221 bool "132x60 text"
222
223config FRAMEBUFFER_VESA_MODE_10D
224 bool "320x200 32k-color (1:5:5:5)"
225
226config FRAMEBUFFER_VESA_MODE_10E
227 bool "320x200 64k-color (5:6:5)"
228
229config FRAMEBUFFER_VESA_MODE_10F
230 bool "320x200 16.8M-color (8:8:8)"
231
232config FRAMEBUFFER_VESA_MODE_110
233 bool "640x480 32k-color (1:5:5:5)"
234
235config FRAMEBUFFER_VESA_MODE_111
236 bool "640x480 64k-color (5:6:5)"
237
238config FRAMEBUFFER_VESA_MODE_112
239 bool "640x480 16.8M-color (8:8:8)"
240
241config FRAMEBUFFER_VESA_MODE_113
242 bool "800x600 32k-color (1:5:5:5)"
243
244config FRAMEBUFFER_VESA_MODE_114
245 bool "800x600 64k-color (5:6:5)"
246
247config FRAMEBUFFER_VESA_MODE_115
248 bool "800x600 16.8M-color (8:8:8)"
249
250config FRAMEBUFFER_VESA_MODE_116
251 bool "1024x768 32k-color (1:5:5:5)"
252
253config FRAMEBUFFER_VESA_MODE_117
254 bool "1024x768 64k-color (5:6:5)"
255
256config FRAMEBUFFER_VESA_MODE_118
257 bool "1024x768 16.8M-color (8:8:8)"
258
259config FRAMEBUFFER_VESA_MODE_119
260 bool "1280x1024 32k-color (1:5:5:5)"
261
262config FRAMEBUFFER_VESA_MODE_11A
263 bool "1280x1024 64k-color (5:6:5)"
264
265config FRAMEBUFFER_VESA_MODE_11B
266 bool "1280x1024 16.8M-color (8:8:8)"
267
268config FRAMEBUFFER_VESA_MODE_USER
269 bool "Manually select VESA mode"
270
271endchoice
272
273# Map the config names to an integer (KB).
274config FRAMEBUFFER_VESA_MODE
275 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
276 hex
277 default 0x100 if FRAMEBUFFER_VESA_MODE_100
278 default 0x101 if FRAMEBUFFER_VESA_MODE_101
279 default 0x102 if FRAMEBUFFER_VESA_MODE_102
280 default 0x103 if FRAMEBUFFER_VESA_MODE_103
281 default 0x104 if FRAMEBUFFER_VESA_MODE_104
282 default 0x105 if FRAMEBUFFER_VESA_MODE_105
283 default 0x106 if FRAMEBUFFER_VESA_MODE_106
284 default 0x107 if FRAMEBUFFER_VESA_MODE_107
285 default 0x108 if FRAMEBUFFER_VESA_MODE_108
286 default 0x109 if FRAMEBUFFER_VESA_MODE_109
287 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
288 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
289 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
290 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
291 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
292 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
293 default 0x110 if FRAMEBUFFER_VESA_MODE_110
294 default 0x111 if FRAMEBUFFER_VESA_MODE_111
295 default 0x112 if FRAMEBUFFER_VESA_MODE_112
296 default 0x113 if FRAMEBUFFER_VESA_MODE_113
297 default 0x114 if FRAMEBUFFER_VESA_MODE_114
298 default 0x115 if FRAMEBUFFER_VESA_MODE_115
299 default 0x116 if FRAMEBUFFER_VESA_MODE_116
300 default 0x117 if FRAMEBUFFER_VESA_MODE_117
301 default 0x118 if FRAMEBUFFER_VESA_MODE_118
302 default 0x119 if FRAMEBUFFER_VESA_MODE_119
303 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
304 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
305 default 0x117 if FRAMEBUFFER_VESA_MODE_USER
306
Hans de Goede66525bb2015-08-08 16:03:29 +0200307config VIDEO_LCD_ANX9804
308 bool "ANX9804 bridge chip"
309 default n
310 ---help---
311 Support for the ANX9804 bridge chip, which can take pixel data coming
312 from a parallel LCD interface and translate it on the fy into a DP
313 interface for driving eDP TFT displays. It uses I2C for configuration.
314
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200315config VIDEO_LCD_SSD2828
316 bool "SSD2828 bridge chip"
317 default n
318 ---help---
319 Support for the SSD2828 bridge chip, which can take pixel data coming
320 from a parallel LCD interface and translate it on the fly into MIPI DSI
321 interface for driving a MIPI compatible LCD panel. It uses SPI for
322 configuration.
323
324config VIDEO_LCD_SSD2828_TX_CLK
325 int "SSD2828 TX_CLK frequency (in MHz)"
326 depends on VIDEO_LCD_SSD2828
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200327 default 0
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200328 ---help---
329 The frequency of the crystal, which is clocking SSD2828. It may be
330 anything in the 8MHz-30MHz range and the exact value should be
331 retrieved from the board schematics. Or in the case of Allwinner
332 hardware, it can be usually found as 'lcd_xtal_freq' variable in
Siarhei Siamashkadddccd62015-01-19 05:23:35 +0200333 FEX files. It can be also set to 0 for selecting PCLK from the
334 parallel LCD interface instead of TX_CLK as the PLL clock source.
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200335
336config VIDEO_LCD_SSD2828_RESET
337 string "RESET pin of SSD2828"
338 depends on VIDEO_LCD_SSD2828
339 default ""
340 ---help---
341 The reset pin of SSD2828 chip. This takes a string in the format
342 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
343
Hans de Goedea5464f22015-01-20 09:22:26 +0100344config VIDEO_LCD_HITACHI_TX18D42VM
345 bool "Hitachi tx18d42vm LVDS LCD panel support"
346 depends on VIDEO
347 default n
348 ---help---
349 Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
350 lcd controller which needs to be initialized over SPI, once that is
351 done they work like a regular LVDS panel.
352
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200353config VIDEO_LCD_SPI_CS
354 string "SPI CS pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100355 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200356 default ""
357 ---help---
358 This is one of the SPI communication pins, involved in setting up a
359 working LCD configuration. The exact role of SPI may differ for
360 different hardware setups. The option takes a string in the format
361 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
362
363config VIDEO_LCD_SPI_SCLK
364 string "SPI SCLK pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100365 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200366 default ""
367 ---help---
368 This is one of the SPI communication pins, involved in setting up a
369 working LCD configuration. The exact role of SPI may differ for
370 different hardware setups. The option takes a string in the format
371 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
372
373config VIDEO_LCD_SPI_MOSI
374 string "SPI MOSI pin for LCD related config job"
Hans de Goedea5464f22015-01-20 09:22:26 +0100375 depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
Siarhei Siamashkab8329ac2015-01-19 05:23:32 +0200376 default ""
377 ---help---
378 This is one of the SPI communication pins, involved in setting up a
379 working LCD configuration. The exact role of SPI may differ for
380 different hardware setups. The option takes a string in the format
381 understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
382
383config VIDEO_LCD_SPI_MISO
384 string "SPI MISO pin for LCD related config job (optional)"
385 depends on VIDEO_LCD_SSD2828
386 default ""
387 ---help---
388 This is one of the SPI communication pins, involved in setting up a
389 working LCD configuration. The exact role of SPI may differ for
390 different hardware setups. If wired up, this pin may provide additional
391 useful functionality. Such as bi-directional communication with the
392 hardware and LCD panel id retrieval (if the panel can report it). The
393 option takes a string in the format understood by 'name_to_gpio'
394 function, e.g. PH1 for pin 1 of port H.
Simon Glass51f2c992015-04-14 21:03:38 -0600395
Stefan Roese913d1be2016-01-20 08:13:28 +0100396config VIDEO_MVEBU
397 bool "Armada XP LCD controller"
398 default n
399 ---help---
400 Support for the LCD controller integrated in the Marvell
401 Armada XP SoC.
402
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100403config I2C_EDID
404 bool "Enable EDID library"
405 depends on DM_I2C
406 default n
407 help
408 This enables library for accessing EDID data from an LCD panel.
409
Simon Glass2dcf1432016-01-21 19:45:00 -0700410config DISPLAY
411 bool "Enable Display support"
412 depends on DM
Anatolij Gustschin7588c312016-01-25 17:17:22 +0100413 default n
414 select I2C_EDID
Simon Glass51f2c992015-04-14 21:03:38 -0600415 help
Simon Glass2dcf1432016-01-21 19:45:00 -0700416 This supports drivers that provide a display, such as eDP (Embedded
417 DisplayPort) and HDMI (High Definition Multimedia Interface).
418 The devices provide a simple interface to start up the display,
419 read display information and enable it.
Simon Glasse7e88232015-04-14 21:03:42 -0600420
Songjun Wu79278312017-04-11 16:33:30 +0800421config ATMEL_HLCD
422 bool "Enable ATMEL video support using HLCDC"
423 depends on DM_VIDEO
424 help
425 HLCDC supports video output to an attached LCD panel.
426
Simon Glass97cb0922016-03-11 22:07:30 -0700427config VIDEO_BROADWELL_IGD
428 bool "Enable Intel Broadwell integrated graphics device"
429 depends on X86
430 help
Simon Glass1df91272016-10-05 20:42:14 -0600431 This enables support for integrated graphics on Intel broadwell
Simon Glass97cb0922016-03-11 22:07:30 -0700432 devices. Initialisation is mostly performed by a VGA boot ROM, with
433 some setup handled by U-Boot itself. The graphics adaptor works as
434 a VESA device and supports LCD panels, eDP and LVDS outputs.
435 Configuration of most aspects of device operation is performed using
436 a special tool which configures the VGA ROM, but the graphics
437 resolution can be selected in U-Boot.
438
Simon Glass2c943802016-10-05 20:42:15 -0600439config VIDEO_IVYBRIDGE_IGD
440 bool "Enable Intel Ivybridge integration graphics support"
441 depends on X86
442 help
443 This enables support for integrated graphics on Intel ivybridge
444 devices. Initialisation is mostly performed by a VGA boot ROM, with
445 some setup handled by U-Boot itself. The graphics adaptor works as
446 a VESA device and supports LCD panels, eDP and LVDS outputs.
447 Configuration of most aspects of device operation is performed using
448 a special tool which configures the VGA ROM, but the graphics
449 resolution can be selected in U-Boot.
450
Sanchayan Maityb215fb32017-04-11 11:12:09 +0530451config VIDEO_FSL_DCU_FB
452 bool "Enable Freescale Display Control Unit"
453 depends on VIDEO
454 help
455 This enables support for Freescale Display Control Unit (DCU4)
456 module found on Freescale Vybrid and QorIQ family of SoCs.
457
Stefan Agner77810e62017-04-11 11:12:10 +0530458config VIDEO_FSL_DCU_MAX_FB_SIZE_MB
459 int "Freescale DCU framebuffer size"
460 depends on VIDEO_FSL_DCU_FB
461 default 4194304
462 help
463 Set maximum framebuffer size to be used for Freescale Display
464 Controller Unit (DCU4).
465
eric.gao@rock-chips.comb98f0a32017-04-17 22:24:23 +0800466source "drivers/video/rockchip/Kconfig"
Simon Glassc2539482016-01-21 19:45:03 -0700467
Simon Glass1e69ad02016-01-18 19:52:24 -0700468config VIDEO_SANDBOX_SDL
469 bool "Enable sandbox video console using SDL"
470 depends on SANDBOX
471 help
472 When using sandbox you can enable an emulated LCD display which
473 appears as an SDL (Simple DirectMedia Layer) window. This is a
474 console device and can display stdout output. Within U-Boot is is
475 a normal bitmap display and can display images as well as text.
476
Philippe CORNU72719d22017-08-03 12:36:08 +0200477source "drivers/video/stm32/Kconfig"
478
Simon Glassd2f90652016-01-30 16:37:51 -0700479config VIDEO_TEGRA20
480 bool "Enable LCD support on Tegra20"
Simon Glass40d56a92016-01-30 16:37:54 -0700481 depends on OF_CONTROL
Simon Glassd2f90652016-01-30 16:37:51 -0700482 help
483 Tegra20 supports video output to an attached LCD panel as well as
484 other options such as HDMI. Only the LCD is supported in U-Boot.
485 This option enables this support which can be used on devices which
486 have an LCD display connected.
487
Simon Glasse7e88232015-04-14 21:03:42 -0600488config VIDEO_TEGRA124
489 bool "Enable video support on Tegra124"
Simon Glassd7659212016-01-30 16:37:50 -0700490 depends on DM_VIDEO
Simon Glasse7e88232015-04-14 21:03:42 -0600491 help
492 Tegra124 supports many video output options including eDP and
493 HDMI. At present only eDP is supported by U-Boot. This option
494 enables this support which can be used on devices which
495 have an eDP display connected.
Simon Glass801ab9e2015-07-02 18:16:08 -0600496
497source "drivers/video/bridge/Kconfig"
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900498
Simon Glass27604b12016-10-17 20:12:40 -0600499config VIDEO
500 bool "Enable legacy video support"
501 depends on !DM_VIDEO
502 help
503 Define this for video support, without using driver model. Some
504 drivers use this because they are not yet converted to driver
505 model. Video drivers typically provide a colour text console and
506 cursor.
507
Jagan Teki7db74552016-12-06 00:00:54 +0100508config VIDEO_IPUV3
509 bool "i.MX IPUv3 Core video support"
510 depends on VIDEO && MX6
511 help
512 This enables framebuffer driver for i.MX processors working
513 on the IPUv3(Image Processing Unit) internal graphic processor.
514
Simon Glassbdba2b32016-10-17 20:12:41 -0600515config CFB_CONSOLE
516 bool "Enable colour frame buffer console"
517 depends on VIDEO
518 default y if VIDEO
519 help
520 Enables the colour frame buffer driver. This supports colour
521 output on a bitmap display from an in-memory frame buffer.
522 Several colour devices are supported along with various options to
523 adjust the supported features. The driver is implemented in
524 cfb_console.c
525
526 The following defines are needed (cf. smiLynxEM, i8042)
527 VIDEO_FB_LITTLE_ENDIAN graphic memory organisation
528 (default big endian)
529 VIDEO_HW_RECTFILL graphic chip supports
530 rectangle fill (cf. smiLynxEM)
531 VIDEO_HW_BITBLT graphic chip supports
532 bit-blit (cf. smiLynxEM)
533 VIDEO_VISIBLE_COLS visible pixel columns (cols=pitch)
534 VIDEO_VISIBLE_ROWS visible pixel rows
535 VIDEO_PIXEL_SIZE bytes per pixel
536 VIDEO_DATA_FORMAT graphic data format
537 (0-5, cf. cfb_console.c)
538 VIDEO_FB_ADRS framebuffer address
539 VIDEO_KBD_INIT_FCT keyboard int fct (i.e. rx51_kp_init())
540 VIDEO_TSTC_FCT test char fct (i.e. rx51_kp_tstc)
541 VIDEO_GETC_FCT get char fct (i.e. rx51_kp_getc)
542 CONFIG_VIDEO_LOGO display Linux logo in upper left corner
543 CONFIG_VIDEO_BMP_LOGO use bmp_logo.h instead of linux_logo.h
544 for logo. Requires CONFIG_VIDEO_LOGO
545 CONFIG_CONSOLE_EXTRA_INFO
546 additional board info beside
547 the logo
548 CONFIG_HIDE_LOGO_VERSION
549 do not display bootloader
550 version string
551
552 When CONFIG_CFB_CONSOLE is defined, the video console is the
553 default console. The serial console can be forced by setting the
554 environment 'console=serial'.
555
Simon Glassc6745192016-10-17 20:12:42 -0600556config CFB_CONSOLE_ANSI
557 bool "Support ANSI escape sequences"
558 depends on CFB_CONSOLE
559 help
560 This allows the colour buffer frame buffer driver to support
561 a limited number of ANSI escape sequences (cursor control,
562 erase functions and limited graphics rendition control). Normal
563 output from U-Boot will pass through this filter.
564
Simon Glass1e1a0fb2016-10-17 20:12:49 -0600565config VGA_AS_SINGLE_DEVICE
566 bool "Set the video as an output-only device"
567 depends on CFB_CONSOLE
568 default y
569 help
570 If enable the framebuffer device will be initialized as an
571 output-only device. The Keyboard driver will not be set up. This
572 may be used if you have no keyboard device, or more than one
573 (USB Keyboard, AT Keyboard).
574
Simon Glass0872d442016-10-17 20:12:51 -0600575config VIDEO_SW_CURSOR
576 bool "Enable a software cursor"
577 depends on CFB_CONSOLE
578 default y if CFB_CONSOLE
579 help
580 This draws a cursor after the last character. No blinking is
581 provided. This makes it possible to see the current cursor
582 position when entering text on the console. It is recommended to
583 enable this.
584
Simon Glassfbda6832016-10-17 20:12:53 -0600585config CONSOLE_EXTRA_INFO
586 bool "Display additional board information"
587 depends on CFB_CONSOLE
588 help
589 Display additional board information strings that normally go to
590 the serial port. When this option is enabled, a board-specific
591 function video_get_info_str() is called to get the string for
592 each line of the display. The function should return the string,
593 which can be empty if there is nothing to display for that line.
594
Simon Glassb87ca802016-10-17 20:12:57 -0600595config CONSOLE_SCROLL_LINES
596 int "Number of lines to scroll the console by"
597 depends on CFB_CONSOLE || DM_VIDEO || LCD
598 default 1
599 help
600 When the console need to be scrolled, this is the number of
601 lines to scroll by. It defaults to 1. Increasing this makes the
602 console jump but can help speed up operation when scrolling
603 is slow.
604
Simon Glass002f9672016-10-17 20:12:44 -0600605config SYS_CONSOLE_BG_COL
606 hex "Background colour"
Bin Mengc674e002017-08-03 21:56:50 -0700607 depends on CFB_CONSOLE
Simon Glass002f9672016-10-17 20:12:44 -0600608 default 0x00
609 help
610 Defines the background colour for the console. The value is from
611 0x00 to 0xff and the meaning depends on the graphics card.
612 Typically, 0x00 means black and 0xff means white. Do not set
613 the background and foreground to the same colour or you will see
614 nothing.
615
616config SYS_CONSOLE_FG_COL
617 hex "Foreground colour"
Bin Mengc674e002017-08-03 21:56:50 -0700618 depends on CFB_CONSOLE
Simon Glass002f9672016-10-17 20:12:44 -0600619 default 0xa0
620 help
621 Defines the foreground colour for the console. The value is from
622 0x00 to 0xff and the meaning depends on the graphics card.
623 Typically, 0x00 means black and 0xff means white. Do not set
624 the background and foreground to the same colour or you will see
625 nothing.
626
Simon Glassf8b19a82016-10-17 20:12:56 -0600627config LCD
628 bool "Enable legacy LCD support"
629 help
630 Define this to enable LCD support (for output to LCD display).
631 You will also need to select an LCD driver using an additional
632 CONFIG option. See the README for details. Drives which have been
633 converted to driver model will instead used CONFIG_DM_VIDEO.
634
Philipp Tomsich8517f642017-05-05 21:48:26 +0200635config VIDEO_DW_HDMI
636 bool
637 help
638 Enables the common driver code for the Designware HDMI TX
639 block found in SoCs from various vendors.
640 As this does not provide any functionality by itself (but
641 rather requires a SoC-specific glue driver to call it), it
642 can not be enabled from the configuration menu.
643
Rob Clark971d7e62017-08-03 12:47:00 -0400644config VIDEO_SIMPLE
645 bool "Simple display driver for preconfigured display"
646 help
647 Enables a simple generic display driver which utilizes the
648 simple-framebuffer devicetree bindings.
649
650 This driver assumes that the display hardware has been initialized
651 before u-boot starts, and u-boot will simply render to the pre-
652 allocated frame buffer surface.
653
Icenowy Zhengf6bdddc2017-10-26 11:14:46 +0800654config VIDEO_DT_SIMPLEFB
655 bool "Enable SimpleFB support for passing framebuffer to OS"
656 help
657 Enables the code to pass the framebuffer to the kernel as a
658 simple framebuffer in the device tree.
659 The video output is initialized by U-Boot, and kept by the
660 kernel.
661
Masahiro Yamada0b11dbf2015-07-26 02:46:26 +0900662endmenu