summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/uart_console.c
blob: 3ab2a70920c004b52fbce958bf9dd4552ca7129b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */

#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
 * be provided exactly once and only by the UART that is used for console.
 */

uintptr_t uart_platform_base(int idx)
{
	return get_uart_base(idx);
}

unsigned int uart_platform_refclk(void)
{
	return CONFIG(PICASSO_UART_48MZ) ? 48000000 : 115200 * 16;
}