162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Video configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_cimenu "Console display driver support"
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciconfig VGA_CONSOLE
962306a36Sopenharmony_ci	bool "VGA text console" if EXPERT || !X86
1062306a36Sopenharmony_ci	depends on !4xx && !PPC_8xx && !SPARC && !M68K && !PARISC &&  !SUPERH && \
1162306a36Sopenharmony_ci		(!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) && \
1262306a36Sopenharmony_ci		!ARM64 && !ARC && !MICROBLAZE && !OPENRISC && !S390 && !UML
1362306a36Sopenharmony_ci	select APERTURE_HELPERS if (DRM || FB || VFIO_PCI_CORE)
1462306a36Sopenharmony_ci	default y
1562306a36Sopenharmony_ci	help
1662306a36Sopenharmony_ci	  Saying Y here will allow you to use Linux in text mode through a
1762306a36Sopenharmony_ci	  display that complies with the generic VGA standard. Virtually
1862306a36Sopenharmony_ci	  everyone wants that.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci	  The program SVGATextMode can be used to utilize SVGA video cards to
2162306a36Sopenharmony_ci	  their full potential in text mode. Download it from
2262306a36Sopenharmony_ci	  <ftp://ibiblio.org/pub/Linux/utils/console/>.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci	  Say Y.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciconfig MDA_CONSOLE
2762306a36Sopenharmony_ci	depends on !M68K && !PARISC && ISA
2862306a36Sopenharmony_ci	tristate "MDA text console (dual-headed)"
2962306a36Sopenharmony_ci	help
3062306a36Sopenharmony_ci	  Say Y here if you have an old MDA or monochrome Hercules graphics
3162306a36Sopenharmony_ci	  adapter in your system acting as a second head ( = video card). You
3262306a36Sopenharmony_ci	  will then be able to use two monitors with your Linux system. Do not
3362306a36Sopenharmony_ci	  say Y here if your MDA card is the primary card in your system; the
3462306a36Sopenharmony_ci	  normal VGA driver will handle it.
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the
3762306a36Sopenharmony_ci	  module will be called mdacon.
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci	  If unsure, say N.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ciconfig SGI_NEWPORT_CONSOLE
4262306a36Sopenharmony_ci	tristate "SGI Newport Console support"
4362306a36Sopenharmony_ci	depends on SGI_IP22 && HAS_IOMEM
4462306a36Sopenharmony_ci	select FONT_SUPPORT
4562306a36Sopenharmony_ci	help
4662306a36Sopenharmony_ci	  Say Y here if you want the console on the Newport aka XL graphics
4762306a36Sopenharmony_ci	  card of your Indy.  Most people say Y here.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciconfig DUMMY_CONSOLE
5062306a36Sopenharmony_ci	bool
5162306a36Sopenharmony_ci	default y
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ciconfig DUMMY_CONSOLE_COLUMNS
5462306a36Sopenharmony_ci	int "Initial number of console screen columns"
5562306a36Sopenharmony_ci	depends on DUMMY_CONSOLE && !ARM
5662306a36Sopenharmony_ci	default 160 if PARISC
5762306a36Sopenharmony_ci	default 80
5862306a36Sopenharmony_ci	help
5962306a36Sopenharmony_ci	  On PA-RISC, the default value is 160, which should fit a 1280x1024
6062306a36Sopenharmony_ci	  monitor.
6162306a36Sopenharmony_ci	  Select 80 if you use a 640x480 resolution by default.
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ciconfig DUMMY_CONSOLE_ROWS
6462306a36Sopenharmony_ci	int "Initial number of console screen rows"
6562306a36Sopenharmony_ci	depends on DUMMY_CONSOLE && !ARM
6662306a36Sopenharmony_ci	default 64 if PARISC
6762306a36Sopenharmony_ci	default 25
6862306a36Sopenharmony_ci	help
6962306a36Sopenharmony_ci	  On PA-RISC, the default value is 64, which should fit a 1280x1024
7062306a36Sopenharmony_ci	  monitor.
7162306a36Sopenharmony_ci	  Select 25 if you use a 640x480 resolution by default.
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ciconfig FRAMEBUFFER_CONSOLE
7462306a36Sopenharmony_ci	bool "Framebuffer Console support"
7562306a36Sopenharmony_ci	depends on FB_CORE && !UML
7662306a36Sopenharmony_ci	default DRM_FBDEV_EMULATION
7762306a36Sopenharmony_ci	select VT_HW_CONSOLE_BINDING
7862306a36Sopenharmony_ci	select CRC32
7962306a36Sopenharmony_ci	select FONT_SUPPORT
8062306a36Sopenharmony_ci	help
8162306a36Sopenharmony_ci	  Low-level framebuffer-based console driver.
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ciconfig FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION
8462306a36Sopenharmony_ci	bool "Enable legacy fbcon hardware acceleration code"
8562306a36Sopenharmony_ci	depends on FRAMEBUFFER_CONSOLE
8662306a36Sopenharmony_ci	default y if PARISC
8762306a36Sopenharmony_ci	default n
8862306a36Sopenharmony_ci	help
8962306a36Sopenharmony_ci	  This option enables the fbcon (framebuffer text-based) hardware
9062306a36Sopenharmony_ci	  acceleration for graphics drivers which were written for the fbdev
9162306a36Sopenharmony_ci	  graphics interface.
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ci	  On modern machines, on mainstream machines (like x86-64) or when
9462306a36Sopenharmony_ci	  using a modern Linux distribution those fbdev drivers usually aren't used.
9562306a36Sopenharmony_ci	  So enabling this option wouldn't have any effect, which is why you want
9662306a36Sopenharmony_ci	  to disable this option on such newer machines.
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ci	  If you compile this kernel for older machines which still require the
9962306a36Sopenharmony_ci	  fbdev drivers, you may want to say Y.
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ci	  If unsure, select n.
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciconfig FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
10462306a36Sopenharmony_ci       bool "Map the console to the primary display device"
10562306a36Sopenharmony_ci       depends on FRAMEBUFFER_CONSOLE
10662306a36Sopenharmony_ci       default n
10762306a36Sopenharmony_ci	help
10862306a36Sopenharmony_ci	 If this option is selected, the framebuffer console will
10962306a36Sopenharmony_ci	 automatically select the primary display device (if the architecture
11062306a36Sopenharmony_ci	 supports this feature).  Otherwise, the framebuffer console will
11162306a36Sopenharmony_ci	 always select the first framebuffer driver that is loaded. The latter
11262306a36Sopenharmony_ci	 is the default behavior.
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ci	 You can always override the automatic selection of the primary device
11562306a36Sopenharmony_ci	 by using the fbcon=map: boot option.
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ci	 If unsure, select n.
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciconfig FRAMEBUFFER_CONSOLE_ROTATION
12062306a36Sopenharmony_ci       bool "Framebuffer Console Rotation"
12162306a36Sopenharmony_ci       depends on FRAMEBUFFER_CONSOLE
12262306a36Sopenharmony_ci       help
12362306a36Sopenharmony_ci	 Enable display rotation for the framebuffer console.  This is done
12462306a36Sopenharmony_ci	 in software and may be significantly slower than a normally oriented
12562306a36Sopenharmony_ci	 display.  Note that the rotation is done at the console level only
12662306a36Sopenharmony_ci	 such that other users of the framebuffer will remain normally
12762306a36Sopenharmony_ci	 oriented.
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ciconfig FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER
13062306a36Sopenharmony_ci	bool "Framebuffer Console Deferred Takeover"
13162306a36Sopenharmony_ci	depends on FB=y && FRAMEBUFFER_CONSOLE && DUMMY_CONSOLE
13262306a36Sopenharmony_ci	help
13362306a36Sopenharmony_ci	  If enabled this defers the framebuffer console taking over the
13462306a36Sopenharmony_ci	  console from the dummy console until the first text is displayed on
13562306a36Sopenharmony_ci	  the console. This is useful in combination with the "quiet" kernel
13662306a36Sopenharmony_ci	  commandline option to keep the framebuffer contents initially put up
13762306a36Sopenharmony_ci	  by the firmware in place, rather then replacing the contents with a
13862306a36Sopenharmony_ci	  black screen as soon as fbcon loads.
13962306a36Sopenharmony_ci
14062306a36Sopenharmony_ciconfig STI_CONSOLE
14162306a36Sopenharmony_ci	bool "STI text console"
14262306a36Sopenharmony_ci	depends on PARISC && HAS_IOMEM
14362306a36Sopenharmony_ci	select FONT_SUPPORT
14462306a36Sopenharmony_ci	select CRC32
14562306a36Sopenharmony_ci	select STI_CORE
14662306a36Sopenharmony_ci	default y
14762306a36Sopenharmony_ci	help
14862306a36Sopenharmony_ci	  The STI console is the builtin display/keyboard on HP-PARISC
14962306a36Sopenharmony_ci	  machines.  Say Y here to build support for it into your kernel.
15062306a36Sopenharmony_ci	  The alternative is to use your primary serial port as a console.
15162306a36Sopenharmony_ci
15262306a36Sopenharmony_ciendmenu
15362306a36Sopenharmony_ci
154