blob: 94a6d2d34cd2fb1df57a3893c14ff62046c5e1d5 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0-only */
#include <stdint.h>
#include <console/uart.h>
#include <commonlib/bsd/helpers.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
uintptr_t uart_platform_base(unsigned int idx)
{
if (idx < 2)
return FU740_UART(idx);
else
return 0;
}
unsigned int uart_platform_refclk(void)
{
// peripheral clock is attached to UART subsystem
return clock_get_pclk();
}