Kconfig 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # The 8250/16550 serial drivers. You shouldn't be in this list unless
  4. # you somehow have an implicit or explicit dependency on SERIAL_8250.
  5. #
  6. config SERIAL_8250
  7. tristate "8250/16550 and compatible serial support"
  8. depends on !S390
  9. select SERIAL_CORE
  10. select SERIAL_MCTRL_GPIO if GPIOLIB
  11. help
  12. This selects whether you want to include the driver for the standard
  13. serial ports. The standard answer is Y. People who might say N
  14. here are those that are setting up dedicated Ethernet WWW/FTP
  15. servers, or users that have one of the various bus mice instead of a
  16. serial mouse and don't intend to use their machine's standard serial
  17. port for anything.
  18. To compile this driver as a module, choose M here: the
  19. module will be called 8250.
  20. [WARNING: Do not compile this driver as a module if you are using
  21. non-standard serial ports, since the configuration information will
  22. be lost when the driver is unloaded. This limitation may be lifted
  23. in the future.]
  24. BTW1: If you have a mouseman serial mouse which is not recognized by
  25. the X window system, try running gpm first.
  26. BTW2: If you intend to use a software modem (also called Winmodem)
  27. under Linux, forget it. These modems are crippled and require
  28. proprietary drivers which are only available under Windows.
  29. Most people will say Y or M here, so that they can use serial mice,
  30. modems and similar devices connecting to the standard serial ports.
  31. config SERIAL_8250_DEPRECATED_OPTIONS
  32. bool "Support 8250_core.* kernel options (DEPRECATED)"
  33. depends on SERIAL_8250
  34. default y
  35. help
  36. In 3.7 we renamed 8250 to 8250_core by mistake, so now we have to
  37. accept kernel parameters in both forms like 8250_core.nr_uarts=4 and
  38. 8250.nr_uarts=4. We now renamed the module back to 8250, but if
  39. anybody noticed in 3.7 and changed their userspace we still have to
  40. keep the 8250_core.* options around until they revert the changes
  41. they already did.
  42. If 8250 is built as a module, this adds 8250_core alias instead.
  43. If you did not notice yet and/or you have userspace from pre-3.7, it
  44. is safe (and recommended) to say N here.
  45. config SERIAL_8250_PNP
  46. bool "8250/16550 PNP device support" if EXPERT
  47. depends on SERIAL_8250 && PNP
  48. default y
  49. help
  50. This builds standard PNP serial support. You may be able to
  51. disable this feature if you only need legacy serial support.
  52. config SERIAL_8250_16550A_VARIANTS
  53. bool "Support for variants of the 16550A serial port"
  54. depends on SERIAL_8250
  55. default !X86
  56. help
  57. The 8250 driver can probe for many variants of the venerable 16550A
  58. serial port. Doing so takes additional time at boot.
  59. On modern systems, especially those using serial only for a simple
  60. console, you can say N here.
  61. config SERIAL_8250_FINTEK
  62. bool "Support for Fintek F81216A LPC to 4 UART RS485 API"
  63. depends on SERIAL_8250
  64. help
  65. Selecting this option will add support for the RS485 capabilities
  66. of the Fintek F81216A LPC to 4 UART.
  67. If this option is not selected the device will be configured as a
  68. standard 16550A serial port.
  69. If unsure, say N.
  70. config SERIAL_8250_CONSOLE
  71. bool "Console on 8250/16550 and compatible serial port"
  72. depends on SERIAL_8250=y
  73. select SERIAL_CORE_CONSOLE
  74. select SERIAL_EARLYCON
  75. help
  76. If you say Y here, it will be possible to use a serial port as the
  77. system console (the system console is the device which receives all
  78. kernel messages and warnings and which allows logins in single user
  79. mode). This could be useful if some terminal or printer is connected
  80. to that serial port.
  81. Even if you say Y here, the currently visible virtual console
  82. (/dev/tty0) will still be used as the system console by default, but
  83. you can alter that using a kernel command line option such as
  84. "console=ttyS1". (Try "man bootparam" or see the documentation of
  85. your boot loader (grub or lilo or loadlin) about how to pass options
  86. to the kernel at boot time.)
  87. If you don't have a VGA card installed and you say Y here, the
  88. kernel will automatically use the first serial line, /dev/ttyS0, as
  89. system console.
  90. You can set that using a kernel command line option such as
  91. "console=uart8250,io,0x3f8,9600n8"
  92. "console=uart8250,mmio,0xff5e0000,115200n8".
  93. and it will switch to normal serial console when the corresponding
  94. port is ready.
  95. "earlycon=uart8250,io,0x3f8,9600n8"
  96. "earlycon=uart8250,mmio,0xff5e0000,115200n8".
  97. it will not only setup early console.
  98. If unsure, say N.
  99. config SERIAL_8250_PARISC
  100. tristate
  101. depends on SERIAL_8250 && PARISC
  102. default SERIAL_8250
  103. config SERIAL_8250_DMA
  104. bool "DMA support for 16550 compatible UART controllers" if EXPERT
  105. depends on SERIAL_8250 && DMADEVICES=y
  106. default SERIAL_8250
  107. help
  108. This builds DMA support that can be used with 8250/16650
  109. compatible UART controllers that support DMA signaling.
  110. config SERIAL_8250_PCI
  111. tristate "8250/16550 PCI device support"
  112. depends on SERIAL_8250 && PCI
  113. default SERIAL_8250
  114. help
  115. This builds standard PCI serial support. You may be able to
  116. disable this feature if you only need legacy serial support.
  117. Saves about 9K.
  118. Note that serial ports on NetMos 9835 Multi-I/O cards are handled
  119. by the parport_serial driver, enabled with CONFIG_PARPORT_SERIAL.
  120. config SERIAL_8250_EXAR
  121. tristate "8250/16550 Exar/Commtech PCI/PCIe device support"
  122. depends on SERIAL_8250_PCI
  123. default SERIAL_8250
  124. help
  125. This builds support for XR17C1xx, XR17V3xx and some Commtech
  126. 422x PCIe serial cards that are not covered by the more generic
  127. SERIAL_8250_PCI option.
  128. config SERIAL_8250_HP300
  129. tristate
  130. depends on SERIAL_8250 && HP300
  131. default SERIAL_8250
  132. config SERIAL_8250_CS
  133. tristate "8250/16550 PCMCIA device support"
  134. depends on PCMCIA && SERIAL_8250
  135. help
  136. Say Y here to enable support for 16-bit PCMCIA serial devices,
  137. including serial port cards, modems, and the modem functions of
  138. multi-function Ethernet/modem cards. (PCMCIA- or PC-cards are
  139. credit-card size devices often used with laptops.)
  140. To compile this driver as a module, choose M here: the
  141. module will be called serial_cs.
  142. If unsure, say N.
  143. config SERIAL_8250_MEN_MCB
  144. tristate "MEN MCB UART device support"
  145. depends on MCB && SERIAL_8250
  146. help
  147. This enables support for FPGA based UARTs found on many MEN
  148. boards. This driver enables support for the 16z025, 16z057
  149. and 16z125 UARTs.
  150. To compile this driver as a module, chose M here: the
  151. module will be called 8250_men_mcb.
  152. config SERIAL_8250_NR_UARTS
  153. int "Maximum number of 8250/16550 serial ports"
  154. depends on SERIAL_8250
  155. default "4"
  156. help
  157. Set this to the number of serial ports you want the driver
  158. to support. This includes any ports discovered via ACPI or
  159. PCI enumeration and any ports that may be added at run-time
  160. via hot-plug, or any ISA multi-port serial cards.
  161. config SERIAL_8250_RUNTIME_UARTS
  162. int "Number of 8250/16550 serial ports to register at runtime"
  163. depends on SERIAL_8250
  164. range 0 SERIAL_8250_NR_UARTS
  165. default "4"
  166. help
  167. Set this to the maximum number of serial ports you want
  168. the kernel to register at boot time. This can be overridden
  169. with the module parameter "nr_uarts", or boot-time parameter
  170. 8250.nr_uarts
  171. config SERIAL_8250_EXTENDED
  172. bool "Extended 8250/16550 serial driver options"
  173. depends on SERIAL_8250
  174. help
  175. If you wish to use any non-standard features of the standard "dumb"
  176. driver, say Y here. This includes HUB6 support, shared serial
  177. interrupts, special multiport support, support for more than the
  178. four COM 1/2/3/4 boards, etc.
  179. Note that the answer to this question won't directly affect the
  180. kernel: saying N will just cause the configurator to skip all
  181. the questions about serial driver options. If unsure, say N.
  182. config SERIAL_8250_MANY_PORTS
  183. bool "Support more than 4 legacy serial ports"
  184. depends on SERIAL_8250_EXTENDED && !IA64
  185. help
  186. Say Y here if you have dumb serial boards other than the four
  187. standard COM 1/2/3/4 ports. This may happen if you have an AST
  188. FourPort, Accent Async, Boca (read the Boca mini-HOWTO, available
  189. from <https://www.tldp.org/docs.html#howto>), or other custom
  190. serial port hardware which acts similar to standard serial port
  191. hardware. If you only use the standard COM 1/2/3/4 ports, you can
  192. say N here to save some memory. You can also say Y if you have an
  193. "intelligent" multiport card such as Digiboards, etc.
  194. #
  195. # Multi-port serial cards
  196. #
  197. config SERIAL_8250_FOURPORT
  198. tristate "Support Fourport cards"
  199. depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
  200. help
  201. Say Y here if you have an AST FourPort serial board.
  202. To compile this driver as a module, choose M here: the module
  203. will be called 8250_fourport.
  204. config SERIAL_8250_ACCENT
  205. tristate "Support Accent cards"
  206. depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
  207. help
  208. Say Y here if you have an Accent Async serial board.
  209. To compile this driver as a module, choose M here: the module
  210. will be called 8250_accent.
  211. config SERIAL_8250_ASPEED_VUART
  212. tristate "Aspeed Virtual UART"
  213. depends on SERIAL_8250
  214. depends on OF
  215. depends on MFD_SYSCON
  216. depends on ARCH_ASPEED || COMPILE_TEST
  217. select REGMAP
  218. help
  219. If you want to use the virtual UART (VUART) device on Aspeed
  220. BMC platforms, enable this option. This enables the 16550A-
  221. compatible device on the local LPC bus, giving a UART device
  222. with no physical RS232 connections.
  223. config SERIAL_8250_BOCA
  224. tristate "Support Boca cards"
  225. depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
  226. help
  227. Say Y here if you have a Boca serial board. Please read the Boca
  228. mini-HOWTO, available from <https://www.tldp.org/docs.html#howto>
  229. To compile this driver as a module, choose M here: the module
  230. will be called 8250_boca.
  231. config SERIAL_8250_EXAR_ST16C554
  232. tristate "Support Exar ST16C554/554D Quad UART"
  233. depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
  234. help
  235. The Uplogix Envoy TU301 uses this Exar Quad UART. If you are
  236. tinkering with your Envoy TU301, or have a machine with this UART,
  237. say Y here.
  238. To compile this driver as a module, choose M here: the module
  239. will be called 8250_exar_st16c554.
  240. config SERIAL_8250_HUB6
  241. tristate "Support Hub6 cards"
  242. depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
  243. help
  244. Say Y here if you have a HUB6 serial board.
  245. To compile this driver as a module, choose M here: the module
  246. will be called 8250_hub6.
  247. #
  248. # Misc. options/drivers.
  249. #
  250. config SERIAL_8250_SHARE_IRQ
  251. bool "Support for sharing serial interrupts"
  252. depends on SERIAL_8250_EXTENDED
  253. help
  254. Some serial boards have hardware support which allows multiple dumb
  255. serial ports on the same board to share a single IRQ. To enable
  256. support for this in the serial driver, say Y here.
  257. config SERIAL_8250_DETECT_IRQ
  258. bool "Autodetect IRQ on standard ports (unsafe)"
  259. depends on SERIAL_8250_EXTENDED
  260. help
  261. Say Y here if you want the kernel to try to guess which IRQ
  262. to use for your serial port.
  263. This is considered unsafe; it is far better to configure the IRQ in
  264. a boot script using the setserial command.
  265. If unsure, say N.
  266. config SERIAL_8250_RSA
  267. bool "Support RSA serial ports"
  268. depends on SERIAL_8250_EXTENDED
  269. help
  270. Say Y here if you have a IODATA RSA-DV II/S ISA card and
  271. would like to use its >115kbps speeds.
  272. You will need to provide module parameter "probe_rsa", or boot-time
  273. parameter 8250.probe_rsa with I/O addresses of this card then.
  274. If you don't have such card, or if unsure, say N.
  275. config SERIAL_8250_DWLIB
  276. bool
  277. config SERIAL_8250_ACORN
  278. tristate "Acorn expansion card serial port support"
  279. depends on ARCH_ACORN && SERIAL_8250
  280. help
  281. If you have an Atomwide Serial card or Serial Port card for an Acorn
  282. system, say Y to this option. The driver can handle 1, 2, or 3 port
  283. cards. If unsure, say N.
  284. config SERIAL_8250_BCM2835AUX
  285. tristate "BCM2835 auxiliar mini UART support"
  286. depends on ARCH_BCM2835 || COMPILE_TEST
  287. depends on SERIAL_8250 && SERIAL_8250_SHARE_IRQ
  288. help
  289. Support for the BCM2835 auxiliar mini UART.
  290. Features and limitations of the UART are
  291. Registers are similar to 16650 registers,
  292. set bits in the control registers that are unsupported
  293. are ignored and read back as 0
  294. 7/8 bit operation with 1 start and 1 stop bit
  295. 8 symbols deep fifo for rx and tx
  296. SW controlled RTS and SW readable CTS
  297. Clock rate derived from system clock
  298. Uses 8 times oversampling (compared to 16 times for 16650)
  299. Missing break detection (but break generation)
  300. Missing framing error detection
  301. Missing parity bit
  302. Missing receive time-out interrupt
  303. Missing DCD, DSR, DTR and RI signals
  304. If unsure, say N.
  305. config SERIAL_8250_FSL
  306. bool "Freescale 16550 UART support" if COMPILE_TEST && !(PPC || ARM || ARM64)
  307. depends on SERIAL_8250_CONSOLE
  308. default PPC || ARM || ARM64
  309. help
  310. Selecting this option enables a workaround for a break-detection
  311. erratum for Freescale 16550 UARTs in the 8250 driver. It also
  312. enables support for ACPI enumeration.
  313. config SERIAL_8250_DW
  314. tristate "Support for Synopsys DesignWare 8250 quirks"
  315. depends on SERIAL_8250
  316. select SERIAL_8250_DWLIB
  317. help
  318. Selecting this option will enable handling of the extra features
  319. present in the Synopsys DesignWare APB UART.
  320. config SERIAL_8250_EM
  321. tristate "Support for Emma Mobile integrated serial port"
  322. depends on SERIAL_8250 && HAVE_CLK
  323. depends on ARCH_RENESAS || COMPILE_TEST
  324. help
  325. Selecting this option will add support for the integrated serial
  326. port hardware found on the Emma Mobile line of processors.
  327. If unsure, say N.
  328. config SERIAL_8250_IOC3
  329. tristate "SGI IOC3 8250 UART support"
  330. depends on SERIAL_8250
  331. depends on SGI_MFD_IOC3 || COMPILE_TEST
  332. select SERIAL_8250_EXTENDED
  333. select SERIAL_8250_SHARE_IRQ
  334. help
  335. Enable this if you have a SGI Origin or Octane machine. This module
  336. provides basic serial support by directly driving the UART chip
  337. behind the IOC3 device on those systems. Maximum baud speed is
  338. 38400bps using this driver.
  339. config SERIAL_8250_RT288X
  340. bool "Ralink RT288x/RT305x/RT3662/RT3883 serial port support"
  341. depends on SERIAL_8250
  342. default y if MIPS_ALCHEMY || SOC_RT288X || SOC_RT305X || SOC_RT3883 || SOC_MT7620
  343. help
  344. Selecting this option will add support for the alternate register
  345. layout used by Ralink RT288x/RT305x, Alchemy Au1xxx, and some others.
  346. If unsure, say N.
  347. config SERIAL_8250_OMAP
  348. tristate "Support for OMAP internal UART (8250 based driver)"
  349. depends on SERIAL_8250
  350. depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
  351. help
  352. If you have a machine based on an Texas Instruments OMAP CPU you
  353. can enable its onboard serial ports by enabling this option.
  354. This driver uses ttyS instead of ttyO.
  355. config SERIAL_8250_OMAP_TTYO_FIXUP
  356. bool "Replace ttyO with ttyS"
  357. depends on SERIAL_8250_OMAP=y && SERIAL_8250_CONSOLE
  358. default y
  359. help
  360. This option replaces the "console=ttyO" argument with the matching
  361. ttyS argument if the user did not specified it on the command line.
  362. This ensures that the user can see the kernel output during boot
  363. which he wouldn't see otherwise. The getty has still to be configured
  364. for ttyS instead of ttyO regardless of this option.
  365. This option is intended for people who "automatically" enable this
  366. driver without knowing that this driver requires a different console=
  367. argument. If you read this, please keep this option disabled and
  368. instead update your kernel command line. If you prepare a kernel for a
  369. distribution or other kind of larger user base then you probably want
  370. to keep this option enabled. Otherwise people might complain about a
  371. not booting kernel because the serial console remains silent in case
  372. they forgot to update the command line.
  373. config SERIAL_8250_LPC18XX
  374. tristate "NXP LPC18xx/43xx serial port support"
  375. depends on SERIAL_8250 && OF && (ARCH_LPC18XX || COMPILE_TEST)
  376. default ARCH_LPC18XX
  377. help
  378. If you have a LPC18xx/43xx based board and want to use the
  379. serial port, say Y to this option. If unsure, say Y.
  380. config SERIAL_8250_MT6577
  381. tristate "Mediatek serial port support"
  382. depends on SERIAL_8250
  383. depends on ARCH_MEDIATEK || COMPILE_TEST
  384. help
  385. If you have a Mediatek based board and want to use the
  386. serial port, say Y to this option. If unsure, say N.
  387. config SERIAL_8250_UNIPHIER
  388. tristate "Support for UniPhier on-chip UART"
  389. depends on SERIAL_8250
  390. depends on ARCH_UNIPHIER || COMPILE_TEST
  391. help
  392. If you have a UniPhier based board and want to use the on-chip
  393. serial ports, say Y to this option. If unsure, say N.
  394. config SERIAL_8250_INGENIC
  395. tristate "Support for Ingenic SoC serial ports"
  396. depends on SERIAL_8250
  397. depends on OF_FLATTREE
  398. depends on MIPS || COMPILE_TEST
  399. help
  400. If you have a system using an Ingenic SoC and wish to make use of
  401. its UARTs, say Y to this option. If unsure, say N.
  402. config SERIAL_8250_LPSS
  403. tristate "Support for serial ports on Intel LPSS platforms"
  404. default SERIAL_8250
  405. depends on SERIAL_8250 && PCI
  406. depends on X86 || COMPILE_TEST
  407. select SERIAL_8250_DWLIB
  408. select DW_DMAC_CORE if SERIAL_8250_DMA
  409. select DW_DMAC_PCI if (SERIAL_8250_DMA && X86_INTEL_LPSS)
  410. select RATIONAL
  411. help
  412. Selecting this option will enable handling of the UART found on
  413. various Intel platforms such as:
  414. - Intel Baytrail SoC
  415. - Intel Braswell SoC
  416. - Intel Quark X1000 SoC
  417. that are not covered by the more generic SERIAL_8250_PCI option.
  418. config SERIAL_8250_MID
  419. tristate "Support for serial ports on Intel MID platforms"
  420. default SERIAL_8250
  421. depends on SERIAL_8250 && PCI
  422. depends on X86 || COMPILE_TEST
  423. select HSU_DMA if SERIAL_8250_DMA
  424. select HSU_DMA_PCI if (HSU_DMA && X86_INTEL_MID)
  425. select RATIONAL
  426. help
  427. Selecting this option will enable handling of the UART found on
  428. Intel Medfield SOC and various other Intel platforms that is not
  429. covered by the more generic SERIAL_8250_PCI option.
  430. config SERIAL_8250_PERICOM
  431. tristate "Support for Pericom and Acces I/O serial ports"
  432. default SERIAL_8250
  433. depends on SERIAL_8250 && PCI
  434. help
  435. Selecting this option will enable handling of the Pericom and Acces
  436. I/O UARTs that are not covered by the more generic SERIAL_8250_PCI
  437. option.
  438. config SERIAL_8250_PXA
  439. tristate "PXA serial port support"
  440. depends on SERIAL_8250
  441. depends on ARCH_PXA || ARCH_MMP || COMPILE_TEST
  442. help
  443. If you have a machine based on an Intel XScale PXA2xx CPU you can
  444. enable its onboard serial ports by enabling this option. The option is
  445. applicable to both devicetree and legacy boards, and early console is
  446. part of its support.
  447. config SERIAL_8250_TEGRA
  448. tristate "8250 support for Tegra serial ports"
  449. default SERIAL_8250
  450. depends on SERIAL_8250
  451. depends on ARCH_TEGRA || COMPILE_TEST
  452. help
  453. Select this option if you have machine with an NVIDIA Tegra SoC and
  454. wish to enable 8250 serial driver for the Tegra serial interfaces.
  455. config SERIAL_8250_BCM7271
  456. tristate "Broadcom 8250 based serial port"
  457. depends on SERIAL_8250 && (ARCH_BRCMSTB || COMPILE_TEST)
  458. default ARCH_BRCMSTB
  459. help
  460. If you have a Broadcom STB based board and want to use the
  461. enhanced features of the Broadcom 8250 based serial port,
  462. including DMA support and high accuracy BAUD rates, say
  463. Y to this option. If unsure, say N.
  464. config SERIAL_OF_PLATFORM
  465. tristate "Devicetree based probing for 8250 ports"
  466. depends on SERIAL_8250 && OF
  467. help
  468. This option is used for all 8250 compatible serial ports that
  469. are probed through devicetree, including Open Firmware based
  470. PowerPC systems and embedded systems on architectures using the
  471. flattened device tree format.