aboutsummaryrefslogtreecommitdiff
path: root/riscv/dts.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-04-23 02:16:37 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-05-19 19:56:49 -0700
commitcf79c7ba82ca0a477354fbabdb18558b124a211d (patch)
tree03515228f39a07bc369dd97c76a663833afa751e /riscv/dts.h
parentf522bd4f45af46546d370dd072012fbcdc972d30 (diff)
downloadspike-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.h3
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