Kconfig 17 KB

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