xref: /aosp_15_r20/external/coreboot/src/soc/amd/common/block/uart/uart_console.c (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <amdblocks/uart.h>
4 #include <console/uart.h>
5 
6 /*
7  * uart_platform_base and uart_platform_refclk are used by the console UART driver and need to
8  * be provided exactly once and only by the UART that is used for console.
9  */
10 
uart_platform_base(unsigned int idx)11 uintptr_t uart_platform_base(unsigned int idx)
12 {
13 	return get_uart_base(idx);
14 }
15 
uart_platform_refclk(void)16 unsigned int uart_platform_refclk(void)
17 {
18 	return 48000000;
19 }
20