diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/cezanne/uart.c | 7 | ||||
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/uart.h | 8 | ||||
-rw-r--r-- | src/soc/amd/mendocino/uart.c | 7 | ||||
-rw-r--r-- | src/soc/amd/morgana/uart.c | 7 | ||||
-rw-r--r-- | src/soc/amd/picasso/uart.c | 7 |
5 files changed, 12 insertions, 24 deletions
diff --git a/src/soc/amd/cezanne/uart.c b/src/soc/amd/cezanne/uart.c index ba10945bf8..cfa8fc4cca 100644 --- a/src/soc/amd/cezanne/uart.c +++ b/src/soc/amd/cezanne/uart.c @@ -13,12 +13,7 @@ #include <soc/uart.h> #include <types.h> -static const struct { - uintptr_t base; - unsigned int aoac_device; - const char *acpi_name; - struct soc_amd_gpio mux[2]; -} uart_info[] = { +static const struct soc_uart_ctrlr_info uart_info[] = { [0] = { APU_UART0_BASE, FCH_AOAC_DEV_UART0, "FUR0", { PAD_NF(GPIO_143, UART0_TXD, PULL_NONE), PAD_NF(GPIO_141, UART0_RXD, PULL_NONE), diff --git a/src/soc/amd/common/block/include/amdblocks/uart.h b/src/soc/amd/common/block/include/amdblocks/uart.h index 4fd1b592cd..4e8ea8ca35 100644 --- a/src/soc/amd/common/block/include/amdblocks/uart.h +++ b/src/soc/amd/common/block/include/amdblocks/uart.h @@ -3,9 +3,17 @@ #ifndef AMD_BLOCK_UART_H #define AMD_BLOCK_UART_H +#include <amdblocks/gpio.h> #include <device/device.h> #include <types.h> +struct soc_uart_ctrlr_info { + uintptr_t base; + unsigned int aoac_device; + const char *acpi_name; + struct soc_amd_gpio mux[2]; +}; + uintptr_t get_uart_base(unsigned int idx); /* get MMIO base address of FCH UART */ void uart_inject_ssdt(const struct device *dev); diff --git a/src/soc/amd/mendocino/uart.c b/src/soc/amd/mendocino/uart.c index 3809b85536..1b3f5693dd 100644 --- a/src/soc/amd/mendocino/uart.c +++ b/src/soc/amd/mendocino/uart.c @@ -13,12 +13,7 @@ #include <soc/uart.h> #include <types.h> -static const struct { - uintptr_t base; - unsigned int aoac_device; - const char *acpi_name; - struct soc_amd_gpio mux[2]; -} uart_info[] = { +static const struct soc_uart_ctrlr_info uart_info[] = { [0] = { APU_UART0_BASE, FCH_AOAC_DEV_UART0, "FUR0", { PAD_NF(GPIO_143, UART0_TXD, PULL_NONE), PAD_NF(GPIO_141, UART0_RXD, PULL_NONE), diff --git a/src/soc/amd/morgana/uart.c b/src/soc/amd/morgana/uart.c index acd36ec61d..5569001de7 100644 --- a/src/soc/amd/morgana/uart.c +++ b/src/soc/amd/morgana/uart.c @@ -15,12 +15,7 @@ #include <soc/uart.h> #include <types.h> -static const struct { - uintptr_t base; - unsigned int aoac_device; - const char *acpi_name; - struct soc_amd_gpio mux[2]; -} uart_info[] = { +static const struct soc_uart_ctrlr_info uart_info[] = { [0] = { APU_UART0_BASE, FCH_AOAC_DEV_UART0, "FUR0", { PAD_NF(GPIO_143, UART0_TXD, PULL_NONE), PAD_NF(GPIO_141, UART0_RXD, PULL_NONE), diff --git a/src/soc/amd/picasso/uart.c b/src/soc/amd/picasso/uart.c index 2879ed1794..b9fff85776 100644 --- a/src/soc/amd/picasso/uart.c +++ b/src/soc/amd/picasso/uart.c @@ -13,12 +13,7 @@ #include <soc/uart.h> #include <types.h> -static const struct { - uintptr_t base; - unsigned int aoac_device; - const char *acpi_name; - struct soc_amd_gpio mux[2]; -} uart_info[] = { +static const struct soc_uart_ctrlr_info uart_info[] = { [0] = { APU_UART0_BASE, FCH_AOAC_DEV_UART0, "FUR0", { PAD_NF(GPIO_138, UART0_TXD, PULL_NONE), PAD_NF(GPIO_136, UART0_RXD, PULL_NONE), |