forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/tty/serial/8250/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0
12 #
23 # The 8250/16550 serial drivers. You shouldn't be in this list unless
34 # you somehow have an implicit or explicit dependency on SERIAL_8250.
....@@ -7,7 +8,8 @@
78 tristate "8250/16550 and compatible serial support"
89 depends on !S390
910 select SERIAL_CORE
10
- ---help---
11
+ select SERIAL_MCTRL_GPIO if GPIOLIB
12
+ help
1113 This selects whether you want to include the driver for the standard
1214 serial ports. The standard answer is Y. People who might say N
1315 here are those that are setting up dedicated Ethernet WWW/FTP
....@@ -37,7 +39,7 @@
3739 bool "Support 8250_core.* kernel options (DEPRECATED)"
3840 depends on SERIAL_8250
3941 default y
40
- ---help---
42
+ help
4143 In 3.7 we renamed 8250 to 8250_core by mistake, so now we have to
4244 accept kernel parameters in both forms like 8250_core.nr_uarts=4 and
4345 8250.nr_uarts=4. We now renamed the module back to 8250, but if
....@@ -54,14 +56,25 @@
5456 bool "8250/16550 PNP device support" if EXPERT
5557 depends on SERIAL_8250 && PNP
5658 default y
57
- ---help---
59
+ help
5860 This builds standard PNP serial support. You may be able to
5961 disable this feature if you only need legacy serial support.
62
+
63
+config SERIAL_8250_16550A_VARIANTS
64
+ bool "Support for variants of the 16550A serial port"
65
+ depends on SERIAL_8250
66
+ default !X86
67
+ help
68
+ The 8250 driver can probe for many variants of the venerable 16550A
69
+ serial port. Doing so takes additional time at boot.
70
+
71
+ On modern systems, especially those using serial only for a simple
72
+ console, you can say N here.
6073
6174 config SERIAL_8250_FINTEK
6275 bool "Support for Fintek F81216A LPC to 4 UART RS485 API"
6376 depends on SERIAL_8250
64
- ---help---
77
+ help
6578 Selecting this option will add support for the RS485 capabilities
6679 of the Fintek F81216A LPC to 4 UART.
6780
....@@ -75,7 +88,7 @@
7588 depends on SERIAL_8250=y
7689 select SERIAL_CORE_CONSOLE
7790 select SERIAL_EARLYCON
78
- ---help---
91
+ help
7992 If you say Y here, it will be possible to use a serial port as the
8093 system console (the system console is the device which receives all
8194 kernel messages and warnings and which allows logins in single user
....@@ -106,7 +119,7 @@
106119
107120 config SERIAL_8250_GSC
108121 tristate
109
- depends on SERIAL_8250 && GSC
122
+ depends on SERIAL_8250 && PARISC
110123 default SERIAL_8250
111124
112125 config SERIAL_8250_DMA
....@@ -145,7 +158,7 @@
145158 config SERIAL_8250_CS
146159 tristate "8250/16550 PCMCIA device support"
147160 depends on PCMCIA && SERIAL_8250
148
- ---help---
161
+ help
149162 Say Y here to enable support for 16-bit PCMCIA serial devices,
150163 including serial port cards, modems, and the modem functions of
151164 multi-function Ethernet/modem cards. (PCMCIA- or PC-cards are
....@@ -209,7 +222,7 @@
209222 Say Y here if you have dumb serial boards other than the four
210223 standard COM 1/2/3/4 ports. This may happen if you have an AST
211224 FourPort, Accent Async, Boca (read the Boca mini-HOWTO, available
212
- from <http://www.tldp.org/docs.html#howto>), or other custom
225
+ from <https://www.tldp.org/docs.html#howto>), or other custom
213226 serial port hardware which acts similar to standard serial port
214227 hardware. If you only use the standard COM 1/2/3/4 ports, you can
215228 say N here to save some memory. You can also say Y if you have an
....@@ -241,6 +254,9 @@
241254 tristate "Aspeed Virtual UART"
242255 depends on SERIAL_8250
243256 depends on OF
257
+ depends on MFD_SYSCON
258
+ depends on ARCH_ASPEED || COMPILE_TEST
259
+ select REGMAP
244260 help
245261 If you want to use the virtual UART (VUART) device on Aspeed
246262 BMC platforms, enable this option. This enables the 16550A-
....@@ -252,7 +268,7 @@
252268 depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
253269 help
254270 Say Y here if you have a Boca serial board. Please read the Boca
255
- mini-HOWTO, available from <http://www.tldp.org/docs.html#howto>
271
+ mini-HOWTO, available from <https://www.tldp.org/docs.html#howto>
256272
257273 To compile this driver as a module, choose M here: the module
258274 will be called 8250_boca.
....@@ -312,6 +328,9 @@
312328
313329 If you don't have such card, or if unsure, say N.
314330
331
+config SERIAL_8250_DWLIB
332
+ bool
333
+
315334 config SERIAL_8250_ACORN
316335 tristate "Acorn expansion card serial port support"
317336 depends on ARCH_ACORN && SERIAL_8250
....@@ -329,7 +348,7 @@
329348
330349 Features and limitations of the UART are
331350 Registers are similar to 16650 registers,
332
- set bits in the control registers that are unsupported
351
+ set bits in the control registers that are unsupported
333352 are ignored and read back as 0
334353 7/8 bit operation with 1 start and 1 stop bit
335354 8 symbols deep fifo for rx and tx
....@@ -352,6 +371,7 @@
352371 config SERIAL_8250_DW
353372 tristate "Support for Synopsys DesignWare 8250 quirks"
354373 depends on SERIAL_8250
374
+ select SERIAL_8250_DWLIB
355375 help
356376 Selecting this option will enable handling of the extra features
357377 present in the Synopsys DesignWare APB UART.
....@@ -364,6 +384,17 @@
364384 port hardware found on the Emma Mobile line of processors.
365385 If unsure, say N.
366386
387
+config SERIAL_8250_IOC3
388
+ tristate "SGI IOC3 8250 UART support"
389
+ depends on SGI_MFD_IOC3 && SERIAL_8250
390
+ select SERIAL_8250_EXTENDED
391
+ select SERIAL_8250_SHARE_IRQ
392
+ help
393
+ Enable this if you have a SGI Origin or Octane machine. This module
394
+ provides basic serial support by directly driving the UART chip
395
+ behind the IOC3 device on those systems. Maximum baud speed is
396
+ 38400bps using this driver.
397
+
367398 config SERIAL_8250_RT288X
368399 bool "Ralink RT288x/RT305x/RT3662/RT3883 serial port support"
369400 depends on SERIAL_8250
....@@ -375,7 +406,7 @@
375406
376407 config SERIAL_8250_OMAP
377408 tristate "Support for OMAP internal UART (8250 based driver)"
378
- depends on SERIAL_8250 && ARCH_OMAP2PLUS
409
+ depends on SERIAL_8250 && (ARCH_OMAP2PLUS || ARCH_K3)
379410 help
380411 If you have a machine based on an Texas Instruments OMAP CPU you
381412 can enable its onboard serial ports by enabling this option.
....@@ -438,6 +469,7 @@
438469 default SERIAL_8250
439470 depends on SERIAL_8250 && PCI
440471 depends on X86 || COMPILE_TEST
472
+ select SERIAL_8250_DWLIB
441473 select DW_DMAC_CORE if SERIAL_8250_DMA
442474 select DW_DMAC_PCI if (SERIAL_8250_DMA && X86_INTEL_LPSS)
443475 select RATIONAL
....@@ -461,16 +493,6 @@
461493 present on the UART found on Intel Medfield SOC and various other
462494 Intel platforms.
463495
464
-config SERIAL_8250_MOXA
465
- tristate "MOXA SmartIO MUE support"
466
- depends on SERIAL_8250 && PCI
467
- help
468
- Say Y here if you have a Moxa SmartIO MUE multiport serial card.
469
- If unsure, say N.
470
-
471
- This driver can also be built as a module. The module will be called
472
- 8250_moxa. If you want to do that, say M here.
473
-
474496 config SERIAL_8250_PXA
475497 tristate "PXA serial port support"
476498 depends on SERIAL_8250
....@@ -481,6 +503,15 @@
481503 applicable to both devicetree and legacy boards, and early console is
482504 part of its support.
483505
506
+config SERIAL_8250_TEGRA
507
+ tristate "8250 support for Tegra serial ports"
508
+ default SERIAL_8250
509
+ depends on SERIAL_8250
510
+ depends on ARCH_TEGRA || COMPILE_TEST
511
+ help
512
+ Select this option if you have machine with an NVIDIA Tegra SoC and
513
+ wish to enable 8250 serial driver for the Tegra serial interfaces.
514
+
484515 config SERIAL_OF_PLATFORM
485516 tristate "Devicetree based probing for 8250 ports"
486517 depends on SERIAL_8250 && OF