Debian Codegraph @

src/drivers/uart/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config DRIVERS_UART
4 bool
5
6 config DRIVERS_UART_8250IO
7 # FIXME: Shouldn't have a prompt, should default to n, and
8 # should be selected by boards that have it instead.
9 bool "Serial port on SuperIO"
10 depends on ARCH_X86 || ARCH_PPC64
11 default n if DRIVERS_UART_8250MEM || HAVE_UART_SPECIAL
12 default n if NO_UART_ON_SUPERIO
13 default y
14 select DRIVERS_UART
15
16 config DRIVERS_UART_8250IO_SKIP_INIT
17 def_bool n
18 depends on DRIVERS_UART_8250IO
19
20 # Select this for mainboard without SuperIO serial port.
21 config NO_UART_ON_SUPERIO
22 def_bool n
23
24 config UART_OVERRIDE_INPUT_CLOCK_DIVIDER
25 bool
26 default n
27 help
28 Set to "y" when the platform overrides the uart_input_clock_divider
29 routine.
30
31 config UART_OVERRIDE_REFCLK
32 bool
33 default n
34 help
35 Set to "y" when the platform overrides the uart_platform_refclk
36 routine.
37
38 config UART_BITBANG_TX_DELAY_MS
39 int
40 default 5
41 help
42 This option sets a delay in milliseconds after configuring the
43 UART TX pin. This can help stabilize the line and prevent
44 corruption of the first character transmitted.
45
46 config DRIVERS_UART_8250MEM
47 bool
48 default n
49 select DRIVERS_UART
50
51 config DRIVERS_UART_8250MEM_32
52 bool
53 default n
54 select DRIVERS_UART_8250MEM
55
56 config HAVE_UART_SPECIAL
57 bool
58 default n
59 select DRIVERS_UART
60
61 config DRIVERS_UART_OXPCIE
62 bool "Oxford OXPCIe952"
63 default n
64 depends on PCI && !DRIVERS_UART_8250MEM_32
65 select DRIVERS_UART_8250MEM
66 select EARLY_PCI_BRIDGE
67 select UART_OVERRIDE_REFCLK
68 help
69 Support for Oxford OXPCIe952 serial port PCIe cards.
70 Currently only devices with the vendor ID 0x1415 and device ID
71 0xc158 or 0xc11b will work.
72
73 config DRIVERS_UART_PL011
74 bool
75 default n
76 select HAVE_UART_SPECIAL
77
78 config DRIVERS_UART_SIFIVE
79 bool
80 select HAVE_UART_SPECIAL
81 select UART_OVERRIDE_INPUT_CLOCK_DIVIDER