video: atmel: Drop pre-DM parts of video driver
[platform/kernel/u-boot.git] / drivers / video / Kconfig
index b1f8a9c..b537b36 100644 (file)
@@ -14,6 +14,17 @@ config DM_VIDEO
          option compiles in the video uclass and routes all LCD/video access
          through this.
 
+config VIDEO_LOGO
+       bool "Show the U-Boot logo on the display"
+       depends on DM_VIDEO
+       default y if !SPLASH_SCREEN
+       select VIDEO_BMP_RLE8
+       help
+         This enables showing the U-Boot logo on the display when a video
+         device is probed. It appears at the top right. The logo itself is at
+         tools/logos/u-boot_logo.bmp and looks best when the display has a
+         black background.
+
 config BACKLIGHT
        bool "Enable panel backlight uclass support"
        depends on DM_VIDEO
@@ -74,14 +85,6 @@ config BACKLIGHT_GPIO
          it understands the standard device tree
          (leds/backlight/gpio-backlight.txt)
 
-config CMD_VIDCONSOLE
-       bool "Enable vidconsole commands lcdputs and setcurs"
-       depends on DM_VIDEO
-       default y
-       help
-         Enabling this will provide 'setcurs' and 'lcdputs' commands which
-         support cursor positioning and drawing strings on video framebuffer.
-
 config VIDEO_BPP8
        bool "Support 8-bit-per-pixel displays"
        depends on DM_VIDEO
@@ -160,16 +163,6 @@ config CONSOLE_TRUETYPE
          With this option you can adjust the text size and use a variety of
          fonts. Note that this is noticeably slower than with normal console.
 
-config DM_PANEL_HX8238D
-       bool "Enable Himax HX-8238D LCD driver"
-       depends on DM_VIDEO
-       help
-         Support for HX-8238D LCD Panel
-         The  HX8238-D is a single chip controller and driver LSI that
-         integrates the power circuit.
-         It can drive a maximum 960x240 dot graphics on a-TFT panel
-         displays in 16M colors with dithering.
-
 config CONSOLE_TRUETYPE_SIZE
        int "TrueType font size"
        depends on CONSOLE_TRUETYPE
@@ -183,6 +176,21 @@ config CONSOLE_TRUETYPE_SIZE
          method to select the display's physical size, which would allow
          U-Boot to calculate the correct font size.
 
+config CONSOLE_TRUETYPE_MAX_METRICS
+       int "TrueType maximum number of font / size combinations"
+       depends on CONSOLE_TRUETYPE
+       default 10 if EXPO
+       default 1
+       help
+         This sets the number of font / size combinations which can be used by
+         the console. For simple console use a single font is enough. When
+         boot menus are in use, this may need to be increased.
+
+         Note that a separate entry is needed for each font size, even if the
+         font itself is the same. This is because the entry caches various
+         font metrics which are expensive to regenerate each time the font
+         size changes.
+
 config SYS_WHITE_ON_BLACK
        bool "Display console as white on a black background"
        default y if ARCH_AT91 || ARCH_EXYNOS || ARCH_ROCKCHIP || ARCH_TEGRA || X86 || ARCH_SUNXI
@@ -215,6 +223,16 @@ config SIMPLE_PANEL
          This turns on a simple panel driver that enables a compatible
          video panel.
 
+config PANEL_HX8238D
+       bool "Enable Himax HX-8238D LCD driver"
+       depends on PANEL
+       help
+         Support for HX-8238D LCD Panel
+         The  HX8238-D is a single chip controller and driver LSI that
+         integrates the power circuit.
+         It can drive a maximum 960x240 dot graphics on a-TFT panel
+         displays in 16M colors with dithering.
+
 source "drivers/video/fonts/Kconfig"
 
 config VIDCONSOLE_AS_LCD
@@ -250,7 +268,7 @@ config VIDEO_COREBOOT
 
 config VIDEO_EFI
        bool "Enable EFI framebuffer driver support"
-       depends on EFI_STUB
+       depends on EFI_STUB || EFI_APP
        help
          Turn on this option to enable a framebuffeer driver when U-Boot is
          loaded as a payload (see README.u-boot_on_efi) by an EFI BIOS where
@@ -410,6 +428,23 @@ config VIDEO_LCD_ANX9804
        from a parallel LCD interface and translate it on the fy into a DP
        interface for driving eDP TFT displays. It uses I2C for configuration.
 
