mb/starlabs/starbook_mtl: Fix USB port assignments/descriptions
[coreboot.git] / src / soc / sifive / fu740 / uart.c
blob94a6d2d34cd2fb1df57a3893c14ff62046c5e1d5
1 /* SPDX-License-Identifier: GPL-2.0-only */
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>
9 uintptr_t uart_platform_base(unsigned int idx)
11 if (idx < 2)
12 return FU740_UART(idx);
13 else
14 return 0;
17 unsigned int uart_platform_refclk(void)
19 // peripheral clock is attached to UART subsystem
20 return clock_get_pclk();