1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef AMD_BLOCK_UART_H
4 #define AMD_BLOCK_UART_H
6 #include <amdblocks/gpio.h>
7 #include <device/device.h>
10 struct soc_uart_ctrlr_info
{
12 unsigned int aoac_device
;
13 const char *acpi_name
;
14 struct soc_amd_gpio mux
[2];
17 uintptr_t get_uart_base(unsigned int idx
); /* get MMIO base address of FCH UART */
18 void set_uart_config(unsigned int idx
); /* configure hardware of FCH UART selected by idx */
20 /* Getter function to get the SoC UART Controller Information. */
21 const struct soc_uart_ctrlr_info
*soc_get_uart_ctrlr_info(size_t *num_ctrlrs
);
23 #endif /* AMD_BLOCK_UART_H */