summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJun Liang Tan <[email protected]>2022-08-17 23:40:56 +0800
committerAnup Patel <[email protected]>2022-08-23 08:40:17 +0530
commitcbaa9b0333517b3c25bea8d1c71ac8005ff1f727 (patch)
treeac34ed7af2455b6a0cb1c9efbf53857194146b67 /include
parentadf44b51bae1b91dbb90c51fcecfbc23bb3062a5 (diff)
lib: utils: serial: Add Cadence UART driver
Add Cadence UART driver Signed-off-by: Jun Liang Tan <[email protected]> Signed-off-by: Wei Liang Lim <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h4
-rw-r--r--include/sbi_utils/serial/cadence-uart.h16
2 files changed, 18 insertions, 2 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index c60af35b..bcd49961 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -65,8 +65,8 @@ int fdt_parse_shakti_uart_node(void *fdt, int nodeoffset,
int fdt_parse_sifive_uart_node(void *fdt, int nodeoffset,
struct platform_uart_data *uart);
-int fdt_parse_uart8250_node(void *fdt, int nodeoffset,
- struct platform_uart_data *uart);
+int fdt_parse_uart_node(void *fdt, int nodeoffset,
+ struct platform_uart_data *uart);
int fdt_parse_uart8250(void *fdt, struct platform_uart_data *uart,
const char *compatible);
diff --git a/include/sbi_utils/serial/cadence-uart.h b/include/sbi_utils/serial/cadence-uart.h
new file mode 100644
index 00000000..e75fb951
--- /dev/null
+++ b/include/sbi_utils/serial/cadence-uart.h
@@ -0,0 +1,16 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2022 StarFive Technology Co., Ltd.
+ *
+ * Author: Jun Liang Tan <[email protected]>
+ */
+
+#ifndef __SERIAL_CADENCE_UART_H__
+#define __SERIAL_CADENCE_UART_H__
+
+#include <sbi/sbi_types.h>
+
+int cadence_uart_init(unsigned long base, u32 in_freq, u32 baudrate);
+
+#endif