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 <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49373
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2021-01-12 23:29:30 +01:00
parent e7382991ab
commit 0ad97332e4
4 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef AMD_BLOCK_UART_H
#define AMD_BLOCK_UART_H
#include <types.h>
uintptr_t get_uart_base(unsigned int idx); /* get MMIO base address of FCH UART */
#endif /* AMD_BLOCK_UART_H */

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/uart.h>
#include <console/uart.h>
#include <soc/uart.h>
/*
* uart_platform_base and uart_platform_refclk are used by the console UART driver and need to

View File

@ -8,6 +8,4 @@
void set_uart_config(unsigned int idx); /* configure hardware of FCH UART selected by idx */
void clear_uart_legacy_config(void); /* disable legacy I/O decode for FCH UART */
uintptr_t get_uart_base(unsigned int idx); /* get MMIO base address of FCH UART */
#endif /* AMD_PICASSO_UART_H */

View File

@ -6,6 +6,7 @@
#include <device/mmio.h>
#include <amdblocks/gpio_banks.h>
#include <amdblocks/aoac.h>
#include <amdblocks/uart.h>
#include <soc/southbridge.h>
#include <soc/gpio.h>
#include <soc/uart.h>