+config ATMEL_LCD
+       bool "Atmel LCD panel support"
+       depends on DM_VIDEO && ARCH_AT91
+
+config ATMEL_LCD_BGR555
+       bool "Display in BGR555 mode"
+       help
+         Use the BGR555 output mode.  Otherwise RGB565 is used.
+
+config VIDEO_BCM2835
+       bool "Display support for BCM2835"
+       help
+         The graphics processor already sets up the display so this driver
+         simply checks the resolution and then sets up the frame buffer with
+         that same resolution (or as near as possible) and 32bpp depth, so
+         that U-Boot can access it with full colour depth.
+
 config VIDEO_LCD_ORISETECH_OTM8009A
        bool "OTM8009A DSI LCD panel support"
        depends on DM_VIDEO
@@ -452,7 +487,7 @@ config VIDEO_LCD_SSD2828_RESET
        default ""
        ---help---
        The reset pin of SSD2828 chip. This takes a string in the format
-       understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
+       understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
 
 config VIDEO_LCD_TDO_TL070WSH30
        bool "TDO TL070WSH30 DSI LCD panel support"
@@ -477,7 +512,7 @@ config VIDEO_LCD_SPI_CS
        This is one of the SPI communication pins, involved in setting up a
        working LCD configuration. The exact role of SPI may differ for
        different hardware setups. The option takes a string in the format
-       understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
+       understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
 
 config VIDEO_LCD_SPI_SCLK
        string "SPI SCLK pin for LCD related config job"
@@ -487,7 +522,7 @@ config VIDEO_LCD_SPI_SCLK
        This is one of the SPI communication pins, involved in setting up a
        working LCD configuration. The exact role of SPI may differ for
        different hardware setups. The option takes a string in the format
-       understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
+       understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
 
 config VIDEO_LCD_SPI_MOSI
        string "SPI MOSI pin for LCD related config job"
@@ -497,7 +532,7 @@ config VIDEO_LCD_SPI_MOSI
        This is one of the SPI communication pins, involved in setting up a
        working LCD configuration. The exact role of SPI may differ for
        different hardware setups. The option takes a string in the format
-       understood by 'name_to_gpio' function, e.g. PH1 for pin 1 of port H.
+       understood by 'sunxi_name_to_gpio' function, e.g. PH1 for pin 1 of port H.
 
 config VIDEO_LCD_SPI_MISO
        string "SPI MISO pin for LCD related config job (optional)"
@@ -509,7 +544,7 @@ config VIDEO_LCD_SPI_MISO
        different hardware setups. If wired up, this pin may provide additional
        useful functionality. Such as bi-directional communication with the
        hardware and LCD panel id retrieval (if the panel can report it). The
-       option takes a string in the format understood by 'name_to_gpio'
+       option takes a string in the format understood by 'sunxi_name_to_gpio'
        function, e.g. PH1 for pin 1 of port H.
 
 source "drivers/video/meson/Kconfig"
@@ -550,10 +585,11 @@ config NXP_TDA19988
 
 config ATMEL_HLCD
        bool "Enable ATMEL video support using HLCDC"
+       depends on DM_VIDEO
        help
           HLCDC supports video output to an attached LCD panel.
 
-source "drivers/video/ti/Kconfig"
+source "drivers/video/exynos/Kconfig"
 
 config LOGICORE_DP_TX
        bool "Enable Logicore DP TX driver"
@@ -590,21 +626,6 @@ config VIDEO_IVYBRIDGE_IGD
          a special tool which configures the VGA ROM, but the graphics
          resolution can be selected in U-Boot.
 
-config VIDEO_FSL_DCU_FB
-       bool "Enable Freescale Display Control Unit"
-       depends on VIDEO || DM_VIDEO
-       help
-        This enables support for Freescale Display Control Unit (DCU4)
-        module found on Freescale Vybrid and QorIQ family of SoCs.
-
-config VIDEO_FSL_DCU_MAX_FB_SIZE_MB
-       int "Freescale DCU framebuffer size"
-       depends on VIDEO_FSL_DCU_FB
-       default 4194304
-       help
-        Set maximum framebuffer size to be used for Freescale Display
-        Controller Unit (DCU4).
-
 source "drivers/video/rockchip/Kconfig"
 
 config VIDEO_ARM_MALIDP
@@ -648,6 +669,12 @@ source "drivers/video/bridge/Kconfig"
 
 source "drivers/video/imx/Kconfig"
 
