xref: /linux/drivers/tty/serial/8250/Kconfig (revision 378ec25aec5a8444879f8696d580c94950a1f1df)
138c91d1dSGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
29bef3d41SPaul Gortmaker#
39bef3d41SPaul Gortmaker# The 8250/16550 serial drivers.  You shouldn't be in this list unless
49bef3d41SPaul Gortmaker# you somehow have an implicit or explicit dependency on SERIAL_8250.
59bef3d41SPaul Gortmaker#
69bef3d41SPaul Gortmaker
79bef3d41SPaul Gortmakerconfig SERIAL_8250
89bef3d41SPaul Gortmaker	tristate "8250/16550 and compatible serial support"
91598e38cSChristian Borntraeger	depends on !S390
109bef3d41SPaul Gortmaker	select SERIAL_CORE
114a96895fSYegor Yefremov	select SERIAL_MCTRL_GPIO if GPIOLIB
12a7f7f624SMasahiro Yamada	help
139bef3d41SPaul Gortmaker	  This selects whether you want to include the driver for the standard
149bef3d41SPaul Gortmaker	  serial ports.  The standard answer is Y.  People who might say N
159bef3d41SPaul Gortmaker	  here are those that are setting up dedicated Ethernet WWW/FTP
169bef3d41SPaul Gortmaker	  servers, or users that have one of the various bus mice instead of a
179bef3d41SPaul Gortmaker	  serial mouse and don't intend to use their machine's standard serial
18f76edd8fSJiri Slaby	  port for anything.
199bef3d41SPaul Gortmaker
209bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the
219bef3d41SPaul Gortmaker	  module will be called 8250.
229bef3d41SPaul Gortmaker	  [WARNING: Do not compile this driver as a module if you are using
239bef3d41SPaul Gortmaker	  non-standard serial ports, since the configuration information will
249bef3d41SPaul Gortmaker	  be lost when the driver is unloaded.  This limitation may be lifted
259bef3d41SPaul Gortmaker	  in the future.]
269bef3d41SPaul Gortmaker
279bef3d41SPaul Gortmaker	  BTW1: If you have a mouseman serial mouse which is not recognized by
289bef3d41SPaul Gortmaker	  the X window system, try running gpm first.
299bef3d41SPaul Gortmaker
309bef3d41SPaul Gortmaker	  BTW2: If you intend to use a software modem (also called Winmodem)
319bef3d41SPaul Gortmaker	  under Linux, forget it.  These modems are crippled and require
329bef3d41SPaul Gortmaker	  proprietary drivers which are only available under Windows.
339bef3d41SPaul Gortmaker
349bef3d41SPaul Gortmaker	  Most people will say Y or M here, so that they can use serial mice,
359bef3d41SPaul Gortmaker	  modems and similar devices connecting to the standard serial ports.
369bef3d41SPaul Gortmaker
379326b047SJiri Slabyconfig SERIAL_8250_DEPRECATED_OPTIONS
389326b047SJiri Slaby	bool "Support 8250_core.* kernel options (DEPRECATED)"
399326b047SJiri Slaby	depends on SERIAL_8250
409326b047SJiri Slaby	default y
41a7f7f624SMasahiro Yamada	help
429326b047SJiri Slaby	  In 3.7 we renamed 8250 to 8250_core by mistake, so now we have to
439326b047SJiri Slaby	  accept kernel parameters in both forms like 8250_core.nr_uarts=4 and
449326b047SJiri Slaby	  8250.nr_uarts=4. We now renamed the module back to 8250, but if
459326b047SJiri Slaby	  anybody noticed in 3.7 and changed their userspace we still have to
46f3014127SRandy Dunlap	  keep the 8250_core.* options around until they revert the changes
479326b047SJiri Slaby	  they already did.
489326b047SJiri Slaby
499326b047SJiri Slaby	  If 8250 is built as a module, this adds 8250_core alias instead.
509326b047SJiri Slaby
519326b047SJiri Slaby	  If you did not notice yet and/or you have userspace from pre-3.7, it
529326b047SJiri Slaby	  is safe (and recommended) to say N here.
539326b047SJiri Slaby
54835d844dSSean Youngconfig SERIAL_8250_PNP
55835d844dSSean Young	bool "8250/16550 PNP device support" if EXPERT
56835d844dSSean Young	depends on SERIAL_8250 && PNP
57835d844dSSean Young	default y
58a7f7f624SMasahiro Yamada	help
59835d844dSSean Young	  This builds standard PNP serial support. You may be able to
60835d844dSSean Young	  disable this feature if you only need legacy serial support.
61835d844dSSean Young
62dc56ecb8SJosh Triplettconfig SERIAL_8250_16550A_VARIANTS
63dc56ecb8SJosh Triplett	bool "Support for variants of the 16550A serial port"
64dc56ecb8SJosh Triplett	depends on SERIAL_8250
6515a3f03dSJosh Triplett	default !X86
66dc56ecb8SJosh Triplett	help
67dc56ecb8SJosh Triplett	  The 8250 driver can probe for many variants of the venerable 16550A
68dc56ecb8SJosh Triplett	  serial port. Doing so takes additional time at boot.
69dc56ecb8SJosh Triplett
70dc56ecb8SJosh Triplett	  On modern systems, especially those using serial only for a simple
71dc56ecb8SJosh Triplett	  console, you can say N here.
72dc56ecb8SJosh Triplett
73fa01e2caSRicardo Ribalda Delgadoconfig SERIAL_8250_FINTEK
741b997aefSJames Hilliard	bool "Support for Fintek variants"
757c7e6c89SNiklas Schnelle	depends on SERIAL_8250 && HAS_IOPORT
76a7f7f624SMasahiro Yamada	help
771b997aefSJames Hilliard	  Selecting this option will add support for the RS232 and RS485
781b997aefSJames Hilliard	  capabilities of the Fintek F81216A LPC to 4 UART as well similar
791b997aefSJames Hilliard	  variants.
80fa01e2caSRicardo Ribalda Delgado
81fa01e2caSRicardo Ribalda Delgado	  If this option is not selected the device will be configured as a
821b997aefSJames Hilliard	  standard 16550A serial port, however the device may not function
831b997aefSJames Hilliard	  correctly without this option enabled.
84fa01e2caSRicardo Ribalda Delgado
85fa01e2caSRicardo Ribalda Delgado	  If unsure, say N.
86fa01e2caSRicardo Ribalda Delgado
879bef3d41SPaul Gortmakerconfig SERIAL_8250_CONSOLE
889bef3d41SPaul Gortmaker	bool "Console on 8250/16550 and compatible serial port"
899bef3d41SPaul Gortmaker	depends on SERIAL_8250=y
909bef3d41SPaul Gortmaker	select SERIAL_CORE_CONSOLE
91d2fd6810SRob Herring	select SERIAL_EARLYCON
92a7f7f624SMasahiro Yamada	help
939bef3d41SPaul Gortmaker	  If you say Y here, it will be possible to use a serial port as the
949bef3d41SPaul Gortmaker	  system console (the system console is the device which receives all
959bef3d41SPaul Gortmaker	  kernel messages and warnings and which allows logins in single user
969bef3d41SPaul Gortmaker	  mode). This could be useful if some terminal or printer is connected
979bef3d41SPaul Gortmaker	  to that serial port.
989bef3d41SPaul Gortmaker
999bef3d41SPaul Gortmaker	  Even if you say Y here, the currently visible virtual console
1009bef3d41SPaul Gortmaker	  (/dev/tty0) will still be used as the system console by default, but
1019bef3d41SPaul Gortmaker	  you can alter that using a kernel command line option such as
1029bef3d41SPaul Gortmaker	  "console=ttyS1". (Try "man bootparam" or see the documentation of
1039bef3d41SPaul Gortmaker	  your boot loader (grub or lilo or loadlin) about how to pass options
1049bef3d41SPaul Gortmaker	  to the kernel at boot time.)
1059bef3d41SPaul Gortmaker
1069bef3d41SPaul Gortmaker	  If you don't have a VGA card installed and you say Y here, the
1079bef3d41SPaul Gortmaker	  kernel will automatically use the first serial line, /dev/ttyS0, as
1089bef3d41SPaul Gortmaker	  system console.
1099bef3d41SPaul Gortmaker
1109bef3d41SPaul Gortmaker	  You can set that using a kernel command line option such as
1119bef3d41SPaul Gortmaker	  "console=uart8250,io,0x3f8,9600n8"
1129bef3d41SPaul Gortmaker	  "console=uart8250,mmio,0xff5e0000,115200n8".
1139bef3d41SPaul Gortmaker	  and it will switch to normal serial console when the corresponding
1149bef3d41SPaul Gortmaker	  port is ready.
1159bef3d41SPaul Gortmaker	  "earlycon=uart8250,io,0x3f8,9600n8"
1169bef3d41SPaul Gortmaker	  "earlycon=uart8250,mmio,0xff5e0000,115200n8".
1179bef3d41SPaul Gortmaker	  it will not only setup early console.
1189bef3d41SPaul Gortmaker
1199bef3d41SPaul Gortmaker	  If unsure, say N.
1209bef3d41SPaul Gortmaker
1219e4e2ce1SHelge Dellerconfig SERIAL_8250_PARISC
1229bef3d41SPaul Gortmaker	tristate
123e8a18e3fSHelge Deller	depends on SERIAL_8250 && PARISC
1249bef3d41SPaul Gortmaker	default SERIAL_8250
1259bef3d41SPaul Gortmaker
1269ee4b83eSHeikki Krogerusconfig SERIAL_8250_DMA
1279ee4b83eSHeikki Krogerus	bool "DMA support for 16550 compatible UART controllers" if EXPERT
1289ee4b83eSHeikki Krogerus	depends on SERIAL_8250 && DMADEVICES=y
1299ee4b83eSHeikki Krogerus	default SERIAL_8250
1309ee4b83eSHeikki Krogerus	help
1319ee4b83eSHeikki Krogerus	  This builds DMA support that can be used with 8250/16650
1329ee4b83eSHeikki Krogerus	  compatible UART controllers that support DMA signaling.
1339ee4b83eSHeikki Krogerus
1340348386dSKumaravel Thiagarajanconfig SERIAL_8250_PCILIB
1350348386dSKumaravel Thiagarajan	bool
1360348386dSKumaravel Thiagarajan
1379bef3d41SPaul Gortmakerconfig SERIAL_8250_PCI
138f1e8c710SJean Delvare	tristate "8250/16550 PCI device support"
1399bef3d41SPaul Gortmaker	depends on SERIAL_8250 && PCI
1400348386dSKumaravel Thiagarajan	select SERIAL_8250_PCILIB
1419bef3d41SPaul Gortmaker	default SERIAL_8250
1429bef3d41SPaul Gortmaker	help
1439bef3d41SPaul Gortmaker	  This builds standard PCI serial support. You may be able to
1449bef3d41SPaul Gortmaker	  disable this feature if you only need legacy serial support.
1459bef3d41SPaul Gortmaker	  Saves about 9K.
146972ce085SStefan Seyfried	  Note that serial ports on NetMos 9835 Multi-I/O cards are handled
147972ce085SStefan Seyfried	  by the parport_serial driver, enabled with CONFIG_PARPORT_SERIAL.
1489bef3d41SPaul Gortmaker
149d0aeaa83SSudip Mukherjeeconfig SERIAL_8250_EXAR
15049e1590cSPaul Gortmaker	tristate "8250/16550 Exar/Commtech PCI/PCIe device support"
1515939ff7fSIlpo Järvinen	depends on SERIAL_8250 && PCI
152d813d900SAndy Shevchenko	select SERIAL_8250_PCILIB
15385eb2e57SParker Newman	select EEPROM_93CX6
1545d1a2388SSudip Mukherjee	default SERIAL_8250
15549e1590cSPaul Gortmaker	help
15649e1590cSPaul Gortmaker	  This builds support for XR17C1xx, XR17V3xx and some Commtech
15749e1590cSPaul Gortmaker	  422x PCIe serial cards that are not covered by the more generic
15849e1590cSPaul Gortmaker	  SERIAL_8250_PCI option.
159d0aeaa83SSudip Mukherjee
1609bef3d41SPaul Gortmakerconfig SERIAL_8250_HP300
1619bef3d41SPaul Gortmaker	tristate
1629bef3d41SPaul Gortmaker	depends on SERIAL_8250 && HP300
1639bef3d41SPaul Gortmaker	default SERIAL_8250
1649bef3d41SPaul Gortmaker
1659bef3d41SPaul Gortmakerconfig SERIAL_8250_CS
1669bef3d41SPaul Gortmaker	tristate "8250/16550 PCMCIA device support"
1677c7e6c89SNiklas Schnelle	depends on PCMCIA && SERIAL_8250 && HAS_IOPORT
168a7f7f624SMasahiro Yamada	help
1699bef3d41SPaul Gortmaker	  Say Y here to enable support for 16-bit PCMCIA serial devices,
1709bef3d41SPaul Gortmaker	  including serial port cards, modems, and the modem functions of
1719bef3d41SPaul Gortmaker	  multi-function Ethernet/modem cards. (PCMCIA- or PC-cards are
1729bef3d41SPaul Gortmaker	  credit-card size devices often used with laptops.)
1739bef3d41SPaul Gortmaker
1749bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the
1759bef3d41SPaul Gortmaker	  module will be called serial_cs.
1769bef3d41SPaul Gortmaker
1779bef3d41SPaul Gortmaker	  If unsure, say N.
1789bef3d41SPaul Gortmaker
179562e6ef8SMichael Moeseconfig SERIAL_8250_MEN_MCB
180e2fea54eSMichael Moese	tristate "MEN MCB UART device support"
181562e6ef8SMichael Moese	depends on MCB && SERIAL_8250
182562e6ef8SMichael Moese	help
183562e6ef8SMichael Moese	  This enables support for FPGA based UARTs found on many MEN
184e2fea54eSMichael Moese	  boards. This driver enables support for the 16z025, 16z057
185e2fea54eSMichael Moese	  and 16z125 UARTs.
186562e6ef8SMichael Moese
187562e6ef8SMichael Moese	  To compile this driver as a module, chose M here: the
188562e6ef8SMichael Moese	  module will be called 8250_men_mcb.
189562e6ef8SMichael Moese
190562e6ef8SMichael Moese
1919bef3d41SPaul Gortmakerconfig SERIAL_8250_NR_UARTS
1929bef3d41SPaul Gortmaker	int "Maximum number of 8250/16550 serial ports"
1939bef3d41SPaul Gortmaker	depends on SERIAL_8250
1949bef3d41SPaul Gortmaker	default "4"
1959bef3d41SPaul Gortmaker	help
1969bef3d41SPaul Gortmaker	  Set this to the number of serial ports you want the driver
1979bef3d41SPaul Gortmaker	  to support.  This includes any ports discovered via ACPI or
1989bef3d41SPaul Gortmaker	  PCI enumeration and any ports that may be added at run-time
1999bef3d41SPaul Gortmaker	  via hot-plug, or any ISA multi-port serial cards.
2009bef3d41SPaul Gortmaker
2019bef3d41SPaul Gortmakerconfig SERIAL_8250_RUNTIME_UARTS
2029bef3d41SPaul Gortmaker	int "Number of 8250/16550 serial ports to register at runtime"
2039bef3d41SPaul Gortmaker	depends on SERIAL_8250
2049bef3d41SPaul Gortmaker	range 0 SERIAL_8250_NR_UARTS
2059bef3d41SPaul Gortmaker	default "4"
2069bef3d41SPaul Gortmaker	help
2079bef3d41SPaul Gortmaker	  Set this to the maximum number of serial ports you want
2089bef3d41SPaul Gortmaker	  the kernel to register at boot time.  This can be overridden
2099bef3d41SPaul Gortmaker	  with the module parameter "nr_uarts", or boot-time parameter
2109bef3d41SPaul Gortmaker	  8250.nr_uarts
2119bef3d41SPaul Gortmaker
2129bef3d41SPaul Gortmakerconfig SERIAL_8250_EXTENDED
2139bef3d41SPaul Gortmaker	bool "Extended 8250/16550 serial driver options"
2149bef3d41SPaul Gortmaker	depends on SERIAL_8250
2159bef3d41SPaul Gortmaker	help
2169bef3d41SPaul Gortmaker	  If you wish to use any non-standard features of the standard "dumb"
2179bef3d41SPaul Gortmaker	  driver, say Y here. This includes HUB6 support, shared serial
2189bef3d41SPaul Gortmaker	  interrupts, special multiport support, support for more than the
2199bef3d41SPaul Gortmaker	  four COM 1/2/3/4 boards, etc.
2209bef3d41SPaul Gortmaker
2219bef3d41SPaul Gortmaker	  Note that the answer to this question won't directly affect the
2229bef3d41SPaul Gortmaker	  kernel: saying N will just cause the configurator to skip all
2239bef3d41SPaul Gortmaker	  the questions about serial driver options. If unsure, say N.
2249bef3d41SPaul Gortmaker
2259bef3d41SPaul Gortmakerconfig SERIAL_8250_MANY_PORTS
2269bef3d41SPaul Gortmaker	bool "Support more than 4 legacy serial ports"
227cf8e8658SArd Biesheuvel	depends on SERIAL_8250_EXTENDED
2289bef3d41SPaul Gortmaker	help
2299bef3d41SPaul Gortmaker	  Say Y here if you have dumb serial boards other than the four
2309bef3d41SPaul Gortmaker	  standard COM 1/2/3/4 ports. This may happen if you have an AST
2319bef3d41SPaul Gortmaker	  FourPort, Accent Async, Boca (read the Boca mini-HOWTO, available
232d4c2b4e7SAlexander A. Klimov	  from <https://www.tldp.org/docs.html#howto>), or other custom
2339bef3d41SPaul Gortmaker	  serial port hardware which acts similar to standard serial port
2349bef3d41SPaul Gortmaker	  hardware. If you only use the standard COM 1/2/3/4 ports, you can
2359bef3d41SPaul Gortmaker	  say N here to save some memory. You can also say Y if you have an
236f76edd8fSJiri Slaby	  "intelligent" multiport card such as Digiboards, etc.
2379bef3d41SPaul Gortmaker
2389bef3d41SPaul Gortmaker#
2399bef3d41SPaul Gortmaker# Multi-port serial cards
2409bef3d41SPaul Gortmaker#
2419bef3d41SPaul Gortmaker
2429bef3d41SPaul Gortmakerconfig SERIAL_8250_FOURPORT
2439bef3d41SPaul Gortmaker	tristate "Support Fourport cards"
2449bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2459bef3d41SPaul Gortmaker	help
2469bef3d41SPaul Gortmaker	  Say Y here if you have an AST FourPort serial board.
2479bef3d41SPaul Gortmaker
2489bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2499bef3d41SPaul Gortmaker	  will be called 8250_fourport.
2509bef3d41SPaul Gortmaker
2519bef3d41SPaul Gortmakerconfig SERIAL_8250_ACCENT
2529bef3d41SPaul Gortmaker	tristate "Support Accent cards"
2539bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2549bef3d41SPaul Gortmaker	help
2559bef3d41SPaul Gortmaker	  Say Y here if you have an Accent Async serial board.
2569bef3d41SPaul Gortmaker
2579bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2589bef3d41SPaul Gortmaker	  will be called 8250_accent.
2599bef3d41SPaul Gortmaker
2607fbcf3afSJeremy Kerrconfig SERIAL_8250_ASPEED_VUART
2617fbcf3afSJeremy Kerr	tristate "Aspeed Virtual UART"
2627fbcf3afSJeremy Kerr	depends on SERIAL_8250
2637fbcf3afSJeremy Kerr	depends on OF
264f8086d1aSRandy Dunlap	depends on MFD_SYSCON
265806a4497SGeert Uytterhoeven	depends on ARCH_ASPEED || COMPILE_TEST
266f8086d1aSRandy Dunlap	select REGMAP
2677fbcf3afSJeremy Kerr	help
2687fbcf3afSJeremy Kerr	  If you want to use the virtual UART (VUART) device on Aspeed
2697fbcf3afSJeremy Kerr	  BMC platforms, enable this option. This enables the 16550A-
2707fbcf3afSJeremy Kerr	  compatible device on the local LPC bus, giving a UART device
2717fbcf3afSJeremy Kerr	  with no physical RS232 connections.
2727fbcf3afSJeremy Kerr
2739bef3d41SPaul Gortmakerconfig SERIAL_8250_BOCA
2749bef3d41SPaul Gortmaker	tristate "Support Boca cards"
2759bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2769bef3d41SPaul Gortmaker	help
2779bef3d41SPaul Gortmaker	  Say Y here if you have a Boca serial board.  Please read the Boca
278d4c2b4e7SAlexander A. Klimov	  mini-HOWTO, available from <https://www.tldp.org/docs.html#howto>
2799bef3d41SPaul Gortmaker
2809bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2819bef3d41SPaul Gortmaker	  will be called 8250_boca.
2829bef3d41SPaul Gortmaker
2839bef3d41SPaul Gortmakerconfig SERIAL_8250_EXAR_ST16C554
2849bef3d41SPaul Gortmaker	tristate "Support Exar ST16C554/554D Quad UART"
2859bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2869bef3d41SPaul Gortmaker	help
2879bef3d41SPaul Gortmaker	  The Uplogix Envoy TU301 uses this Exar Quad UART.  If you are
2889bef3d41SPaul Gortmaker	  tinkering with your Envoy TU301, or have a machine with this UART,
2899bef3d41SPaul Gortmaker	  say Y here.
2909bef3d41SPaul Gortmaker
2919bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2929bef3d41SPaul Gortmaker	  will be called 8250_exar_st16c554.
2939bef3d41SPaul Gortmaker
2949bef3d41SPaul Gortmakerconfig SERIAL_8250_HUB6
2959bef3d41SPaul Gortmaker	tristate "Support Hub6 cards"
2969bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2979bef3d41SPaul Gortmaker	help
2989bef3d41SPaul Gortmaker	  Say Y here if you have a HUB6 serial board.
2999bef3d41SPaul Gortmaker
3009bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
3019bef3d41SPaul Gortmaker	  will be called 8250_hub6.
3029bef3d41SPaul Gortmaker
30332bb477fSKumaravel Thiagarajanconfig SERIAL_8250_PCI1XXXX
30432bb477fSKumaravel Thiagarajan	tristate "Microchip 8250 based serial port"
30532bb477fSKumaravel Thiagarajan	depends on SERIAL_8250 && PCI
30632bb477fSKumaravel Thiagarajan	select SERIAL_8250_PCILIB
30732bb477fSKumaravel Thiagarajan	help
30832bb477fSKumaravel Thiagarajan	 Select this option if you have a setup with Microchip PCIe
30932bb477fSKumaravel Thiagarajan	 Switch with serial port enabled and wish to enable 8250
31032bb477fSKumaravel Thiagarajan	 serial driver for the serial interface. This driver support
31132bb477fSKumaravel Thiagarajan	 will ensure to support baud rates upto 1.5Mpbs.
31232bb477fSKumaravel Thiagarajan
3139bef3d41SPaul Gortmaker#
3149bef3d41SPaul Gortmaker# Misc. options/drivers.
3159bef3d41SPaul Gortmaker#
3169bef3d41SPaul Gortmaker
3179bef3d41SPaul Gortmakerconfig SERIAL_8250_SHARE_IRQ
3189bef3d41SPaul Gortmaker	bool "Support for sharing serial interrupts"
3199bef3d41SPaul Gortmaker	depends on SERIAL_8250_EXTENDED
3209bef3d41SPaul Gortmaker	help
3219bef3d41SPaul Gortmaker	  Some serial boards have hardware support which allows multiple dumb
3229bef3d41SPaul Gortmaker	  serial ports on the same board to share a single IRQ. To enable
3239bef3d41SPaul Gortmaker	  support for this in the serial driver, say Y here.
3249bef3d41SPaul Gortmaker
3259bef3d41SPaul Gortmakerconfig SERIAL_8250_DETECT_IRQ
3269bef3d41SPaul Gortmaker	bool "Autodetect IRQ on standard ports (unsafe)"
3279bef3d41SPaul Gortmaker	depends on SERIAL_8250_EXTENDED
3289bef3d41SPaul Gortmaker	help
3299bef3d41SPaul Gortmaker	  Say Y here if you want the kernel to try to guess which IRQ
3309bef3d41SPaul Gortmaker	  to use for your serial port.
3319bef3d41SPaul Gortmaker
3329bef3d41SPaul Gortmaker	  This is considered unsafe; it is far better to configure the IRQ in
3339bef3d41SPaul Gortmaker	  a boot script using the setserial command.
3349bef3d41SPaul Gortmaker
3359bef3d41SPaul Gortmaker	  If unsure, say N.
3369bef3d41SPaul Gortmaker
3379bef3d41SPaul Gortmakerconfig SERIAL_8250_RSA
3389bef3d41SPaul Gortmaker	bool "Support RSA serial ports"
3399bef3d41SPaul Gortmaker	depends on SERIAL_8250_EXTENDED
3409bef3d41SPaul Gortmaker	help
341a95fc9c8SMaciej S. Szmigiero	  Say Y here if you have a IODATA RSA-DV II/S ISA card and
342a95fc9c8SMaciej S. Szmigiero	  would like to use its >115kbps speeds.
343a95fc9c8SMaciej S. Szmigiero	  You will need to provide module parameter "probe_rsa", or boot-time
344a95fc9c8SMaciej S. Szmigiero	  parameter 8250.probe_rsa with I/O addresses of this card then.
345a95fc9c8SMaciej S. Szmigiero
346a95fc9c8SMaciej S. Szmigiero	  If you don't have such card, or if unsure, say N.
3479bef3d41SPaul Gortmaker
348136e0ab9SAndy Shevchenkoconfig SERIAL_8250_DWLIB
349136e0ab9SAndy Shevchenko	bool
350136e0ab9SAndy Shevchenko
3519bef3d41SPaul Gortmakerconfig SERIAL_8250_ACORN
3529bef3d41SPaul Gortmaker	tristate "Acorn expansion card serial port support"
3539bef3d41SPaul Gortmaker	depends on ARCH_ACORN && SERIAL_8250
3549bef3d41SPaul Gortmaker	help
3559bef3d41SPaul Gortmaker	  If you have an Atomwide Serial card or Serial Port card for an Acorn
3569bef3d41SPaul Gortmaker	  system, say Y to this option.  The driver can handle 1, 2, or 3 port
3579bef3d41SPaul Gortmaker	  cards.  If unsure, say N.
3589bef3d41SPaul Gortmaker
359bdc5f300SMartin Sperlconfig SERIAL_8250_BCM2835AUX
360bdc5f300SMartin Sperl	tristate "BCM2835 auxiliar mini UART support"
361bdc5f300SMartin Sperl	depends on ARCH_BCM2835 || COMPILE_TEST
362bdc5f300SMartin Sperl	depends on SERIAL_8250 && SERIAL_8250_SHARE_IRQ
363bdc5f300SMartin Sperl	help
364bdc5f300SMartin Sperl	  Support for the BCM2835 auxiliar mini UART.
365bdc5f300SMartin Sperl
366bdc5f300SMartin Sperl	  Features and limitations of the UART are
367bdc5f300SMartin Sperl	    Registers are similar to 16650 registers,
368bdc5f300SMartin Sperl	      set bits in the control registers that are unsupported
369bdc5f300SMartin Sperl	      are ignored and read back as 0
370bdc5f300SMartin Sperl	    7/8 bit operation with 1 start and 1 stop bit
371bdc5f300SMartin Sperl	    8 symbols deep fifo for rx and tx
372bdc5f300SMartin Sperl	    SW controlled RTS and SW readable CTS
373bdc5f300SMartin Sperl	    Clock rate derived from system clock
374bdc5f300SMartin Sperl	    Uses 8 times oversampling (compared to 16 times for 16650)
375bdc5f300SMartin Sperl	    Missing break detection (but break generation)
376bdc5f300SMartin Sperl	    Missing framing error detection
377bdc5f300SMartin Sperl	    Missing parity bit
378bdc5f300SMartin Sperl	    Missing receive time-out interrupt
379bdc5f300SMartin Sperl	    Missing DCD, DSR, DTR and RI signals
380bdc5f300SMartin Sperl
381bdc5f300SMartin Sperl	  If unsure, say N.
382bdc5f300SMartin Sperl
3839bef3d41SPaul Gortmakerconfig SERIAL_8250_FSL
384d9f59cafSUwe Kleine-König	tristate "Freescale 16550 UART support" if COMPILE_TEST && !(PPC || ARM || ARM64)
385d9f59cafSUwe Kleine-König	depends on SERIAL_8250
386d9f59cafSUwe Kleine-König	default SERIAL_8250 if PPC || ARM || ARM64
387cb228221SJohan Hovold	help
388cb228221SJohan Hovold	  Selecting this option enables a workaround for a break-detection
389cb228221SJohan Hovold	  erratum for Freescale 16550 UARTs in the 8250 driver. It also
390cb228221SJohan Hovold	  enables support for ACPI enumeration.
3919bef3d41SPaul Gortmaker
392e34a79d0SMatthew Gerlachconfig SERIAL_8250_DFL
393e34a79d0SMatthew Gerlach	tristate "DFL bus driver for Altera 16550 UART"
394e34a79d0SMatthew Gerlach	depends on SERIAL_8250 && FPGA_DFL
395e34a79d0SMatthew Gerlach	help
396e34a79d0SMatthew Gerlach	  This option enables support for a Device Feature List (DFL) bus
397e34a79d0SMatthew Gerlach	  driver for the Altera 16550 UART. One or more Altera 16550 UARTs
398e34a79d0SMatthew Gerlach	  can be instantiated in a FPGA and then be discovered during
399e34a79d0SMatthew Gerlach	  enumeration of the DFL bus.
400e34a79d0SMatthew Gerlach
401e34a79d0SMatthew Gerlach	  To compile this driver as a module, chose M here: the
402e34a79d0SMatthew Gerlach	  module will be called 8250_dfl.
403e34a79d0SMatthew Gerlach
4049bef3d41SPaul Gortmakerconfig SERIAL_8250_DW
4059bef3d41SPaul Gortmaker	tristate "Support for Synopsys DesignWare 8250 quirks"
4066a7320c4SHeikki Krogerus	depends on SERIAL_8250
4074d5675c3SAndy Shevchenko	select SERIAL_8250_DWLIB
4089bef3d41SPaul Gortmaker	help
4099bef3d41SPaul Gortmaker	  Selecting this option will enable handling of the extra features
4109bef3d41SPaul Gortmaker	  present in the Synopsys DesignWare APB UART.
41122886ee9SMagnus Damm
41222886ee9SMagnus Dammconfig SERIAL_8250_EM
41346e99c4aSMasanari Iida	tristate "Support for Emma Mobile integrated serial port"
414b1442c55SJohan Hovold	depends on SERIAL_8250 && HAVE_CLK
415857f9713SPhil Edworthy	depends on ARCH_RENESAS || COMPILE_TEST
41622886ee9SMagnus Damm	help
41722886ee9SMagnus Damm	  Selecting this option will add support for the integrated serial
41822886ee9SMagnus Damm	  port hardware found on the Emma Mobile line of processors.
41922886ee9SMagnus Damm	  If unsure, say N.
420c420811fSJohn Crispin
4210ce5ebd2SThomas Bogendoerferconfig SERIAL_8250_IOC3
4220ce5ebd2SThomas Bogendoerfer	tristate "SGI IOC3 8250 UART support"
423b1442c55SJohan Hovold	depends on SERIAL_8250
424b1442c55SJohan Hovold	depends on SGI_MFD_IOC3 || COMPILE_TEST
4250ce5ebd2SThomas Bogendoerfer	select SERIAL_8250_EXTENDED
4260ce5ebd2SThomas Bogendoerfer	select SERIAL_8250_SHARE_IRQ
4270ce5ebd2SThomas Bogendoerfer	help
4280ce5ebd2SThomas Bogendoerfer	  Enable this if you have a SGI Origin or Octane machine. This module
4290ce5ebd2SThomas Bogendoerfer	  provides basic serial support by directly driving the UART chip
4300ce5ebd2SThomas Bogendoerfer	  behind the IOC3 device on those systems.  Maximum baud speed is
4310ce5ebd2SThomas Bogendoerfer	  38400bps using this driver.
4320ce5ebd2SThomas Bogendoerfer
433c420811fSJohn Crispinconfig SERIAL_8250_RT288X
434c420811fSJohn Crispin	bool "Ralink RT288x/RT305x/RT3662/RT3883 serial port support"
4359b2256c8SMans Rullgard	depends on SERIAL_8250
4369b2256c8SMans Rullgard	default y if MIPS_ALCHEMY || SOC_RT288X || SOC_RT305X || SOC_RT3883 || SOC_MT7620
437c420811fSJohn Crispin	help
4389b2256c8SMans Rullgard	  Selecting this option will add support for the alternate register
4399b2256c8SMans Rullgard	  layout used by Ralink RT288x/RT305x, Alchemy Au1xxx, and some others.
4409b2256c8SMans Rullgard	  If unsure, say N.
44128e3fb6cSRicardo Ribalda Delgado
44261929cf0SSebastian Andrzej Siewiorconfig SERIAL_8250_OMAP
44361929cf0SSebastian Andrzej Siewior	tristate "Support for OMAP internal UART (8250 based driver)"
4448720037dSJohan Hovold	depends on SERIAL_8250
4458720037dSJohan Hovold	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
44661929cf0SSebastian Andrzej Siewior	help
44761929cf0SSebastian Andrzej Siewior	  If you have a machine based on an Texas Instruments OMAP CPU you
44861929cf0SSebastian Andrzej Siewior	  can enable its onboard serial ports by enabling this option.
44961929cf0SSebastian Andrzej Siewior
45061929cf0SSebastian Andrzej Siewior	  This driver uses ttyS instead of ttyO.
45161929cf0SSebastian Andrzej Siewior
45200648d02SSebastian Andrzej Siewiorconfig SERIAL_8250_OMAP_TTYO_FIXUP
45300648d02SSebastian Andrzej Siewior	bool "Replace ttyO with ttyS"
45400648d02SSebastian Andrzej Siewior	depends on SERIAL_8250_OMAP=y && SERIAL_8250_CONSOLE
45500648d02SSebastian Andrzej Siewior	default y
45600648d02SSebastian Andrzej Siewior	help
45700648d02SSebastian Andrzej Siewior	  This option replaces the "console=ttyO" argument with the matching
45800648d02SSebastian Andrzej Siewior	  ttyS argument if the user did not specified it on the command line.
45900648d02SSebastian Andrzej Siewior	  This ensures that the user can see the kernel output during boot
46000648d02SSebastian Andrzej Siewior	  which he wouldn't see otherwise. The getty has still to be configured
46100648d02SSebastian Andrzej Siewior	  for ttyS instead of ttyO regardless of this option.
46200648d02SSebastian Andrzej Siewior	  This option is intended for people who "automatically" enable this
46300648d02SSebastian Andrzej Siewior	  driver without knowing that this driver requires a different console=
46400648d02SSebastian Andrzej Siewior	  argument. If you read this, please keep this option disabled and
46500648d02SSebastian Andrzej Siewior	  instead update your kernel command line. If you prepare a kernel for a
46600648d02SSebastian Andrzej Siewior	  distribution or other kind of larger user base then you probably want
46700648d02SSebastian Andrzej Siewior	  to keep this option enabled. Otherwise people might complain about a
46800648d02SSebastian Andrzej Siewior	  not booting kernel because the serial console remains silent in case
46900648d02SSebastian Andrzej Siewior	  they forgot to update the command line.
47000648d02SSebastian Andrzej Siewior
471d2aef35aSJoachim Eastwoodconfig SERIAL_8250_LPC18XX
4720b1dd999SPaul Gortmaker	tristate "NXP LPC18xx/43xx serial port support"
473d2aef35aSJoachim Eastwood	depends on SERIAL_8250 && OF && (ARCH_LPC18XX || COMPILE_TEST)
474d2aef35aSJoachim Eastwood	default ARCH_LPC18XX
475d2aef35aSJoachim Eastwood	help
476d2aef35aSJoachim Eastwood	  If you have a LPC18xx/43xx based board and want to use the
477d2aef35aSJoachim Eastwood	  serial port, say Y to this option. If unsure, say Y.
478d2aef35aSJoachim Eastwood
479b4756f4fSMatthias Bruggerconfig SERIAL_8250_MT6577
4803f5921a6SArnd Bergmann	tristate "Mediatek serial port support"
4818720037dSJohan Hovold	depends on SERIAL_8250
4828720037dSJohan Hovold	depends on ARCH_MEDIATEK || COMPILE_TEST
483b4756f4fSMatthias Brugger	help
484b4756f4fSMatthias Brugger	  If you have a Mediatek based board and want to use the
485b4756f4fSMatthias Brugger	  serial port, say Y to this option. If unsure, say N.
4861a8d2903SMasahiro Yamada
4871a8d2903SMasahiro Yamadaconfig SERIAL_8250_UNIPHIER
4881a8d2903SMasahiro Yamada	tristate "Support for UniPhier on-chip UART"
4898d6d544cSMasahiro Yamada	depends on SERIAL_8250
4908d6d544cSMasahiro Yamada	depends on ARCH_UNIPHIER || COMPILE_TEST
4911a8d2903SMasahiro Yamada	help
4921a8d2903SMasahiro Yamada	  If you have a UniPhier based board and want to use the on-chip
4931a8d2903SMasahiro Yamada	  serial ports, say Y to this option. If unsure, say N.
49478c10e55SLinus Torvalds
4950cf985f4SPaul Burtonconfig SERIAL_8250_INGENIC
4967d774fb8SArnd Bergmann	tristate "Support for Ingenic SoC serial ports"
4977d774fb8SArnd Bergmann	depends on SERIAL_8250
498755dd8aaSMasahiro Yamada	depends on OF_FLATTREE
4997d774fb8SArnd Bergmann	depends on MIPS || COMPILE_TEST
5000cf985f4SPaul Burton	help
5010cf985f4SPaul Burton	  If you have a system using an Ingenic SoC and wish to make use of
5020cf985f4SPaul Burton	  its UARTs, say Y to this option. If unsure, say N.
503d9eda9baSHeikki Krogerus
504a13e19cfSAndy Shevchenkoconfig SERIAL_8250_LPSS
505dce22df1SJean Delvare	tristate "Support for serial ports on Intel LPSS platforms"
506a13e19cfSAndy Shevchenko	default SERIAL_8250
507a13e19cfSAndy Shevchenko	depends on SERIAL_8250 && PCI
508a13e19cfSAndy Shevchenko	depends on X86 || COMPILE_TEST
509bf414f55SAndy Shevchenko	select SERIAL_8250_DWLIB
510a13e19cfSAndy Shevchenko	select DW_DMAC_CORE if SERIAL_8250_DMA
511a13e19cfSAndy Shevchenko	select DW_DMAC_PCI if (SERIAL_8250_DMA && X86_INTEL_LPSS)
512a13e19cfSAndy Shevchenko	select RATIONAL
513a13e19cfSAndy Shevchenko	help
5146ba6351bSMaciej W. Rozycki	  Selecting this option will enable handling of the UART found on
5156ba6351bSMaciej W. Rozycki	  various Intel platforms such as:
516a13e19cfSAndy Shevchenko	    - Intel Baytrail SoC
517a13e19cfSAndy Shevchenko	    - Intel Braswell SoC
5186bb5d75eSAndy Shevchenko	    - Intel Quark X1000 SoC
5196ba6351bSMaciej W. Rozycki	  that are not covered by the more generic SERIAL_8250_PCI option.
520a13e19cfSAndy Shevchenko
521d9eda9baSHeikki Krogerusconfig SERIAL_8250_MID
52219458893SJean Delvare	tristate "Support for serial ports on Intel MID platforms"
5231fc969c7SAndy Shevchenko	default SERIAL_8250
524d9eda9baSHeikki Krogerus	depends on SERIAL_8250 && PCI
5251fc969c7SAndy Shevchenko	depends on X86 || COMPILE_TEST
526ec2f1b67SHeikki Krogerus	select HSU_DMA if SERIAL_8250_DMA
5270ff42305SHeikki Krogerus	select HSU_DMA_PCI if (HSU_DMA && X86_INTEL_MID)
528fa70045eSHeikki Krogerus	select RATIONAL
529d9eda9baSHeikki Krogerus	help
5306ba6351bSMaciej W. Rozycki	  Selecting this option will enable handling of the UART found on
5316ba6351bSMaciej W. Rozycki	  Intel Medfield SOC and various other Intel platforms that is not
5326ba6351bSMaciej W. Rozycki	  covered by the more generic SERIAL_8250_PCI option.
533afd7f88fSArnd Bergmann
534fcfd3c09SAndy Shevchenkoconfig SERIAL_8250_PERICOM
535fcfd3c09SAndy Shevchenko	tristate "Support for Pericom and Acces I/O serial ports"
536fcfd3c09SAndy Shevchenko	default SERIAL_8250
537fcfd3c09SAndy Shevchenko	depends on SERIAL_8250 && PCI
538fcfd3c09SAndy Shevchenko	help
5396ba6351bSMaciej W. Rozycki	  Selecting this option will enable handling of the Pericom and Acces
5406ba6351bSMaciej W. Rozycki	  I/O UARTs that are not covered by the more generic SERIAL_8250_PCI
5416ba6351bSMaciej W. Rozycki	  option.
542fcfd3c09SAndy Shevchenko
543ab28f51cSSergey Yanovichconfig SERIAL_8250_PXA
544ab28f51cSSergey Yanovich	tristate "PXA serial port support"
545ab28f51cSSergey Yanovich	depends on SERIAL_8250
546b1442c55SJohan Hovold	depends on ARCH_PXA || ARCH_MMP || COMPILE_TEST
547ab28f51cSSergey Yanovich	help
548ab28f51cSSergey Yanovich	  If you have a machine based on an Intel XScale PXA2xx CPU you can
549ab28f51cSSergey Yanovich	  enable its onboard serial ports by enabling this option. The option is
550ab28f51cSSergey Yanovich	  applicable to both devicetree and legacy boards, and early console is
551ab28f51cSSergey Yanovich	  part of its support.
552ab28f51cSSergey Yanovich
553c6825c63SJeff Brasenconfig SERIAL_8250_TEGRA
554c6825c63SJeff Brasen	tristate "8250 support for Tegra serial ports"
555c6825c63SJeff Brasen	default SERIAL_8250
556c6825c63SJeff Brasen	depends on SERIAL_8250
557c6825c63SJeff Brasen	depends on ARCH_TEGRA || COMPILE_TEST
558c6825c63SJeff Brasen	help
559c6825c63SJeff Brasen	  Select this option if you have machine with an NVIDIA Tegra SoC and
560c6825c63SJeff Brasen	  wish to enable 8250 serial driver for the Tegra serial interfaces.
561c6825c63SJeff Brasen
56241a46948SAl Cooperconfig SERIAL_8250_BCM7271
56341a46948SAl Cooper	tristate "Broadcom 8250 based serial port"
56441a46948SAl Cooper	depends on SERIAL_8250 && (ARCH_BRCMSTB || COMPILE_TEST)
56541a46948SAl Cooper	default ARCH_BRCMSTB
56641a46948SAl Cooper	help
56741a46948SAl Cooper	  If you have a Broadcom STB based board and want to use the
56841a46948SAl Cooper	  enhanced features of the Broadcom 8250 based serial port,
56941a46948SAl Cooper	  including DMA support and high accuracy BAUD rates, say
57041a46948SAl Cooper	  Y to this option. If unsure, say N.
57141a46948SAl Cooper
5723d5390f4SChaitanya Vadrevuconfig SERIAL_8250_NI
5733d5390f4SChaitanya Vadrevu	tristate "NI 16550 based serial port"
5743d5390f4SChaitanya Vadrevu	depends on SERIAL_8250
575*753a55f5SAndy Shevchenko	depends on X86 || COMPILE_TEST
5763d5390f4SChaitanya Vadrevu	help
5773d5390f4SChaitanya Vadrevu	  This driver supports the integrated serial ports on National
5783d5390f4SChaitanya Vadrevu	  Instruments (NI) controller hardware. This is required for all NI
5793d5390f4SChaitanya Vadrevu	  controller models with onboard RS-485 or dual-mode RS-485/RS-232
5803d5390f4SChaitanya Vadrevu	  ports.
5813d5390f4SChaitanya Vadrevu
5823d5390f4SChaitanya Vadrevu	  To compile this driver as a module, choose M here: the module
5833d5390f4SChaitanya Vadrevu	  will be called 8250_ni.
5843d5390f4SChaitanya Vadrevu
585afd7f88fSArnd Bergmannconfig SERIAL_OF_PLATFORM
586afd7f88fSArnd Bergmann	tristate "Devicetree based probing for 8250 ports"
587afd7f88fSArnd Bergmann	depends on SERIAL_8250 && OF
588afd7f88fSArnd Bergmann	help
589afd7f88fSArnd Bergmann	  This option is used for all 8250 compatible serial ports that
590afd7f88fSArnd Bergmann	  are probed through devicetree, including Open Firmware based
591afd7f88fSArnd Bergmann	  PowerPC systems and embedded systems on architectures using the
592afd7f88fSArnd Bergmann	  flattened device tree format.
593