summaryrefslogtreecommitdiff
path: root/include/sbi_utils/serial/sifive-uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi_utils/serial/sifive-uart.h')
-rw-r--r--include/sbi_utils/serial/sifive-uart.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/sbi_utils/serial/sifive-uart.h b/include/sbi_utils/serial/sifive-uart.h
new file mode 100644
index 0000000..f323392
--- /dev/null
+++ b/include/sbi_utils/serial/sifive-uart.h
@@ -0,0 +1,21 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2019 Western Digital Corporation or its affiliates.
+ *
+ * Authors:
+ * Anup Patel <anup.patel@wdc.com>
+ */
+
+#ifndef __SERIAL_SIFIVE_UART_H__
+#define __SERIAL_SIFIVE_UART_H__
+
+#include <sbi/sbi_types.h>
+
+void sifive_uart_putc(char ch);
+
+int sifive_uart_getc(void);
+
+int sifive_uart_init(unsigned long base, u32 in_freq, u32 baudrate);
+
+#endif