aboutsummaryrefslogtreecommitdiff
path: root/include/sbi_utils
diff options
context:
space:
mode:
authorIcenowy Zheng <zhengxingda@iscas.ac.cn>2026-01-04 14:55:06 +0800
committerAnup Patel <anup@brainfault.org>2026-02-20 16:50:35 +0530
commitb07e449d15c534407391cb7b430117fefed084af (patch)
tree270c9e9ddb593c435a171d7afc43d1566c7f787f /include/sbi_utils
parentecdb6c90c83dfc89964e55d7c2a94a5c0f6bc437 (diff)
downloadopensbi-b07e449d15c534407391cb7b430117fefed084af.tar.gz
opensbi-b07e449d15c534407391cb7b430117fefed084af.tar.bz2
opensbi-b07e449d15c534407391cb7b430117fefed084af.zip
lib: utils/serial: Add support for Altera JTAG UART
Altera provides a JTAG UART core that provides virtual UART over JTAG and can coexist with their virtual JTAG. [1] This core has already been supported by Linux and the programming interface has always been stable. Add support for it to OpenSBI to ease JTAG prototype bringing up. The driver follows the device tree binding in mainline Linux. [2] [1] https://docs.altera.com/r/docs/683130/25.3/embedded-peripherals-ip-user-guide/jtag-uart-core [2] https://github.com/torvalds/linux/blob/v6.19-rc1/Documentation/devicetree/bindings/serial/altr%2Cjuart-1.0.yaml Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260104065506.70182-1-zhengxingda@iscas.ac.cn Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include/sbi_utils')
-rw-r--r--include/sbi_utils/serial/altr-juart.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/sbi_utils/serial/altr-juart.h b/include/sbi_utils/serial/altr-juart.h
new file mode 100644
index 00000000..1304ee08
--- /dev/null
+++ b/include/sbi_utils/serial/altr-juart.h
@@ -0,0 +1,17 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2025 ISCAS
+ *
+ * Authors:
+ * Icenowy Zheng <zhengxingda@iscas.ac.cn>
+ */
+
+#ifndef __SERIAL_ALTR_JUART_H__
+#define __SERIAL_ALTR_JUART_H__
+
+#include <sbi/sbi_types.h>
+
+int altr_juart_init(unsigned long base);
+
+#endif