Kconfig 17 KB

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