diff options
author | Anup Patel <anup@brainfault.org> | 2021-12-14 19:18:32 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-04-20 11:24:35 +0530 |
commit | 191634d2854dfed448fc323195f9b65c305e2d77 (patch) | |
tree | 47193b8ed63049f264211a87e9402c82660c7f85 /riscv/dts.h | |
parent | 5a433081f4ce1a49ee83d1a81cf4922e7542a20c (diff) | |
download | spike-191634d2854dfed448fc323195f9b65c305e2d77.zip spike-191634d2854dfed448fc323195f9b65c305e2d77.tar.gz spike-191634d2854dfed448fc323195f9b65c305e2d77.tar.bz2 |
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 <anup@brainfault.org>
Diffstat (limited to 'riscv/dts.h')
-rw-r--r-- | riscv/dts.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |