1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/gpio.h>
4 #include <amdblocks/uart.h>
5 #include <commonlib/helpers.h>
7 #include <soc/aoac_defs.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
),
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
),
22 const struct soc_uart_ctrlr_info
*soc_get_uart_ctrlr_info(size_t *num_ctrlrs
)
24 *num_ctrlrs
= ARRAY_SIZE(uart_info
);