aboutsummaryrefslogtreecommitdiff
path: root/src/soc/sifive/fu540/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/sifive/fu540/uart.c')
-rw-r--r--src/soc/sifive/fu540/uart.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/sifive/fu540/uart.c b/src/soc/sifive/fu540/uart.c
index 940dc97856..c53f42d9d8 100644
--- a/src/soc/sifive/fu540/uart.c
+++ b/src/soc/sifive/fu540/uart.c
@@ -23,3 +23,11 @@ uintptr_t uart_platform_base(int idx)
else
return 0;
}
+
+unsigned int uart_platform_refclk(void)
+{
+ /*
+ * The SiFive UART uses tlclk, which is coreclk/2 as input
+ */
+ return 33330000 / 2;
+}