+config VIDEO_MXS
+       bool "Enable video support on i.MX28/i.MX6UL/i.MX7 SoCs"
+       depends on DM_VIDEO
+       help
+         Enable framebuffer driver for i.MX28/i.MX6UL/i.MX7 processors
+
 config VIDEO_NX
        bool "Enable video support on Nexell SoC"
        depends on ARCH_S5P6818 || ARCH_S5P4418
@@ -658,11 +685,19 @@ config VIDEO_NX
 
 config VIDEO_SEPS525
        bool "Enable video support for Seps525"
-       depends on DM_VIDEO
+       depends on DM_VIDEO && DM_GPIO
        help
          Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
          Currently driver is supporting only SPI interface.
 
+config VIDEO_ZYNQMP_DPSUB
+       bool "Enable video support for ZynqMP Display Port"
+       depends on DM_VIDEO && ZYNQMP_POWER_DOMAIN
+       help
+         Enable support for Xilinx ZynqMP Display Port. Currently this file
+         is used as placeholder for driver. The main reason is to record
+         compatible string and calling power domain driver.
+
 source "drivers/video/nexell/Kconfig"
 
 config VIDEO
@@ -674,89 +709,9 @@ config VIDEO
          model. Video drivers typically provide a colour text console and
          cursor.
 
-config CFB_CONSOLE
-       bool "Enable colour frame buffer console"
-       depends on VIDEO || ARCH_OMAP2PLUS
-       default y if VIDEO
-       help
-         Enables the colour frame buffer driver. This supports colour
-         output on a bitmap display from an in-memory frame buffer.
-         Several colour devices are supported along with various options to
-         adjust the supported features. The driver is implemented in
-         cfb_console.c
-
-         The following defines are needed (cf. smiLynxEM, i8042)
-               VIDEO_FB_LITTLE_ENDIAN  graphic memory organisation
-                                       (default big endian)
-               VIDEO_HW_RECTFILL       graphic chip supports
-                                       rectangle fill (cf. smiLynxEM)
-               VIDEO_HW_BITBLT         graphic chip supports
-                                       bit-blit (cf. smiLynxEM)
-               VIDEO_VISIBLE_COLS      visible pixel columns (cols=pitch)
-               VIDEO_VISIBLE_ROWS      visible pixel rows
-               VIDEO_PIXEL_SIZE        bytes per pixel
-               VIDEO_DATA_FORMAT       graphic data format
-                                       (0-5, cf. cfb_console.c)
-               VIDEO_FB_ADRS           framebuffer address
-               VIDEO_KBD_INIT_FCT      keyboard int fct (i.e. rx51_kp_init())
-               VIDEO_TSTC_FCT          test char fct (i.e. rx51_kp_tstc)
-               VIDEO_GETC_FCT          get char fct (i.e. rx51_kp_getc)
-               CONFIG_VIDEO_LOGO       display Linux logo in upper left corner
-               CONFIG_VIDEO_BMP_LOGO   use bmp_logo.h instead of linux_logo.h
-                                       for logo. Requires CONFIG_VIDEO_LOGO
-               CONFIG_CONSOLE_EXTRA_INFO
-                                       additional board info beside
-                                       the logo
-               CONFIG_HIDE_LOGO_VERSION
-                                       do not display bootloader
-                                       version string
-
-         When CONFIG_CFB_CONSOLE is defined, the video console is the
-         default console. The serial console can be forced by setting the
-         environment 'console=serial'.
-
-config CFB_CONSOLE_ANSI
-       bool "Support ANSI escape sequences"
-       depends on CFB_CONSOLE
-       help
-         This allows the colour buffer frame buffer driver to support
-         a limited number of ANSI escape sequences (cursor control,
-         erase functions and limited graphics rendition control). Normal
-         output from U-Boot will pass through this filter.
-
-config VGA_AS_SINGLE_DEVICE
-       bool "Set the video as an output-only device"
-       depends on CFB_CONSOLE
-       default y
-       help
-         If enable the framebuffer device will be initialized as an
-         output-only device. The Keyboard driver will not be set up. This
-         may be used if you have no keyboard device, or more than one
-         (USB Keyboard, AT Keyboard).
-
-config VIDEO_SW_CURSOR
-       bool "Enable a software cursor"
-       depends on CFB_CONSOLE
-       default y if CFB_CONSOLE
-       help
-         This draws a cursor after the last character. No blinking is
-         provided. This makes it possible to see the current cursor
-         position when entering text on the console. It is recommended to
-         enable this.
-
-config CONSOLE_EXTRA_INFO
-       bool "Display additional board information"
-       depends on CFB_CONSOLE
-       help
-         Display additional board information strings that normally go to
-         the serial port. When this option is enabled, a board-specific
-         function video_get_info_str() is called to get the string for
-         each line of the display. The function should return the string,
-         which can be empty if there is nothing to display for that line.
-
 config CONSOLE_SCROLL_LINES
        int "Number of lines to scroll the console by"
