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