summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/uart/Kconfig
blob: c348187260d1f183638c126bc34ea68a41ebb097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
config SOC_AMD_COMMON_BLOCK_UART
	bool
	default n
	help
	  Select this option to add the common functions for setting up the
	  UART configuration to the build.

if SOC_AMD_COMMON_BLOCK_UART

config AMD_SOC_CONSOLE_UART
	bool "Use integrated AMD SoC UART controller for console"
	default n
	select DRIVERS_UART_8250MEM
	select DRIVERS_UART_8250MEM_32
	select NO_UART_ON_SUPERIO
	select UART_OVERRIDE_REFCLK
	help
	  There are four memory-mapped UARTs controllers at:
	  0: 0xfedc9000
	  1: 0xfedca000
	  2: 0xfedc3000
	  3: 0xfedcf000

config CONSOLE_UART_BASE_ADDRESS
	depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
	hex
	default 0xfedc9000 if UART_FOR_CONSOLE = 0
	default 0xfedca000 if UART_FOR_CONSOLE = 1
	default 0xfedc3000 if UART_FOR_CONSOLE = 2
	default 0xfedcf000 if UART_FOR_CONSOLE = 3

endif # SOC_AMD_COMMON_BLOCK_UART