Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86
[platform/kernel/u-boot.git] / drivers / video / Kconfig
1 #
2 # Video configuration
3 #
4
5 menu "Graphics support"
6
7 config 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
17 config BACKLIGHT
18         bool "Enable panel backlight uclass support"
19         depends on DM_VIDEO
20         default y
21         help
22           This provides backlight uclass driver that enables basic panel
23           backlight support.
24
25 config VIDEO_PCI_DEFAULT_FB_SIZE
26         hex "Default framebuffer size to use if no drivers request it"
27         depends on DM_VIDEO
28         default 0x1000000 if X86 && PCI
29         default 0 if !(X86 && PCI)
30         help
31           Generally, video drivers request the amount of memory they need for
32           the frame buffer when they are bound, by setting the size field in
33           struct video_uc_platdata. That memory is then reserved for use after
34           relocation. But PCI drivers cannot be bound before relocation unless
35           they are mentioned in the devicetree.
36
37           With this value set appropriately, it is possible for PCI video
38           devices to have a framebuffer allocated by U-Boot.
39
40           Note: the framebuffer needs to be large enough to store all pixels at
41           maximum resolution. For example, at 1920 x 1200 with 32 bits per
42           pixel, 2560 * 1600 * 32 / 8 = 0xfa0000 bytes are needed.
43
44 config VIDEO_COPY
45         bool "Enable copying the frame buffer to a hardware copy"
46         depends on DM_VIDEO
47         help
48           On some machines (e.g. x86), reading from the frame buffer is very
49           slow because it is uncached. To improve performance, this feature
50           allows the frame buffer to be kept in cached memory (allocated by
51           U-Boot) and then copied to the hardware frame-buffer as needed.
52
53           To use this, your video driver must set @copy_base in
54           struct video_uc_platdata.
55
56 config BACKLIGHT_PWM
57         bool "Generic PWM based Backlight Driver"
58         depends on BACKLIGHT && DM_PWM
59         default y
60         help
61           If you have a LCD backlight adjustable by PWM, say Y to enable
62           this driver.
63           This driver can be use with "simple-panel" and
64           it understands the standard device tree
65           (leds/backlight/pwm-backlight.txt)
66
67 config BACKLIGHT_GPIO
68         bool "Generic GPIO based Backlight Driver"
69         depends on BACKLIGHT
70         help
71           If you have a LCD backlight adjustable by GPIO, say Y to enable
72           this driver.
73           This driver can be used with "simple-panel" and
74           it understands the standard device tree
75           (leds/backlight/gpio-backlight.txt)
76
77 config CMD_VIDCONSOLE
78         bool "Enable vidconsole commands lcdputs and setcurs"
79         depends on DM_VIDEO
80         default y
81         help
82           Enabling this will provide 'setcurs' and 'lcdputs' commands which
83           support cursor positioning and drawing strings on video framebuffer.
84
85 config VIDEO_BPP8
86         bool "Support 8-bit-per-pixel displays"
87         depends on DM_VIDEO
88         default y
89         help
90           Support drawing text and bitmaps onto a 8-bit-per-pixel display.
91           Enabling this will include code to support this display. Without
92           this option, such displays will not be supported and console output
93           will be empty.
94
95 config VIDEO_BPP16
96         bool "Support 16-bit-per-pixel displays"
97         depends on DM_VIDEO
98         default y
99         help
100           Support drawing text and bitmaps onto a 16-bit-per-pixel display.
101           Enabling this will include code to support this display. Without
102           this option, such displays will not be supported and console output
103           will be empty.
104
105 config VIDEO_BPP32
106         bool "Support 32-bit-per-pixel displays"
107         depends on DM_VIDEO
108         default y
109         help
110           Support drawing text and bitmaps onto a 32-bit-per-pixel display.
111           Enabling this will include code to support this display. Without
112           this option, such displays will not be supported and console output
113           will be empty.
114
115 config VIDEO_ANSI
116         bool "Support ANSI escape sequences in video console"
117         depends on DM_VIDEO
118         default y
119         help
120           Enable ANSI escape sequence decoding for a more fully functional
121           console.
122
123 config VIDEO_MIPI_DSI
124         bool "Support MIPI DSI interface"
125         depends on DM_VIDEO
126         help
127           Support MIPI DSI interface for driving a MIPI compatible device.
128           The MIPI Display Serial Interface (MIPI DSI) defines a high-speed
129           serial interface between a host processor and a display module.
130
131 config CONSOLE_NORMAL
132         bool "Support a simple text console"
133         depends on DM_VIDEO
134         default y if DM_VIDEO
135         help
136           Support drawing text on the frame buffer console so that it can be
137           used as a console. Rotation is not supported by this driver (see
138           CONFIG_CONSOLE_ROTATION for that). A built-in 8x16 font is used
139           for the display.
140
141 config CONSOLE_ROTATION
142         bool "Support rotated displays"
143         depends on DM_VIDEO
144         help
145           Sometimes, for example if the display is mounted in portrait
146           mode or even if it's mounted landscape but rotated by 180degree,
147           we need to rotate our content of the display relative to the
148           framebuffer, so that user can read the messages which are
149           printed out. Enable this option to include a text driver which can
150           support this. The rotation is set by the 'rot' parameter in
151           struct video_priv: 0=unrotated, 1=90 degrees clockwise, 2=180
152           degrees, 3=270 degrees.
153
154 config CONSOLE_TRUETYPE
155         bool "Support a console that uses TrueType fonts"
156         depends on DM_VIDEO
157         help
158           TrueTrype fonts can provide outline-drawing capability rather than
159           needing to provide a bitmap for each font and size that is needed.
160           With this option you can adjust the text size and use a variety of
161           fonts. Note that this is noticeably slower than with normal console.
162
163 config CONSOLE_TRUETYPE_SIZE
164         int "TrueType font size"
165         depends on CONSOLE_TRUETYPE
166         default 18
167         help
168           This sets the font size for the console. The size is measured in
169           pixels and is the nominal height of a character. Note that fonts
170           are commonly measured in 'points', being 1/72 inch (about 3.52mm).
171           However that measurement depends on the size of your display and
172           there is no standard display density. At present there is not a
173           method to select the display's physical size, which would allow
174           U-Boot to calculate the correct font size.
175
176 config SYS_WHITE_ON_BLACK
177         bool "Display console as white on a black background"
178         default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
179         help
180          Normally the display is black on a white background, Enable this
181          option to invert this, i.e. white on a black background. This can be
182          better in low-light situations or to reduce eye strain in some
183          cases.
184
185 config NO_FB_CLEAR
186         bool "Skip framebuffer clear"
187         help
188           If firmware (whatever loads u-boot) has already put a splash image
189           on screen, you might want to preserve it until whatever u-boot
190           loads takes over the screen.  This, for example, can be used to
191           keep splash image on screen until grub graphical boot menu starts.
192
193 config PANEL
194         bool "Enable panel uclass support"
195         depends on DM_VIDEO
196         default y
197         help
198           This provides panel uclass driver that enables basic panel support.
199
200 config SIMPLE_PANEL
201         bool "Enable simple panel support"
202         depends on PANEL
203         default y
204         help
205           This turns on a simple panel driver that enables a compatible
206           video panel.
207
208 source "drivers/video/fonts/Kconfig"
209
210 config VIDCONSOLE_AS_LCD
211         bool "Use 'vidconsole' when CONFIG_VIDCONSOLE_AS_NAME string is seen in stdout"
212         depends on DM_VIDEO
213         help
214           This is a work-around for boards which have 'lcd' or 'vga' in their
215           stdout environment variable, but have moved to use driver model for
216           video. In this case the console will no-longer work. While it is
217           possible to update the environment, the breakage may be confusing for
218           users. This option will be removed around the end of 2020.
219
220 config VIDCONSOLE_AS_NAME
221         string "Use 'vidconsole' when string defined here is seen in stdout"
222         depends on VIDCONSOLE_AS_LCD
223         default "lcd" if LCD || TEGRA_COMMON
224         default "vga" if !LCD
225         help
226           This is a work-around for boards which have 'lcd' or 'vga' in their
227           stdout environment variable, but have moved to use driver model for
228           video. In this case the console will no-longer work. While it is
229           possible to update the environment, the breakage may be confusing for
230           users. This option will be removed around the end of 2020.
231
232 config VIDEO_COREBOOT
233         bool "Enable coreboot framebuffer driver support"
234         depends on X86 && SYS_COREBOOT
235         help
236           Turn on this option to enable a framebuffer driver when U-Boot is
237           loaded by coreboot where the graphics device is configured by
238           coreboot already. This can in principle be used with any platform
239           that coreboot supports.
240
241 config VIDEO_EFI
242         bool "Enable EFI framebuffer driver support"
243         depends on EFI_STUB
244         help
245           Turn on this option to enable a framebuffeer driver when U-Boot is
246           loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
247           the graphics device is configured by the EFI BIOS already. This can
248           in principle be used with any platform that has an EFI BIOS.
249
250 config VIDEO_VESA
251         bool "Enable VESA video driver support"
252         default n
253         help
254           Turn on this option to enable a very simple driver which uses vesa
255           to discover the video mode and then provides a frame buffer for use
256           by U-Boot. This can in principle be used with any platform that
257           supports PCI and video cards that support VESA BIOS Extension (VBE).
258
259 config FRAMEBUFFER_SET_VESA_MODE
260         bool "Set framebuffer graphics resolution"
261         depends on VIDEO_VESA || VIDEO_BROADWELL_IGD
262         help
263           Set VESA/native framebuffer mode (needed for bootsplash and graphical
264           framebuffer console)
265
266 choice
267         prompt "framebuffer graphics resolution"
268         default FRAMEBUFFER_VESA_MODE_118
269         depends on FRAMEBUFFER_SET_VESA_MODE
270         help
271           This option sets the resolution used for the U-Boot framebuffer (and
272           bootsplash screen).
273
274 config FRAMEBUFFER_VESA_MODE_100
275         bool "640x400 256-color"
276
277 config FRAMEBUFFER_VESA_MODE_101
278         bool "640x480 256-color"
279
280 config FRAMEBUFFER_VESA_MODE_102
281         bool "800x600 16-color"
282
283 config FRAMEBUFFER_VESA_MODE_103
284         bool "800x600 256-color"
285
286 config FRAMEBUFFER_VESA_MODE_104
287         bool "1024x768 16-color"
288
289 config FRAMEBUFFER_VESA_MODE_105
290         bool "1024x768 256-color"
291
292 config FRAMEBUFFER_VESA_MODE_106
293         bool "1280x1024 16-color"
294
295 config FRAMEBUFFER_VESA_MODE_107
296         bool "1280x1024 256-color"
297
298 config FRAMEBUFFER_VESA_MODE_108
299         bool "80x60 text"
300
301 config FRAMEBUFFER_VESA_MODE_109
302         bool "132x25 text"
303
304 config FRAMEBUFFER_VESA_MODE_10A
305         bool "132x43 text"
306
307 config FRAMEBUFFER_VESA_MODE_10B
308         bool "132x50 text"
309
310 config FRAMEBUFFER_VESA_MODE_10C
311         bool "132x60 text"
312
313 config FRAMEBUFFER_VESA_MODE_10D
314         bool "320x200 32k-color (1:5:5:5)"
315
316 config FRAMEBUFFER_VESA_MODE_10E
317         bool "320x200 64k-color (5:6:5)"
318
319 config FRAMEBUFFER_VESA_MODE_10F
320         bool "320x200 16.8M-color (8:8:8)"
321
322 config FRAMEBUFFER_VESA_MODE_110
323         bool "640x480 32k-color (1:5:5:5)"
324
325 config FRAMEBUFFER_VESA_MODE_111
326         bool "640x480 64k-color (5:6:5)"
327
328 config FRAMEBUFFER_VESA_MODE_112
329         bool "640x480 16.8M-color (8:8:8)"
330
331 config FRAMEBUFFER_VESA_MODE_113
332         bool "800x600 32k-color (1:5:5:5)"
333
334 config FRAMEBUFFER_VESA_MODE_114
335         bool "800x600 64k-color (5:6:5)"
336
337 config FRAMEBUFFER_VESA_MODE_115
338         bool "800x600 16.8M-color (8:8:8)"
339
340 config FRAMEBUFFER_VESA_MODE_116
341         bool "1024x768 32k-color (1:5:5:5)"
342
343 config FRAMEBUFFER_VESA_MODE_117
344         bool "1024x768 64k-color (5:6:5)"
345
346 config FRAMEBUFFER_VESA_MODE_118
347         bool "1024x768 16.8M-color (8:8:8)"
348
349 config FRAMEBUFFER_VESA_MODE_119
350         bool "1280x1024 32k-color (1:5:5:5)"
351
352 config FRAMEBUFFER_VESA_MODE_11A
353         bool "1280x1024 64k-color (5:6:5)"
354
355 config FRAMEBUFFER_VESA_MODE_11B
356         bool "1280x1024 16.8M-color (8:8:8)"
357
358 config FRAMEBUFFER_VESA_MODE_USER
359         bool "Manually select VESA mode"
360
361 endchoice
362
363 # Map the config names to an integer (KB).
364 config FRAMEBUFFER_VESA_MODE
365         prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
366         hex
367         default 0x100 if FRAMEBUFFER_VESA_MODE_100
368         default 0x101 if FRAMEBUFFER_VESA_MODE_101
369         default 0x102 if FRAMEBUFFER_VESA_MODE_102
370         default 0x103 if FRAMEBUFFER_VESA_MODE_103
371         default 0x104 if FRAMEBUFFER_VESA_MODE_104
372         default 0x105 if FRAMEBUFFER_VESA_MODE_105
373         default 0x106 if FRAMEBUFFER_VESA_MODE_106
374         default 0x107 if FRAMEBUFFER_VESA_MODE_107
375         default 0x108 if FRAMEBUFFER_VESA_MODE_108
376         default 0x109 if FRAMEBUFFER_VESA_MODE_109
377         default 0x10A if FRAMEBUFFER_VESA_MODE_10A
378         default 0x10B if FRAMEBUFFER_VESA_MODE_10B
379         default 0x10C if FRAMEBUFFER_VESA_MODE_10C
380         default 0x10D if FRAMEBUFFER_VESA_MODE_10D
381         default 0x10E if FRAMEBUFFER_VESA_MODE_10E
382         default 0x10F if FRAMEBUFFER_VESA_MODE_10F
383         default 0x110 if FRAMEBUFFER_VESA_MODE_110
384         default 0x111 if FRAMEBUFFER_VESA_MODE_111
385         default 0x112 if FRAMEBUFFER_VESA_MODE_112
386         default 0x113 if FRAMEBUFFER_VESA_MODE_113
387         default 0x114 if FRAMEBUFFER_VESA_MODE_114
388         default 0x115 if FRAMEBUFFER_VESA_MODE_115
389         default 0x116 if FRAMEBUFFER_VESA_MODE_116
390         default 0x117 if FRAMEBUFFER_VESA_MODE_117
391         default 0x118 if FRAMEBUFFER_VESA_MODE_118
392         default 0x119 if FRAMEBUFFER_VESA_MODE_119
393         default 0x11A if FRAMEBUFFER_VESA_MODE_11A
394         default 0x11B if FRAMEBUFFER_VESA_MODE_11B
395         default 0x117 if FRAMEBUFFER_VESA_MODE_USER
396
397 config VIDEO_LCD_ANX9804
398         bool "ANX9804 bridge chip"
399         default n
400         ---help---
401         Support for the ANX9804 bridge chip, which can take pixel data coming
402         from a parallel LCD interface and translate it on the fy into a DP
403         interface for driving eDP TFT displays. It uses I2C for configuration.
404
405 config VIDEO_LCD_ORISETECH_OTM8009A
406         bool "OTM8009A DSI LCD panel support"
407         depends on DM_VIDEO
408         select VIDEO_MIPI_DSI
409         default n
410         help
411         Say Y here if you want to enable support for Orise Technology
412         otm8009a 480x800 dsi 2dl panel.
413
414 config VIDEO_LCD_RAYDIUM_RM68200
415         bool "RM68200 DSI LCD panel support"
416         depends on DM_VIDEO
417         select VIDEO_MIPI_DSI
418         default n
419         help
420         Say Y here if you want to enable support for Raydium RM68200
421         720x1280 DSI video mode panel.
422
423 config VIDEO_LCD_SSD2828
424         bool "SSD2828 bridge chip"
425         default n
426         ---help---
427         Support for the SSD2828 bridge chip, which can take pixel data coming
428         from a parallel LCD interface and translate it on the fly into MIPI DSI
429         interface for driving a MIPI compatible LCD panel. It uses SPI for
430         configuration.
431
432 config VIDEO_LCD_SSD2828_TX_CLK
433         int "SSD2828 TX_CLK frequency (in MHz)"
434         depends on VIDEO_LCD_SSD2828
435         default 0
436         ---help---
437         The frequency of the crystal, which is clocking SSD2828. It may be
438         anything in the 8MHz-30MHz range and the exact value should be
439         retrieved from the board schematics. Or in the case of Allwinner
440         hardware, it can be usually found as 'lcd_xtal_freq' variable in
441         FEX files. It can be also set to 0 for selecting PCLK from the
442         parallel LCD interface instead of TX_CLK as the PLL clock source.
443
444 config VIDEO_LCD_SSD2828_RESET
445         string "RESET pin of SSD2828"
446         depends on VIDEO_LCD_SSD2828
447         default ""
448         ---help---
449         The reset pin of SSD2828 chip. This takes a string in the format
450         understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
451
452 config VIDEO_LCD_HITACHI_TX18D42VM
453         bool "Hitachi tx18d42vm LVDS LCD panel support"
454         depends on VIDEO
455         default n
456         ---help---
457         Support for Hitachi tx18d42vm LVDS LCD panels, these panels have a
458         lcd controller which needs to be initialized over SPI, once that is
459         done they work like a regular LVDS panel.
460
461 config VIDEO_LCD_SPI_CS
462         string "SPI CS pin for LCD related config job"
463         depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
464         default ""
465         ---help---
466         This is one of the SPI communication pins, involved in setting up a
467         working LCD configuration. The exact role of SPI may differ for
468         different hardware setups. The option takes a string in the format
469         understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
470
471 config VIDEO_LCD_SPI_SCLK
472         string "SPI SCLK pin for LCD related config job"
473         depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
474         default ""
475         ---help---
476         This is one of the SPI communication pins, involved in setting up a
477         working LCD configuration. The exact role of SPI may differ for
478         different hardware setups. The option takes a string in the format
479         understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
480
481 config VIDEO_LCD_SPI_MOSI
482         string "SPI MOSI pin for LCD related config job"
483         depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
484         default ""
485         ---help---
486         This is one of the SPI communication pins, involved in setting up a
487         working LCD configuration. The exact role of SPI may differ for
488         different hardware setups. The option takes a string in the format
489         understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
490
491 config VIDEO_LCD_SPI_MISO
492         string "SPI MISO pin for LCD related config job (optional)"
493         depends on VIDEO_LCD_SSD2828
494         default ""
495         ---help---
496         This is one of the SPI communication pins, involved in setting up a
497         working LCD configuration. The exact role of SPI may differ for
498         different hardware setups. If wired up, this pin may provide additional
499         useful functionality. Such as bi-directional communication with the
500         hardware and LCD panel id retrieval (if the panel can report it). The
501         option takes a string in the format understood by 'name_to_gpio'
502         function, e.g. PH1 for pin 1 of port H.
503
504 source "drivers/video/meson/Kconfig"
505
506 config VIDEO_MVEBU
507         bool "Armada XP LCD controller"
508         default n
509         ---help---
510         Support for the LCD controller integrated in the Marvell
511         Armada XP SoC.
512
513 config VIDEO_OMAP3
514         bool "Enable OMAP3+ DSS Support"
515         depends on ARCH_OMAP2PLUS
516         help
517           This enables the Display subsystem (DSS) on OMAP3+ boards.
518
519 config I2C_EDID
520         bool "Enable EDID library"
521         default n
522         help
523            This enables library for accessing EDID data from an LCD panel.
524
525 config DISPLAY
526         bool "Enable Display support"
527         depends on DM
528         default n
529         select I2C_EDID
530         help
531            This supports drivers that provide a display, such as eDP (Embedded
532            DisplayPort) and HDMI (High Definition Multimedia Interface).
533            The devices provide a simple interface to start up the display,
534            read display information and enable it.
535
536 config NXP_TDA19988
537         bool "Enable NXP TDA19988 support"
538         depends on DISPLAY
539         default n
540         help
541           This enables support for the NXP TDA19988 HDMI encoder. This encoder
542           will convert RGB data streams into HDMI-encoded signals.
543
544 config ATMEL_HLCD
545         bool "Enable ATMEL video support using HLCDC"
546         help
547            HLCDC supports video output to an attached LCD panel.
548
549 config AM335X_LCD
550         bool "Enable AM335x video support"
551         help
552            Supports video output to an attached LCD panel.
553
554 config LOGICORE_DP_TX
555         bool "Enable Logicore DP TX driver"
556         depends on DISPLAY
557         help
558           Enable the driver for the transmitter part of the Xilinx LogiCORE
559           DisplayPort, a IP core for Xilinx FPGAs that implements a DisplayPort
560           video interface as defined by VESA DisplayPort v1.2.
561
562           Note that this is a pure transmitter device, and has no display
563           capabilities by itself.
564
565 config VIDEO_BROADWELL_IGD
566         bool "Enable Intel Broadwell integrated graphics device"
567         depends on X86
568         help
569           This enables support for integrated graphics on Intel broadwell
570           devices. Initialisation is mostly performed by a VGA boot ROM, with
571           some setup handled by U-Boot itself. The graphics adaptor works as
572           a VESA device and supports LCD panels, eDP and LVDS outputs.
573           Configuration of most aspects of device operation is performed using
574           a special tool which configures the VGA ROM, but the graphics
575           resolution can be selected in U-Boot.
576
577 config VIDEO_IVYBRIDGE_IGD
578         bool "Enable Intel Ivybridge integration graphics support"
579         depends on X86
580         help
581           This enables support for integrated graphics on Intel ivybridge
582           devices. Initialisation is mostly performed by a VGA boot ROM, with
583           some setup handled by U-Boot itself. The graphics adaptor works as
584           a VESA device and supports LCD panels, eDP and LVDS outputs.
585           Configuration of most aspects of device operation is performed using
586           a special tool which configures the VGA ROM, but the graphics
587           resolution can be selected in U-Boot.
588
589 config VIDEO_FSL_DCU_FB
590         bool "Enable Freescale Display Control Unit"
591         depends on VIDEO || DM_VIDEO
592         help
593          This enables support for Freescale Display Control Unit (DCU4)
594          module found on Freescale Vybrid and QorIQ family of SoCs.
595
596 config VIDEO_FSL_DCU_MAX_FB_SIZE_MB
597         int "Freescale DCU framebuffer size"
598         depends on VIDEO_FSL_DCU_FB
599         default 4194304
600         help
601          Set maximum framebuffer size to be used for Freescale Display
602          Controller Unit (DCU4).
603
604 source "drivers/video/rockchip/Kconfig"
605
606 config VIDEO_ARM_MALIDP
607         bool "Enable Arm Mali Display Processor support"
608         depends on DM_VIDEO && OF_CONTROL
609         select VEXPRESS_CLK
610         help
611           This enables support for Arm Ltd Mali Display Processors from
612           the DP500, DP550 and DP650 family.
613
614 config VIDEO_SANDBOX_SDL
615         bool "Enable sandbox video console using SDL"
616         depends on SANDBOX
617         help
618           When using sandbox you can enable an emulated LCD display which
619           appears as an SDL (Simple DirectMedia Layer) window. This is a
620           console device and can display stdout output. Within U-Boot is is
621           a normal bitmap display and can display images as well as text.
622
623 source "drivers/video/stm32/Kconfig"
624
625 config VIDEO_TEGRA20
626         bool "Enable LCD support on Tegra20"
627         depends on OF_CONTROL
628         help
629            Tegra20 supports video output to an attached LCD panel as well as
630            other options such as HDMI. Only the LCD is supported in U-Boot.
631            This option enables this support which can be used on devices which
632            have an LCD display connected.
633
634 config VIDEO_TEGRA124
635         bool "Enable video support on Tegra124"
636         depends on DM_VIDEO
637         help
638            Tegra124 supports many video output options including eDP and
639            HDMI. At present only eDP is supported by U-Boot. This option
640            enables this support which can be used on devices which
641            have an eDP display connected.
642
643 source "drivers/video/bridge/Kconfig"
644
645 source "drivers/video/imx/Kconfig"
646
647 config VIDEO
648         bool "Enable legacy video support"
649         depends on !DM_VIDEO
650         help
651           Define this for video support, without using driver model. Some
652           drivers use this because they are not yet converted to driver
653           model. Video drivers typically provide a colour text console and
654           cursor.
655
656 config CFB_CONSOLE
657         bool "Enable colour frame buffer console"
658         depends on VIDEO
659         default y if VIDEO
660         help
661           Enables the colour frame buffer driver. This supports colour
662           output on a bitmap display from an in-memory frame buffer.
663           Several colour devices are supported along with various options to
664           adjust the supported features. The driver is implemented in
665           cfb_console.c
666
667           The following defines are needed (cf. smiLynxEM, i8042)
668                 VIDEO_FB_LITTLE_ENDIAN  graphic memory organisation
669                                         (default big endian)
670                 VIDEO_HW_RECTFILL       graphic chip supports
671                                         rectangle fill (cf. smiLynxEM)
672                 VIDEO_HW_BITBLT         graphic chip supports
673                                         bit-blit (cf. smiLynxEM)
674                 VIDEO_VISIBLE_COLS      visible pixel columns (cols=pitch)
675                 VIDEO_VISIBLE_ROWS      visible pixel rows
676                 VIDEO_PIXEL_SIZE        bytes per pixel
677                 VIDEO_DATA_FORMAT       graphic data format
678                                         (0-5, cf. cfb_console.c)
679                 VIDEO_FB_ADRS           framebuffer address
680                 VIDEO_KBD_INIT_FCT      keyboard int fct (i.e. rx51_kp_init())
681                 VIDEO_TSTC_FCT          test char fct (i.e. rx51_kp_tstc)
682                 VIDEO_GETC_FCT          get char fct (i.e. rx51_kp_getc)
683                 CONFIG_VIDEO_LOGO       display Linux logo in upper left corner
684                 CONFIG_VIDEO_BMP_LOGO   use bmp_logo.h instead of linux_logo.h
685                                         for logo. Requires CONFIG_VIDEO_LOGO
686                 CONFIG_CONSOLE_EXTRA_INFO
687                                         additional board info beside
688                                         the logo
689                 CONFIG_HIDE_LOGO_VERSION
690                                         do not display bootloader
691                                         version string
692
693           When CONFIG_CFB_CONSOLE is defined, the video console is the
694           default console. The serial console can be forced by setting the
695           environment 'console=serial'.
696
697 config CFB_CONSOLE_ANSI
698         bool "Support ANSI escape sequences"
699         depends on CFB_CONSOLE
700         help
701           This allows the colour buffer frame buffer driver to support
702           a limited number of ANSI escape sequences (cursor control,
703           erase functions and limited graphics rendition control). Normal
704           output from U-Boot will pass through this filter.
705
706 config VGA_AS_SINGLE_DEVICE
707         bool "Set the video as an output-only device"
708         depends on CFB_CONSOLE
709         default y
710         help
711           If enable the framebuffer device will be initialized as an
712           output-only device. The Keyboard driver will not be set up. This
713           may be used if you have no keyboard device, or more than one
714           (USB Keyboard, AT Keyboard).
715
716 config VIDEO_SW_CURSOR
717         bool "Enable a software cursor"
718         depends on CFB_CONSOLE
719         default y if CFB_CONSOLE
720         help
721           This draws a cursor after the last character. No blinking is
722           provided. This makes it possible to see the current cursor
723           position when entering text on the console. It is recommended to
724           enable this.
725
726 config CONSOLE_EXTRA_INFO
727         bool "Display additional board information"
728         depends on CFB_CONSOLE
729         help
730           Display additional board information strings that normally go to
731           the serial port. When this option is enabled, a board-specific
732           function video_get_info_str() is called to get the string for
733           each line of the display. The function should return the string,
734           which can be empty if there is nothing to display for that line.
735
736 config CONSOLE_SCROLL_LINES
737         int "Number of lines to scroll the console by"
738         depends on CFB_CONSOLE || DM_VIDEO || LCD
739         default 1
740         help
741           When the console need to be scrolled, this is the number of
742           lines to scroll by. It defaults to 1. Increasing this makes the
743           console jump but can help speed up operation when scrolling
744           is slow.
745
746 config SYS_CONSOLE_BG_COL
747         hex "Background colour"
748         depends on CFB_CONSOLE
749         default 0x00
750         help
751           Defines the background colour for the console. The value is from
752           0x00 to 0xff and the meaning depends on the graphics card.
753           Typically, 0x00 means black and 0xff means white. Do not set
754           the background and foreground to the same colour or you will see
755           nothing.
756
757 config SYS_CONSOLE_FG_COL
758         hex "Foreground colour"
759         depends on CFB_CONSOLE
760         default 0xa0
761         help
762           Defines the foreground colour for the console. The value is from
763           0x00 to 0xff and the meaning depends on the graphics card.
764           Typically, 0x00 means black and 0xff means white. Do not set
765           the background and foreground to the same colour or you will see
766           nothing.
767
768 config LCD
769         bool "Enable legacy LCD support"
770         help
771           Define this to enable LCD support (for output to LCD display).
772           You will also need to select an LCD driver using an additional
773           CONFIG option. See the README for details. Drives which have been
774           converted to driver model will instead used CONFIG_DM_VIDEO.
775
776 config VIDEO_DW_HDMI
777         bool
778         help
779           Enables the common driver code for the Designware HDMI TX
780           block found in SoCs from various vendors.
781           As this does not provide any functionality by itself (but
782           rather requires a SoC-specific glue driver to call it), it
783           can not be enabled from the configuration menu.
784
785 config VIDEO_DSI_HOST_SANDBOX
786         bool "Enable sandbox for dsi host"
787         depends on SANDBOX
788         select VIDEO_MIPI_DSI
789         help
790           Enable support for sandbox dsi host device used for testing
791           purposes.
792           Display Serial Interface (DSI) defines a serial bus and
793           a communication protocol between the host and the device
794           (panel, bridge).
795
796 config VIDEO_DW_MIPI_DSI
797         bool
798         select VIDEO_MIPI_DSI
799         help
800           Enables the common driver code for the Synopsis Designware
801           MIPI DSI block found in SoCs from various vendors.
802           As this does not provide any functionality by itself (but
803           rather requires a SoC-specific glue driver to call it), it
804           can not be enabled from the configuration menu.
805
806 config VIDEO_SIMPLE
807         bool "Simple display driver for preconfigured display"
808         help
809           Enables a simple generic display driver which utilizes the
810           simple-framebuffer devicetree bindings.
811
812           This driver assumes that the display hardware has been initialized
813           before u-boot starts, and u-boot will simply render to the pre-
814           allocated frame buffer surface.
815
816 config VIDEO_DT_SIMPLEFB
817         bool "Enable SimpleFB support for passing framebuffer to OS"
818         help
819           Enables the code to pass the framebuffer to the kernel as a
820           simple framebuffer in the device tree.
821           The video output is initialized by U-Boot, and kept by the
822           kernel.
823
824 config OSD
825         bool "Enable OSD support"
826         depends on DM
827         default n
828         help
829            This supports drivers that provide a OSD (on-screen display), which
830            is a (usually text-oriented) graphics buffer to show information on
831            a display.
832
833 config SANDBOX_OSD
834         bool "Enable sandbox OSD"
835         depends on OSD
836         help
837           Enable support for sandbox OSD device used for testing purposes.
838
839 config IHS_VIDEO_OUT
840         bool "Enable IHS video out driver"
841         depends on OSD
842         help
843           Enable support for the gdsys Integrated Hardware Systems (IHS) video
844           out On-screen Display (OSD) used on gdsys FPGAs to control dynamic
845           textual overlays of the display outputs.
846
847 endmenu