soc/intel/xeon_sp/skx: Use Kconfig symbol
[coreboot2.git] / src / soc / amd / stoneyridge / uart.c
blob74b73599585dc28bc4b1b5fe53f290386201eecf
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/gpio.h>
4 #include <amdblocks/uart.h>
5 #include <commonlib/helpers.h>
6 #include <gpio.h>
7 #include <soc/aoac_defs.h>
8 #include <soc/iomap.h>
9 #include <types.h>
11 static const struct soc_uart_ctrlr_info uart_info[] = {
12 [0] = { APU_UART0_BASE, FCH_AOAC_DEV_UART0, "FUR0", {
13 PAD_NF(GPIO_138, UART0_TXD, PULL_NONE),
14 PAD_NF(GPIO_136, UART0_RXD, PULL_NONE),
15 } },
16 [1] = { APU_UART1_BASE, FCH_AOAC_DEV_UART1, "FUR1", {
17 PAD_NF(GPIO_143, UART1_TXD, PULL_NONE),
18 PAD_NF(GPIO_141, UART1_RXD, PULL_NONE),
19 } },
22 const struct soc_uart_ctrlr_info *soc_get_uart_ctrlr_info(size_t *num_ctrlrs)
24 *num_ctrlrs = ARRAY_SIZE(uart_info);
25 return uart_info;