From 191634d2854dfed448fc323195f9b65c305e2d77 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Tue, 14 Dec 2021 19:18:32 +0530 Subject: Add ns16550 serial device emulation The ns16550 is a widely use serial device so we add a simplified ns16550 device emulation which is good enough for Linux, OpenSBI, and hypervisors to use as console. Signed-off-by: Anup Patel --- riscv/dts.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'riscv/dts.h') diff --git a/riscv/dts.h b/riscv/dts.h index 66add51..a02f594 100644 --- a/riscv/dts.h +++ b/riscv/dts.h @@ -23,6 +23,9 @@ int fdt_parse_clint(void *fdt, reg_t *clint_addr, const char *compatible); int fdt_parse_plic(void *fdt, reg_t *plic_addr, uint32_t *ndev, const char *compatible); +int fdt_parse_ns16550(void *fdt, reg_t *ns16550_addr, + uint32_t *reg_shift, uint32_t *reg_io_width, + const char *compatible); int fdt_parse_pmp_num(void *fdt, int cpu_offset, reg_t *pmp_num); int fdt_parse_pmp_alignment(void *fdt, int cpu_offset, reg_t *pmp_align); int fdt_parse_mmu_type(void *fdt, int cpu_offset, const char **mmu_type); -- cgit v1.1