blob: 94a6d2d34cd2fb1df57a3893c14ff62046c5e1d5 [file] [log] [blame]
Maximilian Brune2ccb8e72024-01-14 21:59:27 +06001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <stdint.h>
4#include <console/uart.h>
5#include <commonlib/bsd/helpers.h>
6#include <soc/addressmap.h>
7#include <soc/clock.h>
8
9uintptr_t uart_platform_base(unsigned int idx)
10{
11 if (idx < 2)
12 return FU740_UART(idx);
13 else
14 return 0;
15}
16
17unsigned int uart_platform_refclk(void)
18{
19 // peripheral clock is attached to UART subsystem
20 return clock_get_pclk();
21}