xref: /linux/drivers/video/console/Kconfig (revision 06d07429858317ded2db7986113a9e0129cd599b)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Video configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
61da177e4SLinus Torvaldsmenu "Console display driver support"
71da177e4SLinus Torvalds
81da177e4SLinus Torvaldsconfig VGA_CONSOLE
96a108a14SDavid Rientjes	bool "VGA text console" if EXPERT || !X86
10*110684d5SLukas Bulwahn	depends on ALPHA || X86 || \
11e9e3300bSArnd Bergmann		(ARM && ARCH_FOOTBRIDGE) || \
12e9e3300bSArnd Bergmann		(MIPS && (MIPS_MALTA || SIBYTE_BCM112X || SIBYTE_SB1250 || SIBYTE_BCM1x80 || SNI_RM))
137283f862SThomas Zimmermann	select APERTURE_HELPERS if (DRM || FB || VFIO_PCI_CORE)
141da177e4SLinus Torvalds	default y
151da177e4SLinus Torvalds	help
161da177e4SLinus Torvalds	  Saying Y here will allow you to use Linux in text mode through a
171da177e4SLinus Torvalds	  display that complies with the generic VGA standard. Virtually
181da177e4SLinus Torvalds	  everyone wants that.
191da177e4SLinus Torvalds
201da177e4SLinus Torvalds	  The program SVGATextMode can be used to utilize SVGA video cards to
211da177e4SLinus Torvalds	  their full potential in text mode. Download it from
221da177e4SLinus Torvalds	  <ftp://ibiblio.org/pub/Linux/utils/console/>.
231da177e4SLinus Torvalds
241da177e4SLinus Torvalds	  Say Y.
251da177e4SLinus Torvalds
261da177e4SLinus Torvaldsconfig MDA_CONSOLE
271da177e4SLinus Torvalds	depends on !M68K && !PARISC && ISA
2855ec4c3cSKees Cook	tristate "MDA text console (dual-headed)"
29a7f7f624SMasahiro Yamada	help
301da177e4SLinus Torvalds	  Say Y here if you have an old MDA or monochrome Hercules graphics
311da177e4SLinus Torvalds	  adapter in your system acting as a second head ( = video card). You
321da177e4SLinus Torvalds	  will then be able to use two monitors with your Linux system. Do not
331da177e4SLinus Torvalds	  say Y here if your MDA card is the primary card in your system; the
341da177e4SLinus Torvalds	  normal VGA driver will handle it.
351da177e4SLinus Torvalds
361da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
371da177e4SLinus Torvalds	  module will be called mdacon.
381da177e4SLinus Torvalds
391da177e4SLinus Torvalds	  If unsure, say N.
401da177e4SLinus Torvalds
411da177e4SLinus Torvaldsconfig SGI_NEWPORT_CONSOLE
421da177e4SLinus Torvalds	tristate "SGI Newport Console support"
430a3994f9SFarhan Ali	depends on SGI_IP22 && HAS_IOMEM
44d1e183c8SGeert Uytterhoeven	select FONT_SUPPORT
451da177e4SLinus Torvalds	help
461da177e4SLinus Torvalds	  Say Y here if you want the console on the Newport aka XL graphics
471da177e4SLinus Torvalds	  card of your Indy.  Most people say Y here.
481da177e4SLinus Torvalds
491da177e4SLinus Torvaldsconfig DUMMY_CONSOLE
501da177e4SLinus Torvalds	bool
511da177e4SLinus Torvalds	default y
521da177e4SLinus Torvalds
531da177e4SLinus Torvaldsconfig DUMMY_CONSOLE_COLUMNS
541da177e4SLinus Torvalds	int "Initial number of console screen columns"
554293b092SArnd Bergmann	depends on DUMMY_CONSOLE && !ARCH_FOOTBRIDGE
568f5b1e65SGeert Uytterhoeven	default 160 if PARISC
578f5b1e65SGeert Uytterhoeven	default 80
581da177e4SLinus Torvalds	help
598f5b1e65SGeert Uytterhoeven	  On PA-RISC, the default value is 160, which should fit a 1280x1024
608f5b1e65SGeert Uytterhoeven	  monitor.
611da177e4SLinus Torvalds	  Select 80 if you use a 640x480 resolution by default.
621da177e4SLinus Torvalds
631da177e4SLinus Torvaldsconfig DUMMY_CONSOLE_ROWS
641da177e4SLinus Torvalds	int "Initial number of console screen rows"
654293b092SArnd Bergmann	depends on DUMMY_CONSOLE && !ARCH_FOOTBRIDGE
668f5b1e65SGeert Uytterhoeven	default 64 if PARISC
674293b092SArnd Bergmann	default 30 if ARM
688f5b1e65SGeert Uytterhoeven	default 25
691da177e4SLinus Torvalds	help
708f5b1e65SGeert Uytterhoeven	  On PA-RISC, the default value is 64, which should fit a 1280x1024
718f5b1e65SGeert Uytterhoeven	  monitor.
721da177e4SLinus Torvalds	  Select 25 if you use a 640x480 resolution by default.
731da177e4SLinus Torvalds
741da177e4SLinus Torvaldsconfig FRAMEBUFFER_CONSOLE
756104c370SDaniel Vetter	bool "Framebuffer Console support"
7655bffc81SJavier Martinez Canillas	depends on FB_CORE && !UML
77bb6c4507SArnd Bergmann	default DRM_FBDEV_EMULATION
78765d5b9cSDavid Herrmann	select VT_HW_CONSOLE_BINDING
791da177e4SLinus Torvalds	select CRC32
80d1e183c8SGeert Uytterhoeven	select FONT_SUPPORT
81e65c0850SRandy.Dunlap	help
82e65c0850SRandy.Dunlap	  Low-level framebuffer-based console driver.
831da177e4SLinus Torvalds
84a3f781a9SHelge Dellerconfig FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION
85a3f781a9SHelge Deller	bool "Enable legacy fbcon hardware acceleration code"
86a3f781a9SHelge Deller	depends on FRAMEBUFFER_CONSOLE
87a3f781a9SHelge Deller	default y if PARISC
88a3f781a9SHelge Deller	default n
89a3f781a9SHelge Deller	help
90a3f781a9SHelge Deller	  This option enables the fbcon (framebuffer text-based) hardware
91a3f781a9SHelge Deller	  acceleration for graphics drivers which were written for the fbdev
92a3f781a9SHelge Deller	  graphics interface.
93a3f781a9SHelge Deller
94a3f781a9SHelge Deller	  On modern machines, on mainstream machines (like x86-64) or when
95a3f781a9SHelge Deller	  using a modern Linux distribution those fbdev drivers usually aren't used.
96a3f781a9SHelge Deller	  So enabling this option wouldn't have any effect, which is why you want
97a3f781a9SHelge Deller	  to disable this option on such newer machines.
98a3f781a9SHelge Deller
99a3f781a9SHelge Deller	  If you compile this kernel for older machines which still require the
100a3f781a9SHelge Deller	  fbdev drivers, you may want to say Y.
101a3f781a9SHelge Deller
102a3f781a9SHelge Deller	  If unsure, select n.
103a3f781a9SHelge Deller
104623e71b0SAntonino A. Daplasconfig FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
105623e71b0SAntonino A. Daplas       bool "Map the console to the primary display device"
106afd1db16SAntonino A. Daplas       depends on FRAMEBUFFER_CONSOLE
107623e71b0SAntonino A. Daplas       default n
108a7f7f624SMasahiro Yamada	help
109623e71b0SAntonino A. Daplas	 If this option is selected, the framebuffer console will
110623e71b0SAntonino A. Daplas	 automatically select the primary display device (if the architecture
111623e71b0SAntonino A. Daplas	 supports this feature).  Otherwise, the framebuffer console will
112623e71b0SAntonino A. Daplas	 always select the first framebuffer driver that is loaded. The latter
113623e71b0SAntonino A. Daplas	 is the default behavior.
114623e71b0SAntonino A. Daplas
115623e71b0SAntonino A. Daplas	 You can always override the automatic selection of the primary device
116623e71b0SAntonino A. Daplas	 by using the fbcon=map: boot option.
117623e71b0SAntonino A. Daplas
118623e71b0SAntonino A. Daplas	 If unsure, select n.
119623e71b0SAntonino A. Daplas
120e4fc2761SAntonino A. Daplasconfig FRAMEBUFFER_CONSOLE_ROTATION
121e4fc2761SAntonino A. Daplas       bool "Framebuffer Console Rotation"
122e4fc2761SAntonino A. Daplas       depends on FRAMEBUFFER_CONSOLE
123e4fc2761SAntonino A. Daplas       help
124e4fc2761SAntonino A. Daplas	 Enable display rotation for the framebuffer console.  This is done
125e4fc2761SAntonino A. Daplas	 in software and may be significantly slower than a normally oriented
126e4fc2761SAntonino A. Daplas	 display.  Note that the rotation is done at the console level only
127e4fc2761SAntonino A. Daplas	 such that other users of the framebuffer will remain normally
128e4fc2761SAntonino A. Daplas	 oriented.
129e4fc2761SAntonino A. Daplas
13083d83bebSHans de Goedeconfig FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER
13183d83bebSHans de Goede	bool "Framebuffer Console Deferred Takeover"
13215f4c357SHans de Goede	depends on FB=y && FRAMEBUFFER_CONSOLE && DUMMY_CONSOLE
13383d83bebSHans de Goede	help
13483d83bebSHans de Goede	  If enabled this defers the framebuffer console taking over the
13583d83bebSHans de Goede	  console from the dummy console until the first text is displayed on
13683d83bebSHans de Goede	  the console. This is useful in combination with the "quiet" kernel
13783d83bebSHans de Goede	  commandline option to keep the framebuffer contents initially put up
13883d83bebSHans de Goede	  by the firmware in place, rather then replacing the contents with a
13983d83bebSHans de Goede	  black screen as soon as fbcon loads.
14083d83bebSHans de Goede
1411da177e4SLinus Torvaldsconfig STI_CONSOLE
1421eb51c36SKyle McMartin	bool "STI text console"
1430a3994f9SFarhan Ali	depends on PARISC && HAS_IOMEM
144d1e183c8SGeert Uytterhoeven	select FONT_SUPPORT
1457ff3f14dSHelge Deller	select CRC32
14674708497SThomas Zimmermann	select STI_CORE
1471da177e4SLinus Torvalds	default y
1481da177e4SLinus Torvalds	help
1491da177e4SLinus Torvalds	  The STI console is the builtin display/keyboard on HP-PARISC
1501da177e4SLinus Torvalds	  machines.  Say Y here to build support for it into your kernel.
1511da177e4SLinus Torvalds	  The alternative is to use your primary serial port as a console.
1521da177e4SLinus Torvalds
1531da177e4SLinus Torvaldsendmenu
1541da177e4SLinus Torvalds
155