blob: fbce4e8167663c8e39864a70806164a1c67e7078 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0-only */
#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 set_uart_config(unsigned int idx); /* configure hardware of FCH UART selected by idx */
/* Getter function to get the SoC UART Controller Information. */
const struct soc_uart_ctrlr_info *soc_get_uart_ctrlr_info(size_t *num_ctrlrs);
#endif /* AMD_BLOCK_UART_H */