xref: /linux/drivers/tty/serial/8250/Kconfig (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
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
37835d844dSSean Youngconfig SERIAL_8250_PNP
38835d844dSSean Young	bool "8250/16550 PNP device support" if EXPERT
39835d844dSSean Young	depends on SERIAL_8250 && PNP
40835d844dSSean Young	default y
41a7f7f624SMasahiro Yamada	help
42835d844dSSean Young	  This builds standard PNP serial support. You may be able to
43835d844dSSean Young	  disable this feature if you only need legacy serial support.
44835d844dSSean Young
45dc56ecb8SJosh Triplettconfig SERIAL_8250_16550A_VARIANTS
46dc56ecb8SJosh Triplett	bool "Support for variants of the 16550A serial port"
47dc56ecb8SJosh Triplett	depends on SERIAL_8250
4815a3f03dSJosh Triplett	default !X86
49dc56ecb8SJosh Triplett	help
50dc56ecb8SJosh Triplett	  The 8250 driver can probe for many variants of the venerable 16550A
51dc56ecb8SJosh Triplett	  serial port. Doing so takes additional time at boot.
52dc56ecb8SJosh Triplett
53dc56ecb8SJosh Triplett	  On modern systems, especially those using serial only for a simple
54dc56ecb8SJosh Triplett	  console, you can say N here.
55dc56ecb8SJosh Triplett
56fa01e2caSRicardo Ribalda Delgadoconfig SERIAL_8250_FINTEK
571b997aefSJames Hilliard	bool "Support for Fintek variants"
587c7e6c89SNiklas Schnelle	depends on SERIAL_8250 && HAS_IOPORT
59a7f7f624SMasahiro Yamada	help
601b997aefSJames Hilliard	  Selecting this option will add support for the RS232 and RS485
611b997aefSJames Hilliard	  capabilities of the Fintek F81216A LPC to 4 UART as well similar
621b997aefSJames Hilliard	  variants.
63fa01e2caSRicardo Ribalda Delgado
64fa01e2caSRicardo Ribalda Delgado	  If this option is not selected the device will be configured as a
651b997aefSJames Hilliard	  standard 16550A serial port, however the device may not function
661b997aefSJames Hilliard	  correctly without this option enabled.
67fa01e2caSRicardo Ribalda Delgado
68fa01e2caSRicardo Ribalda Delgado	  If unsure, say N.
69fa01e2caSRicardo Ribalda Delgado
709bef3d41SPaul Gortmakerconfig SERIAL_8250_CONSOLE
719bef3d41SPaul Gortmaker	bool "Console on 8250/16550 and compatible serial port"
729bef3d41SPaul Gortmaker	depends on SERIAL_8250=y
739bef3d41SPaul Gortmaker	select SERIAL_CORE_CONSOLE
74d2fd6810SRob Herring	select SERIAL_EARLYCON
75a7f7f624SMasahiro Yamada	help
769bef3d41SPaul Gortmaker	  If you say Y here, it will be possible to use a serial port as the
779bef3d41SPaul Gortmaker	  system console (the system console is the device which receives all
789bef3d41SPaul Gortmaker	  kernel messages and warnings and which allows logins in single user
799bef3d41SPaul Gortmaker	  mode). This could be useful if some terminal or printer is connected
809bef3d41SPaul Gortmaker	  to that serial port.
819bef3d41SPaul Gortmaker
829bef3d41SPaul Gortmaker	  Even if you say Y here, the currently visible virtual console
839bef3d41SPaul Gortmaker	  (/dev/tty0) will still be used as the system console by default, but
849bef3d41SPaul Gortmaker	  you can alter that using a kernel command line option such as
859bef3d41SPaul Gortmaker	  "console=ttyS1". (Try "man bootparam" or see the documentation of
869bef3d41SPaul Gortmaker	  your boot loader (grub or lilo or loadlin) about how to pass options
879bef3d41SPaul Gortmaker	  to the kernel at boot time.)
889bef3d41SPaul Gortmaker
899bef3d41SPaul Gortmaker	  If you don't have a VGA card installed and you say Y here, the
909bef3d41SPaul Gortmaker	  kernel will automatically use the first serial line, /dev/ttyS0, as
919bef3d41SPaul Gortmaker	  system console.
929bef3d41SPaul Gortmaker
939bef3d41SPaul Gortmaker	  You can set that using a kernel command line option such as
949bef3d41SPaul Gortmaker	  "console=uart8250,io,0x3f8,9600n8"
959bef3d41SPaul Gortmaker	  "console=uart8250,mmio,0xff5e0000,115200n8".
969bef3d41SPaul Gortmaker	  and it will switch to normal serial console when the corresponding
979bef3d41SPaul Gortmaker	  port is ready.
989bef3d41SPaul Gortmaker	  "earlycon=uart8250,io,0x3f8,9600n8"
999bef3d41SPaul Gortmaker	  "earlycon=uart8250,mmio,0xff5e0000,115200n8".
1009bef3d41SPaul Gortmaker	  it will not only setup early console.
1019bef3d41SPaul Gortmaker
1029bef3d41SPaul Gortmaker	  If unsure, say N.
1039bef3d41SPaul Gortmaker
1049e4e2ce1SHelge Dellerconfig SERIAL_8250_PARISC
1059bef3d41SPaul Gortmaker	tristate
106e8a18e3fSHelge Deller	depends on SERIAL_8250 && PARISC
1079bef3d41SPaul Gortmaker	default SERIAL_8250
1089bef3d41SPaul Gortmaker
1099ee4b83eSHeikki Krogerusconfig SERIAL_8250_DMA
1109ee4b83eSHeikki Krogerus	bool "DMA support for 16550 compatible UART controllers" if EXPERT
1119ee4b83eSHeikki Krogerus	depends on SERIAL_8250 && DMADEVICES=y
1129ee4b83eSHeikki Krogerus	default SERIAL_8250
1139ee4b83eSHeikki Krogerus	help
1149ee4b83eSHeikki Krogerus	  This builds DMA support that can be used with 8250/16650
1159ee4b83eSHeikki Krogerus	  compatible UART controllers that support DMA signaling.
1169ee4b83eSHeikki Krogerus
1170348386dSKumaravel Thiagarajanconfig SERIAL_8250_PCILIB
1180348386dSKumaravel Thiagarajan	bool
1191ec88914SRandy Dunlap	depends on SERIAL_8250 && PCI
1200348386dSKumaravel Thiagarajan
1219bef3d41SPaul Gortmakerconfig SERIAL_8250_PCI
122f1e8c710SJean Delvare	tristate "8250/16550 PCI device support"
1239bef3d41SPaul Gortmaker	depends on SERIAL_8250 && PCI
1240348386dSKumaravel Thiagarajan	select SERIAL_8250_PCILIB
1259bef3d41SPaul Gortmaker	default SERIAL_8250
1269bef3d41SPaul Gortmaker	help
1279bef3d41SPaul Gortmaker	  This builds standard PCI serial support. You may be able to
1289bef3d41SPaul Gortmaker	  disable this feature if you only need legacy serial support.
1299bef3d41SPaul Gortmaker	  Saves about 9K.
130972ce085SStefan Seyfried	  Note that serial ports on NetMos 9835 Multi-I/O cards are handled
131972ce085SStefan Seyfried	  by the parport_serial driver, enabled with CONFIG_PARPORT_SERIAL.
1329bef3d41SPaul Gortmaker
133d0aeaa83SSudip Mukherjeeconfig SERIAL_8250_EXAR
13449e1590cSPaul Gortmaker	tristate "8250/16550 Exar/Commtech PCI/PCIe device support"
1355939ff7fSIlpo Järvinen	depends on SERIAL_8250 && PCI
136d813d900SAndy Shevchenko	select SERIAL_8250_PCILIB
13785eb2e57SParker Newman	select EEPROM_93CX6
1385d1a2388SSudip Mukherjee	default SERIAL_8250
13949e1590cSPaul Gortmaker	help
14049e1590cSPaul Gortmaker	  This builds support for XR17C1xx, XR17V3xx and some Commtech
14149e1590cSPaul Gortmaker	  422x PCIe serial cards that are not covered by the more generic
14249e1590cSPaul Gortmaker	  SERIAL_8250_PCI option.
143d0aeaa83SSudip Mukherjee
1449bef3d41SPaul Gortmakerconfig SERIAL_8250_HP300
1459bef3d41SPaul Gortmaker	tristate
1469bef3d41SPaul Gortmaker	depends on SERIAL_8250 && HP300
1479bef3d41SPaul Gortmaker	default SERIAL_8250
1489bef3d41SPaul Gortmaker
1499bef3d41SPaul Gortmakerconfig SERIAL_8250_CS
1509bef3d41SPaul Gortmaker	tristate "8250/16550 PCMCIA device support"
1517c7e6c89SNiklas Schnelle	depends on PCMCIA && SERIAL_8250 && HAS_IOPORT
152a7f7f624SMasahiro Yamada	help
1539bef3d41SPaul Gortmaker	  Say Y here to enable support for 16-bit PCMCIA serial devices,
1549bef3d41SPaul Gortmaker	  including serial port cards, modems, and the modem functions of
1559bef3d41SPaul Gortmaker	  multi-function Ethernet/modem cards. (PCMCIA- or PC-cards are
1569bef3d41SPaul Gortmaker	  credit-card size devices often used with laptops.)
1579bef3d41SPaul Gortmaker
1589bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the
1599bef3d41SPaul Gortmaker	  module will be called serial_cs.
1609bef3d41SPaul Gortmaker
1619bef3d41SPaul Gortmaker	  If unsure, say N.
1629bef3d41SPaul Gortmaker
163562e6ef8SMichael Moeseconfig SERIAL_8250_MEN_MCB
164e2fea54eSMichael Moese	tristate "MEN MCB UART device support"
165562e6ef8SMichael Moese	depends on MCB && SERIAL_8250
166562e6ef8SMichael Moese	help
167562e6ef8SMichael Moese	  This enables support for FPGA based UARTs found on many MEN
168e2fea54eSMichael Moese	  boards. This driver enables support for the 16z025, 16z057
169e2fea54eSMichael Moese	  and 16z125 UARTs.
170562e6ef8SMichael Moese
171562e6ef8SMichael Moese	  To compile this driver as a module, chose M here: the
172562e6ef8SMichael Moese	  module will be called 8250_men_mcb.
173562e6ef8SMichael Moese
174562e6ef8SMichael Moese
1759bef3d41SPaul Gortmakerconfig SERIAL_8250_NR_UARTS
1769bef3d41SPaul Gortmaker	int "Maximum number of 8250/16550 serial ports"
1779bef3d41SPaul Gortmaker	depends on SERIAL_8250
1789bef3d41SPaul Gortmaker	default "4"
1799bef3d41SPaul Gortmaker	help
1809bef3d41SPaul Gortmaker	  Set this to the number of serial ports you want the driver
1819bef3d41SPaul Gortmaker	  to support.  This includes any ports discovered via ACPI or
1829bef3d41SPaul Gortmaker	  PCI enumeration and any ports that may be added at run-time
1839bef3d41SPaul Gortmaker	  via hot-plug, or any ISA multi-port serial cards.
1849bef3d41SPaul Gortmaker
1859bef3d41SPaul Gortmakerconfig SERIAL_8250_RUNTIME_UARTS
1869bef3d41SPaul Gortmaker	int "Number of 8250/16550 serial ports to register at runtime"
1879bef3d41SPaul Gortmaker	depends on SERIAL_8250
1889bef3d41SPaul Gortmaker	range 0 SERIAL_8250_NR_UARTS
1899bef3d41SPaul Gortmaker	default "4"
1909bef3d41SPaul Gortmaker	help
1919bef3d41SPaul Gortmaker	  Set this to the maximum number of serial ports you want
1929bef3d41SPaul Gortmaker	  the kernel to register at boot time.  This can be overridden
1939bef3d41SPaul Gortmaker	  with the module parameter "nr_uarts", or boot-time parameter
1949bef3d41SPaul Gortmaker	  8250.nr_uarts
1959bef3d41SPaul Gortmaker
1969bef3d41SPaul Gortmakerconfig SERIAL_8250_EXTENDED
1979bef3d41SPaul Gortmaker	bool "Extended 8250/16550 serial driver options"
1989bef3d41SPaul Gortmaker	depends on SERIAL_8250
1999bef3d41SPaul Gortmaker	help
2009bef3d41SPaul Gortmaker	  If you wish to use any non-standard features of the standard "dumb"
2019bef3d41SPaul Gortmaker	  driver, say Y here. This includes HUB6 support, shared serial
2029bef3d41SPaul Gortmaker	  interrupts, special multiport support, support for more than the
2039bef3d41SPaul Gortmaker	  four COM 1/2/3/4 boards, etc.
2049bef3d41SPaul Gortmaker
2059bef3d41SPaul Gortmaker	  Note that the answer to this question won't directly affect the
2069bef3d41SPaul Gortmaker	  kernel: saying N will just cause the configurator to skip all
2079bef3d41SPaul Gortmaker	  the questions about serial driver options. If unsure, say N.
2089bef3d41SPaul Gortmaker
2091ec88914SRandy Dunlapconfig SERIAL_8250_SHARE_IRQ
2101ec88914SRandy Dunlap	bool "Support for sharing serial interrupts"
2111ec88914SRandy Dunlap	depends on SERIAL_8250_EXTENDED
2121ec88914SRandy Dunlap	help
2131ec88914SRandy Dunlap	  Some serial boards have hardware support which allows multiple dumb
2141ec88914SRandy Dunlap	  serial ports on the same board to share a single IRQ. To enable
2151ec88914SRandy Dunlap	  support for this in the serial driver, say Y here.
2161ec88914SRandy Dunlap
2171ec88914SRandy Dunlapconfig SERIAL_8250_DETECT_IRQ
2181ec88914SRandy Dunlap	bool "Autodetect IRQ on standard ports (unsafe)"
2191ec88914SRandy Dunlap	depends on SERIAL_8250_EXTENDED
2201ec88914SRandy Dunlap	help
2211ec88914SRandy Dunlap	  Say Y here if you want the kernel to try to guess which IRQ
2221ec88914SRandy Dunlap	  to use for your serial port.
2231ec88914SRandy Dunlap
2241ec88914SRandy Dunlap	  This is considered unsafe; it is far better to configure the IRQ in
2251ec88914SRandy Dunlap	  a boot script using the setserial command.
2261ec88914SRandy Dunlap
2271ec88914SRandy Dunlap	  If unsure, say N.
2281ec88914SRandy Dunlap
2291ec88914SRandy Dunlapconfig SERIAL_8250_RSA
2301ec88914SRandy Dunlap	bool "Support RSA serial ports"
2311ec88914SRandy Dunlap	depends on SERIAL_8250_EXTENDED
2321ec88914SRandy Dunlap	help
2331ec88914SRandy Dunlap	  Say Y here if you have a IODATA RSA-DV II/S ISA card and
2341ec88914SRandy Dunlap	  would like to use its >115kbps speeds.
2351ec88914SRandy Dunlap	  You will need to provide module parameter "probe_rsa", or boot-time
2361ec88914SRandy Dunlap	  parameter 8250.probe_rsa with I/O addresses of this card then.
2371ec88914SRandy Dunlap
2381ec88914SRandy Dunlap	  If you don't have such card, or if unsure, say N.
2391ec88914SRandy Dunlap
2409bef3d41SPaul Gortmakerconfig SERIAL_8250_MANY_PORTS
2419bef3d41SPaul Gortmaker	bool "Support more than 4 legacy serial ports"
242cf8e8658SArd Biesheuvel	depends on SERIAL_8250_EXTENDED
2439bef3d41SPaul Gortmaker	help
2449bef3d41SPaul Gortmaker	  Say Y here if you have dumb serial boards other than the four
2459bef3d41SPaul Gortmaker	  standard COM 1/2/3/4 ports. This may happen if you have an AST
2469bef3d41SPaul Gortmaker	  FourPort, Accent Async, Boca (read the Boca mini-HOWTO, available
247d4c2b4e7SAlexander A. Klimov	  from <https://www.tldp.org/docs.html#howto>), or other custom
2489bef3d41SPaul Gortmaker	  serial port hardware which acts similar to standard serial port
2499bef3d41SPaul Gortmaker	  hardware. If you only use the standard COM 1/2/3/4 ports, you can
2509bef3d41SPaul Gortmaker	  say N here to save some memory. You can also say Y if you have an
251f76edd8fSJiri Slaby	  "intelligent" multiport card such as Digiboards, etc.
2529bef3d41SPaul Gortmaker
2539bef3d41SPaul Gortmaker#
2549bef3d41SPaul Gortmaker# Multi-port serial cards
2559bef3d41SPaul Gortmaker#
2569bef3d41SPaul Gortmaker
2579bef3d41SPaul Gortmakerconfig SERIAL_8250_FOURPORT
2589bef3d41SPaul Gortmaker	tristate "Support Fourport cards"
2599bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2609bef3d41SPaul Gortmaker	help
2619bef3d41SPaul Gortmaker	  Say Y here if you have an AST FourPort serial board.
2629bef3d41SPaul Gortmaker
2639bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2649bef3d41SPaul Gortmaker	  will be called 8250_fourport.
2659bef3d41SPaul Gortmaker
2669bef3d41SPaul Gortmakerconfig SERIAL_8250_ACCENT
2679bef3d41SPaul Gortmaker	tristate "Support Accent cards"
2689bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2699bef3d41SPaul Gortmaker	help
2709bef3d41SPaul Gortmaker	  Say Y here if you have an Accent Async serial board.
2719bef3d41SPaul Gortmaker
2729bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2739bef3d41SPaul Gortmaker	  will be called 8250_accent.
2749bef3d41SPaul Gortmaker
2759bef3d41SPaul Gortmakerconfig SERIAL_8250_BOCA
2769bef3d41SPaul Gortmaker	tristate "Support Boca cards"
2779bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2789bef3d41SPaul Gortmaker	help
2799bef3d41SPaul Gortmaker	  Say Y here if you have a Boca serial board.  Please read the Boca
280d4c2b4e7SAlexander A. Klimov	  mini-HOWTO, available from <https://www.tldp.org/docs.html#howto>
2819bef3d41SPaul Gortmaker
2829bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2839bef3d41SPaul Gortmaker	  will be called 8250_boca.
2849bef3d41SPaul Gortmaker
2859bef3d41SPaul Gortmakerconfig SERIAL_8250_EXAR_ST16C554
2869bef3d41SPaul Gortmaker	tristate "Support Exar ST16C554/554D Quad UART"
2879bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2889bef3d41SPaul Gortmaker	help
2899bef3d41SPaul Gortmaker	  The Uplogix Envoy TU301 uses this Exar Quad UART.  If you are
2909bef3d41SPaul Gortmaker	  tinkering with your Envoy TU301, or have a machine with this UART,
2919bef3d41SPaul Gortmaker	  say Y here.
2929bef3d41SPaul Gortmaker
2939bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
2949bef3d41SPaul Gortmaker	  will be called 8250_exar_st16c554.
2959bef3d41SPaul Gortmaker
2969bef3d41SPaul Gortmakerconfig SERIAL_8250_HUB6
2979bef3d41SPaul Gortmaker	tristate "Support Hub6 cards"
2989bef3d41SPaul Gortmaker	depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
2999bef3d41SPaul Gortmaker	help
3009bef3d41SPaul Gortmaker	  Say Y here if you have a HUB6 serial board.
3019bef3d41SPaul Gortmaker
3029bef3d41SPaul Gortmaker	  To compile this driver as a module, choose M here: the module
3039bef3d41SPaul Gortmaker	  will be called 8250_hub6.
3049bef3d41SPaul Gortmaker
30532bb477fSKumaravel Thiagarajanconfig SERIAL_8250_PCI1XXXX
30632bb477fSKumaravel Thiagarajan	tristate "Microchip 8250 based serial port"
30732bb477fSKumaravel Thiagarajan	depends on SERIAL_8250 && PCI
30832bb477fSKumaravel Thiagarajan	select SERIAL_8250_PCILIB
30932bb477fSKumaravel Thiagarajan	help
31032bb477fSKumaravel Thiagarajan	 Select this option if you have a setup with Microchip PCIe
31132bb477fSKumaravel Thiagarajan	 Switch with serial port enabled and wish to enable 8250
31232bb477fSKumaravel Thiagarajan	 serial driver for the serial interface. This driver support
31332bb477fSKumaravel Thiagarajan	 will ensure to support baud rates upto 1.5Mpbs.
31432bb477fSKumaravel Thiagarajan
3151ec88914SRandy Dunlapconfig SERIAL_8250_ASPEED_VUART
3161ec88914SRandy Dunlap	tristate "Aspeed Virtual UART"
3171ec88914SRandy Dunlap	depends on SERIAL_8250
3181ec88914SRandy Dunlap	depends on OF
3191ec88914SRandy Dunlap	depends on MFD_SYSCON
3201ec88914SRandy Dunlap	depends on ARCH_ASPEED || COMPILE_TEST
3211ec88914SRandy Dunlap	select REGMAP
3221ec88914SRandy Dunlap	help
3231ec88914SRandy Dunlap	  If you want to use the virtual UART (VUART) device on Aspeed
3241ec88914SRandy Dunlap	  BMC platforms, enable this option. This enables the 16550A-
3251ec88914SRandy Dunlap	  compatible device on the local LPC bus, giving a UART device
3261ec88914SRandy Dunlap	  with no physical RS232 connections.
3271ec88914SRandy Dunlap
3289bef3d41SPaul Gortmaker#
3299bef3d41SPaul Gortmaker# Misc. options/drivers.
3309bef3d41SPaul Gortmaker#
3319bef3d41SPaul Gortmaker
3329bef3d41SPaul Gortmakerconfig SERIAL_8250_ACORN
3339bef3d41SPaul Gortmaker	tristate "Acorn expansion card serial port support"
3349bef3d41SPaul Gortmaker	depends on ARCH_ACORN && SERIAL_8250
3359bef3d41SPaul Gortmaker	help
3369bef3d41SPaul Gortmaker	  If you have an Atomwide Serial card or Serial Port card for an Acorn
3379bef3d41SPaul Gortmaker	  system, say Y to this option.  The driver can handle 1, 2, or 3 port
3389bef3d41SPaul Gortmaker	  cards.  If unsure, say N.
3399bef3d41SPaul Gortmaker
340bdc5f300SMartin Sperlconfig SERIAL_8250_BCM2835AUX
341bdc5f300SMartin Sperl	tristate "BCM2835 auxiliar mini UART support"
342bdc5f300SMartin Sperl	depends on ARCH_BCM2835 || COMPILE_TEST
343bdc5f300SMartin Sperl	depends on SERIAL_8250 && SERIAL_8250_SHARE_IRQ
344bdc5f300SMartin Sperl	help
345bdc5f300SMartin Sperl	  Support for the BCM2835 auxiliar mini UART.
346bdc5f300SMartin Sperl
347bdc5f300SMartin Sperl	  Features and limitations of the UART are
348bdc5f300SMartin Sperl	    Registers are similar to 16650 registers,
349bdc5f300SMartin Sperl	      set bits in the control registers that are unsupported
350bdc5f300SMartin Sperl	      are ignored and read back as 0
351bdc5f300SMartin Sperl	    7/8 bit operation with 1 start and 1 stop bit
352bdc5f300SMartin Sperl	    8 symbols deep fifo for rx and tx
353bdc5f300SMartin Sperl	    SW controlled RTS and SW readable CTS
354bdc5f300SMartin Sperl	    Clock rate derived from system clock
355bdc5f300SMartin Sperl	    Uses 8 times oversampling (compared to 16 times for 16650)
356bdc5f300SMartin Sperl	    Missing break detection (but break generation)
357bdc5f300SMartin Sperl	    Missing framing error detection
358bdc5f300SMartin Sperl	    Missing parity bit
359bdc5f300SMartin Sperl	    Missing receive time-out interrupt
360bdc5f300SMartin Sperl	    Missing DCD, DSR, DTR and RI signals
361bdc5f300SMartin Sperl
362bdc5f300SMartin Sperl	  If unsure, say N.
363bdc5f300SMartin Sperl
3649bef3d41SPaul Gortmakerconfig SERIAL_8250_FSL
365d9f59cafSUwe Kleine-König	tristate "Freescale 16550 UART support" if COMPILE_TEST && !(PPC || ARM || ARM64)
366d9f59cafSUwe Kleine-König	depends on SERIAL_8250
367d9f59cafSUwe Kleine-König	default SERIAL_8250 if PPC || ARM || ARM64
368cb228221SJohan Hovold	help
369cb228221SJohan Hovold	  Selecting this option enables a workaround for a break-detection
370cb228221SJohan Hovold	  erratum for Freescale 16550 UARTs in the 8250 driver. It also
371cb228221SJohan Hovold	  enables support for ACPI enumeration.
3729bef3d41SPaul Gortmaker
373e34a79d0SMatthew Gerlachconfig SERIAL_8250_DFL
374e34a79d0SMatthew Gerlach	tristate "DFL bus driver for Altera 16550 UART"
375e34a79d0SMatthew Gerlach	depends on SERIAL_8250 && FPGA_DFL
376e34a79d0SMatthew Gerlach	help
377e34a79d0SMatthew Gerlach	  This option enables support for a Device Feature List (DFL) bus
378e34a79d0SMatthew Gerlach	  driver for the Altera 16550 UART. One or more Altera 16550 UARTs
379e34a79d0SMatthew Gerlach	  can be instantiated in a FPGA and then be discovered during
380e34a79d0SMatthew Gerlach	  enumeration of the DFL bus.
381e34a79d0SMatthew Gerlach
382e34a79d0SMatthew Gerlach	  To compile this driver as a module, chose M here: the
383e34a79d0SMatthew Gerlach	  module will be called 8250_dfl.
384e34a79d0SMatthew Gerlach
3859bef3d41SPaul Gortmakerconfig SERIAL_8250_DW
3869bef3d41SPaul Gortmaker	tristate "Support for Synopsys DesignWare 8250 quirks"
3876a7320c4SHeikki Krogerus	depends on SERIAL_8250
3884d5675c3SAndy Shevchenko	select SERIAL_8250_DWLIB
3899bef3d41SPaul Gortmaker	help
3909bef3d41SPaul Gortmaker	  Selecting this option will enable handling of the extra features
3919bef3d41SPaul Gortmaker	  present in the Synopsys DesignWare APB UART.
39222886ee9SMagnus Damm
39322886ee9SMagnus Dammconfig SERIAL_8250_EM
39446e99c4aSMasanari Iida	tristate "Support for Emma Mobile integrated serial port"
395b1442c55SJohan Hovold	depends on SERIAL_8250 && HAVE_CLK
396857f9713SPhil Edworthy	depends on ARCH_RENESAS || COMPILE_TEST
39722886ee9SMagnus Damm	help
39822886ee9SMagnus Damm	  Selecting this option will add support for the integrated serial
39922886ee9SMagnus Damm	  port hardware found on the Emma Mobile line of processors.
40022886ee9SMagnus Damm	  If unsure, say N.
401c420811fSJohn Crispin
4020ce5ebd2SThomas Bogendoerferconfig SERIAL_8250_IOC3
4030ce5ebd2SThomas Bogendoerfer	tristate "SGI IOC3 8250 UART support"
404b1442c55SJohan Hovold	depends on SERIAL_8250
405b1442c55SJohan Hovold	depends on SGI_MFD_IOC3 || COMPILE_TEST
4060ce5ebd2SThomas Bogendoerfer	select SERIAL_8250_EXTENDED
4070ce5ebd2SThomas Bogendoerfer	select SERIAL_8250_SHARE_IRQ
4080ce5ebd2SThomas Bogendoerfer	help
4090ce5ebd2SThomas Bogendoerfer	  Enable this if you have a SGI Origin or Octane machine. This module
4100ce5ebd2SThomas Bogendoerfer	  provides basic serial support by directly driving the UART chip
4110ce5ebd2SThomas Bogendoerfer	  behind the IOC3 device on those systems.  Maximum baud speed is
4120ce5ebd2SThomas Bogendoerfer	  38400bps using this driver.
4130ce5ebd2SThomas Bogendoerfer
414ab9a30d6SGerhard Englederconfig SERIAL_8250_KEBA
415ab9a30d6SGerhard Engleder	tristate "Support for KEBA 8250 UART"
416ab9a30d6SGerhard Engleder	depends on SERIAL_8250
417ab9a30d6SGerhard Engleder	depends on KEBA_CP500
418ab9a30d6SGerhard Engleder	help
419ab9a30d6SGerhard Engleder	  Selecting this option will add support for KEBA UARTs. These UARTs
420ab9a30d6SGerhard Engleder	  are used for the serial interfaces of KEBA PLCs.
421ab9a30d6SGerhard Engleder
422ab9a30d6SGerhard Engleder	  This driver can also be built as a module. If so, the module will
423ab9a30d6SGerhard Engleder	  be called 8250_keba.
424ab9a30d6SGerhard Engleder
425ab9a30d6SGerhard Engleder	  If unsure, say N.
426ab9a30d6SGerhard Engleder
427c420811fSJohn Crispinconfig SERIAL_8250_RT288X
428c420811fSJohn Crispin	bool "Ralink RT288x/RT305x/RT3662/RT3883 serial port support"
4299b2256c8SMans Rullgard	depends on SERIAL_8250
4309b2256c8SMans Rullgard	default y if MIPS_ALCHEMY || SOC_RT288X || SOC_RT305X || SOC_RT3883 || SOC_MT7620
431c420811fSJohn Crispin	help
4329b2256c8SMans Rullgard	  Selecting this option will add support for the alternate register
4339b2256c8SMans Rullgard	  layout used by Ralink RT288x/RT305x, Alchemy Au1xxx, and some others.
4349b2256c8SMans Rullgard	  If unsure, say N.
43528e3fb6cSRicardo Ribalda Delgado
43661929cf0SSebastian Andrzej Siewiorconfig SERIAL_8250_OMAP
43761929cf0SSebastian Andrzej Siewior	tristate "Support for OMAP internal UART (8250 based driver)"
4388720037dSJohan Hovold	depends on SERIAL_8250
4398720037dSJohan Hovold	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
44061929cf0SSebastian Andrzej Siewior	help
44161929cf0SSebastian Andrzej Siewior	  If you have a machine based on an Texas Instruments OMAP CPU you
44261929cf0SSebastian Andrzej Siewior	  can enable its onboard serial ports by enabling this option.
44361929cf0SSebastian Andrzej Siewior
44461929cf0SSebastian Andrzej Siewior	  This driver uses ttyS instead of ttyO.
44561929cf0SSebastian Andrzej Siewior
44600648d02SSebastian Andrzej Siewiorconfig SERIAL_8250_OMAP_TTYO_FIXUP
44700648d02SSebastian Andrzej Siewior	bool "Replace ttyO with ttyS"
44800648d02SSebastian Andrzej Siewior	depends on SERIAL_8250_OMAP=y && SERIAL_8250_CONSOLE
44900648d02SSebastian Andrzej Siewior	default y
45000648d02SSebastian Andrzej Siewior	help
45100648d02SSebastian Andrzej Siewior	  This option replaces the "console=ttyO" argument with the matching
45200648d02SSebastian Andrzej Siewior	  ttyS argument if the user did not specified it on the command line.
45300648d02SSebastian Andrzej Siewior	  This ensures that the user can see the kernel output during boot
45400648d02SSebastian Andrzej Siewior	  which he wouldn't see otherwise. The getty has still to be configured
45500648d02SSebastian Andrzej Siewior	  for ttyS instead of ttyO regardless of this option.
45600648d02SSebastian Andrzej Siewior	  This option is intended for people who "automatically" enable this
45700648d02SSebastian Andrzej Siewior	  driver without knowing that this driver requires a different console=
45800648d02SSebastian Andrzej Siewior	  argument. If you read this, please keep this option disabled and
45900648d02SSebastian Andrzej Siewior	  instead update your kernel command line. If you prepare a kernel for a
46000648d02SSebastian Andrzej Siewior	  distribution or other kind of larger user base then you probably want
46100648d02SSebastian Andrzej Siewior	  to keep this option enabled. Otherwise people might complain about a
46200648d02SSebastian Andrzej Siewior	  not booting kernel because the serial console remains silent in case
46300648d02SSebastian Andrzej Siewior	  they forgot to update the command line.
46400648d02SSebastian Andrzej Siewior
46525e95d76SBinbin Zhouconfig SERIAL_8250_LOONGSON
46625e95d76SBinbin Zhou	tristate "Loongson 8250 based serial port"
46725e95d76SBinbin Zhou	depends on SERIAL_8250
468*502c6b95SRong Zhang	depends on LOONGARCH || MACH_LOONGSON64 || COMPILE_TEST
46925e95d76SBinbin Zhou	help
470*502c6b95SRong Zhang	  If you have a machine based on LoongArch CPU or MIPS-based Loongson
471*502c6b95SRong Zhang	  3A4000 CPU you can enable its onboard serial ports by enabling this
472*502c6b95SRong Zhang	  option. The option is applicable to both devicetree and ACPI, say Y
473*502c6b95SRong Zhang	  to enable this option.
47425e95d76SBinbin Zhou	  If unsure, say N.
47525e95d76SBinbin Zhou
476d2aef35aSJoachim Eastwoodconfig SERIAL_8250_LPC18XX
4770b1dd999SPaul Gortmaker	tristate "NXP LPC18xx/43xx serial port support"
478d2aef35aSJoachim Eastwood	depends on SERIAL_8250 && OF && (ARCH_LPC18XX || COMPILE_TEST)
479d2aef35aSJoachim Eastwood	default ARCH_LPC18XX
480d2aef35aSJoachim Eastwood	help
481d2aef35aSJoachim Eastwood	  If you have a LPC18xx/43xx based board and want to use the
482d2aef35aSJoachim Eastwood	  serial port, say Y to this option. If unsure, say Y.
483d2aef35aSJoachim Eastwood
484b4756f4fSMatthias Bruggerconfig SERIAL_8250_MT6577
4853f5921a6SArnd Bergmann	tristate "Mediatek serial port support"
4868720037dSJohan Hovold	depends on SERIAL_8250
4878720037dSJohan Hovold	depends on ARCH_MEDIATEK || COMPILE_TEST
488b4756f4fSMatthias Brugger	help
489b4756f4fSMatthias Brugger	  If you have a Mediatek based board and want to use the
490b4756f4fSMatthias Brugger	  serial port, say Y to this option. If unsure, say N.
4911a8d2903SMasahiro Yamada
4921a8d2903SMasahiro Yamadaconfig SERIAL_8250_UNIPHIER
4931a8d2903SMasahiro Yamada	tristate "Support for UniPhier on-chip UART"
4948d6d544cSMasahiro Yamada	depends on SERIAL_8250
4958d6d544cSMasahiro Yamada	depends on ARCH_UNIPHIER || COMPILE_TEST
4961a8d2903SMasahiro Yamada	help
4971a8d2903SMasahiro Yamada	  If you have a UniPhier based board and want to use the on-chip
4981a8d2903SMasahiro Yamada	  serial ports, say Y to this option. If unsure, say N.
49978c10e55SLinus Torvalds
5000cf985f4SPaul Burtonconfig SERIAL_8250_INGENIC
5017d774fb8SArnd Bergmann	tristate "Support for Ingenic SoC serial ports"
5027d774fb8SArnd Bergmann	depends on SERIAL_8250
503755dd8aaSMasahiro Yamada	depends on OF_FLATTREE
5047d774fb8SArnd Bergmann	depends on MIPS || COMPILE_TEST
5050cf985f4SPaul Burton	help
5060cf985f4SPaul Burton	  If you have a system using an Ingenic SoC and wish to make use of
5070cf985f4SPaul Burton	  its UARTs, say Y to this option. If unsure, say N.
508d9eda9baSHeikki Krogerus
509a13e19cfSAndy Shevchenkoconfig SERIAL_8250_LPSS
510dce22df1SJean Delvare	tristate "Support for serial ports on Intel LPSS platforms"
511a13e19cfSAndy Shevchenko	default SERIAL_8250
512a13e19cfSAndy Shevchenko	depends on SERIAL_8250 && PCI
513a13e19cfSAndy Shevchenko	depends on X86 || COMPILE_TEST
514bf414f55SAndy Shevchenko	select SERIAL_8250_DWLIB
515a13e19cfSAndy Shevchenko	select DW_DMAC_CORE if SERIAL_8250_DMA
516a13e19cfSAndy Shevchenko	select DW_DMAC_PCI if (SERIAL_8250_DMA && X86_INTEL_LPSS)
517a13e19cfSAndy Shevchenko	select RATIONAL
518a13e19cfSAndy Shevchenko	help
5196ba6351bSMaciej W. Rozycki	  Selecting this option will enable handling of the UART found on
5206ba6351bSMaciej W. Rozycki	  various Intel platforms such as:
521a13e19cfSAndy Shevchenko	    - Intel Baytrail SoC
522a13e19cfSAndy Shevchenko	    - Intel Braswell SoC
5236bb5d75eSAndy Shevchenko	    - Intel Quark X1000 SoC
5246ba6351bSMaciej W. Rozycki	  that are not covered by the more generic SERIAL_8250_PCI option.
525a13e19cfSAndy Shevchenko
526d9eda9baSHeikki Krogerusconfig SERIAL_8250_MID
52719458893SJean Delvare	tristate "Support for serial ports on Intel MID platforms"
5281fc969c7SAndy Shevchenko	default SERIAL_8250
529d9eda9baSHeikki Krogerus	depends on SERIAL_8250 && PCI
5301fc969c7SAndy Shevchenko	depends on X86 || COMPILE_TEST
531ec2f1b67SHeikki Krogerus	select HSU_DMA if SERIAL_8250_DMA
5320ff42305SHeikki Krogerus	select HSU_DMA_PCI if (HSU_DMA && X86_INTEL_MID)
533fa70045eSHeikki Krogerus	select RATIONAL
534d9eda9baSHeikki Krogerus	help
5356ba6351bSMaciej W. Rozycki	  Selecting this option will enable handling of the UART found on
5366ba6351bSMaciej W. Rozycki	  Intel Medfield SOC and various other Intel platforms that is not
5376ba6351bSMaciej W. Rozycki	  covered by the more generic SERIAL_8250_PCI option.
538afd7f88fSArnd Bergmann
539fcfd3c09SAndy Shevchenkoconfig SERIAL_8250_PERICOM
540fcfd3c09SAndy Shevchenko	tristate "Support for Pericom and Acces I/O serial ports"
541fcfd3c09SAndy Shevchenko	default SERIAL_8250
542fcfd3c09SAndy Shevchenko	depends on SERIAL_8250 && PCI
543fcfd3c09SAndy Shevchenko	help
5446ba6351bSMaciej W. Rozycki	  Selecting this option will enable handling of the Pericom and Acces
5456ba6351bSMaciej W. Rozycki	  I/O UARTs that are not covered by the more generic SERIAL_8250_PCI
5466ba6351bSMaciej W. Rozycki	  option.
547fcfd3c09SAndy Shevchenko
548ab28f51cSSergey Yanovichconfig SERIAL_8250_PXA
549ab28f51cSSergey Yanovich	tristate "PXA serial port support"
550ab28f51cSSergey Yanovich	depends on SERIAL_8250
551b1442c55SJohan Hovold	depends on ARCH_PXA || ARCH_MMP || COMPILE_TEST
552ab28f51cSSergey Yanovich	help
553ab28f51cSSergey Yanovich	  If you have a machine based on an Intel XScale PXA2xx CPU you can
554ab28f51cSSergey Yanovich	  enable its onboard serial ports by enabling this option. The option is
555ab28f51cSSergey Yanovich	  applicable to both devicetree and legacy boards, and early console is
556ab28f51cSSergey Yanovich	  part of its support.
557ab28f51cSSergey Yanovich
558c6825c63SJeff Brasenconfig SERIAL_8250_TEGRA
559c6825c63SJeff Brasen	tristate "8250 support for Tegra serial ports"
560c6825c63SJeff Brasen	default SERIAL_8250
561c6825c63SJeff Brasen	depends on SERIAL_8250
562c6825c63SJeff Brasen	depends on ARCH_TEGRA || COMPILE_TEST
563c6825c63SJeff Brasen	help
564c6825c63SJeff Brasen	  Select this option if you have machine with an NVIDIA Tegra SoC and
565c6825c63SJeff Brasen	  wish to enable 8250 serial driver for the Tegra serial interfaces.
566c6825c63SJeff Brasen
56741a46948SAl Cooperconfig SERIAL_8250_BCM7271
56841a46948SAl Cooper	tristate "Broadcom 8250 based serial port"
56941a46948SAl Cooper	depends on SERIAL_8250 && (ARCH_BRCMSTB || COMPILE_TEST)
57041a46948SAl Cooper	default ARCH_BRCMSTB
57141a46948SAl Cooper	help
57241a46948SAl Cooper	  If you have a Broadcom STB based board and want to use the
57341a46948SAl Cooper	  enhanced features of the Broadcom 8250 based serial port,
57441a46948SAl Cooper	  including DMA support and high accuracy BAUD rates, say
57541a46948SAl Cooper	  Y to this option. If unsure, say N.
57641a46948SAl Cooper
5773d5390f4SChaitanya Vadrevuconfig SERIAL_8250_NI
5783d5390f4SChaitanya Vadrevu	tristate "NI 16550 based serial port"
5793d5390f4SChaitanya Vadrevu	depends on SERIAL_8250
580753a55f5SAndy Shevchenko	depends on X86 || COMPILE_TEST
5813d5390f4SChaitanya Vadrevu	help
5823d5390f4SChaitanya Vadrevu	  This driver supports the integrated serial ports on National
5833d5390f4SChaitanya Vadrevu	  Instruments (NI) controller hardware. This is required for all NI
5843d5390f4SChaitanya Vadrevu	  controller models with onboard RS-485 or dual-mode RS-485/RS-232
5853d5390f4SChaitanya Vadrevu	  ports.
5863d5390f4SChaitanya Vadrevu
5873d5390f4SChaitanya Vadrevu	  To compile this driver as a module, choose M here: the module
5883d5390f4SChaitanya Vadrevu	  will be called 8250_ni.
5893d5390f4SChaitanya Vadrevu
590afd7f88fSArnd Bergmannconfig SERIAL_OF_PLATFORM
591afd7f88fSArnd Bergmann	tristate "Devicetree based probing for 8250 ports"
592afd7f88fSArnd Bergmann	depends on SERIAL_8250 && OF
593afd7f88fSArnd Bergmann	help
594afd7f88fSArnd Bergmann	  This option is used for all 8250 compatible serial ports that
595afd7f88fSArnd Bergmann	  are probed through devicetree, including Open Firmware based
596afd7f88fSArnd Bergmann	  PowerPC systems and embedded systems on architectures using the
597afd7f88fSArnd Bergmann	  flattened device tree format.
5981ec88914SRandy Dunlap
5991ec88914SRandy Dunlapconfig SERIAL_8250_DWLIB
6001ec88914SRandy Dunlap	bool
601