diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-04-23 02:16:37 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-19 19:56:49 -0700 |
commit | cf79c7ba82ca0a477354fbabdb18558b124a211d (patch) | |
tree | 03515228f39a07bc369dd97c76a663833afa751e /riscv/dts.h | |
parent | f522bd4f45af46546d370dd072012fbcdc972d30 (diff) | |
download | spike-cf79c7ba82ca0a477354fbabdb18558b124a211d.zip spike-cf79c7ba82ca0a477354fbabdb18558b124a211d.tar.gz spike-cf79c7ba82ca0a477354fbabdb18558b124a211d.tar.bz2 |
fdt: add clint base address parsing helper
borrow from OpenSBI
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
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 b9ddb8e..cb3490d 100644 --- a/riscv/dts.h +++ b/riscv/dts.h @@ -13,4 +13,7 @@ std::string make_dts(size_t insns_per_rtc_tick, size_t cpu_hz, std::string dts_compile(const std::string& dts); +int fdt_parse_clint(void *fdt, unsigned long *clint_addr, + const char *compatible); + #endif |