From 0ad97332e4febd75dbbe8e397334227ad7060573 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 12 Jan 2021 23:29:30 +0100 Subject: soc/amd/piasso/uart: move get_uart_base prototype to common code header This will result in less code duplication when the common AMD SoC UART support gets used for more AMD SoCs. Change-Id: Id1786f32324de3e3947d792c599e2019705c5a85 Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/49373 Reviewed-by: Angel Pons Reviewed-by: Marshall Dawson Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/include/amdblocks/uart.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/soc/amd/common/block/include/amdblocks/uart.h (limited to 'src/soc/amd/common/block/include') diff --git a/src/soc/amd/common/block/include/amdblocks/uart.h b/src/soc/amd/common/block/include/amdblocks/uart.h new file mode 100644 index 0000000000..95d73237f7 --- /dev/null +++ b/src/soc/amd/common/block/include/amdblocks/uart.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef AMD_BLOCK_UART_H +#define AMD_BLOCK_UART_H + +#include + +uintptr_t get_uart_base(unsigned int idx); /* get MMIO base address of FCH UART */ + +#endif /* AMD_BLOCK_UART_H */ -- cgit v1.2.3