diff options
| author | Jun Liang Tan <[email protected]> | 2022-08-17 23:40:56 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-08-23 08:40:17 +0530 |
| commit | cbaa9b0333517b3c25bea8d1c71ac8005ff1f727 (patch) | |
| tree | ac34ed7af2455b6a0cb1c9efbf53857194146b67 /include | |
| parent | adf44b51bae1b91dbb90c51fcecfbc23bb3062a5 (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.h | 4 | ||||
| -rw-r--r-- | include/sbi_utils/serial/cadence-uart.h | 16 |
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 |
