xref: /aosp_15_r20/external/coreboot/src/drivers/uart/Kconfig (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1## SPDX-License-Identifier: GPL-2.0-only
2
3config DRIVERS_UART
4	bool
5
6config 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
16config 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.
21config NO_UART_ON_SUPERIO
22	def_bool n
23
24config 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
31config 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
38config DRIVERS_UART_8250MEM
39	bool
40	default n
41	select DRIVERS_UART
42
43config DRIVERS_UART_8250MEM_32
44	bool
45	default n
46	select DRIVERS_UART_8250MEM
47
48config HAVE_UART_SPECIAL
49	bool
50	default n
51	select DRIVERS_UART
52
53config DRIVERS_UART_OXPCIE
54	bool "Oxford OXPCIe952"
55	default n
56	depends on PCI && !DRIVERS_UART_8250MEM_32
57	select DRIVERS_UART_8250MEM
58	select EARLY_PCI_BRIDGE
59	select UART_OVERRIDE_REFCLK
60	help
61	  Support for Oxford OXPCIe952 serial port PCIe cards.
62	  Currently only devices with the vendor ID 0x1415 and device ID
63	  0xc158 or 0xc11b will work.
64
65config DRIVERS_UART_PL011
66	bool
67	default n
68	select HAVE_UART_SPECIAL
69
70config DRIVERS_UART_SIFIVE
71	bool
72	select HAVE_UART_SPECIAL
73	select UART_OVERRIDE_INPUT_CLOCK_DIVIDER
74