aboutsummaryrefslogtreecommitdiff
path: root/drivers/serial/serial_sbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/serial_sbi.c')
-rw-r--r--drivers/serial/serial_sbi.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/serial/serial_sbi.c b/drivers/serial/serial_sbi.c
new file mode 100644
index 0000000000..b9f35ed36e
--- /dev/null
+++ b/drivers/serial/serial_sbi.c
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+#include <debug_uart.h>
+#include <asm/sbi.h>
+
+static inline void _debug_uart_init(void)
+{
+}
+
+static inline void _debug_uart_putc(int c)
+{
+ if (CONFIG_IS_ENABLED(RISCV_SMODE))
+ sbi_console_putchar(c);
+}
+
+DEBUG_UART_FUNCS