-       depends on CFB_CONSOLE || DM_VIDEO || LCD
+       depends on DM_VIDEO || LCD
        default 1
        help
          When the console need to be scrolled, this is the number of
@@ -764,28 +719,6 @@ config CONSOLE_SCROLL_LINES
          console jump but can help speed up operation when scrolling
          is slow.
 
-config SYS_CONSOLE_BG_COL
-       hex "Background colour"
-       depends on CFB_CONSOLE
-       default 0x00
-       help
-         Defines the background colour for the console. The value is from
-         0x00 to 0xff and the meaning depends on the graphics card.
-         Typically, 0x00 means black and 0xff means white. Do not set
-         the background and foreground to the same colour or you will see
-         nothing.
-
-config SYS_CONSOLE_FG_COL
-       hex "Foreground colour"
-       depends on CFB_CONSOLE
-       default 0xa0
-       help
-         Defines the foreground colour for the console. The value is from
-         0x00 to 0xff and the meaning depends on the graphics card.
-         Typically, 0x00 means black and 0xff means white. Do not set
-         the background and foreground to the same colour or you will see
-         nothing.
-
 config LCD
        bool "Enable legacy LCD support"
        help
@@ -892,9 +825,10 @@ config SPLASH_SCREEN
          image data before it is processed and sent to the frame buffer by
          U-Boot. Define your own version to use this feature.
 
+if SPLASH_SCREEN
+
 config SPLASHIMAGE_GUARD
        bool "Support unaligned BMP images"
-       depends on SPLASH_SCREEN
        help
          If this option is set, then U-Boot will prevent the environment
          variable "splashimage" from being set to a problematic address
@@ -908,7 +842,6 @@ config SPLASHIMAGE_GUARD
 
 config SPLASH_SCREEN_ALIGN
        bool "Allow positioning the splash image anywhere on the display"
-       depends on SPLASH_SCREEN || CMD_BMP
        help
          If this option is set the splash image can be freely positioned
          on the screen. Environment variable "splashpos" specifies the
@@ -928,9 +861,17 @@ config SPLASH_SCREEN_ALIGN
                => vertically centered image
                   at x = dspWidth - bmpWidth - 9
 
+config HIDE_LOGO_VERSION
+       bool "Hide the version information on the splash screen"
+       help
+         Normally the U-Boot version string is shown on the display when the
+         splash screen is enabled. This information is not otherwise visible
+         since video starts up after U-Boot has displayed the initial banner.
+
+         Enable this option to hide this information.
+
 config SPLASH_SOURCE
        bool "Control the source of the splash image"
-       depends on SPLASH_SCREEN
        help
          Use the splash_source.c library. This library provides facilities to
          declare board specific splash image locations, routines for loading
@@ -961,6 +902,8 @@ config SPLASH_SOURCE
          In case the environment variable "splashfile" is not defined the
          default name 'splash.bmp' will be used.
 
+endif # SPLASH_SCREEN
+
 config VIDEO_BMP_GZIP
        bool "Gzip compressed BMP image support"
        depends on CMD_BMP || SPLASH_SCREEN
@@ -969,9 +912,17 @@ config VIDEO_BMP_GZIP
          images, gzipped BMP images can be displayed via the
          splashscreen support or the bmp command.
 
+config VIDEO_LOGO_MAX_SIZE
+       hex "Maximum size of the bitmap logo in bytes"
+       default 0x100000
+       help
+         Sets the maximum uncompressed size of the logo. This is needed when
+         decompressing a BMP file using the gzip algorithm, since it cannot
+         read the size from the bitmap header.
+
 config VIDEO_BMP_RLE8
        bool "Run length encoded BMP image (RLE8) support"
-       depends on DM_VIDEO || CFB_CONSOLE
+       depends on DM_VIDEO
        help
          If this option is set, the 8-bit RLE compressed BMP images
          is supported.
@@ -994,10 +945,4 @@ config BMP_32BPP
        help
          Support display of bitmaps file with 32-bit-per-pixel.
 
-config VIDEO_VCXK
-       bool "Enable VCXK video controller driver support"
-       help
-         This enables VCXK driver which can be used with VC2K, VC4K
-         and VC8K devices on various boards from BuS Elektronik GmbH.
-
 endmenu