soc: Remove copyright notices
[coreboot.git] / src / soc / sifive / fu540 / uart.c
blobb3f9107d5e8924caeef99c0d55c48be56bd3a71d
1 /*
2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <stddef.h>
16 #include <stdint.h>
17 #include <console/uart.h>
18 #include <soc/addressmap.h>
19 #include <soc/clock.h>
21 uintptr_t uart_platform_base(int idx)
23 if (idx < 2)
24 return FU540_UART(idx);
25 else
26 return 0;
29 unsigned int uart_platform_refclk(void)
31 return clock_get_tlclk_khz() * KHz;