From 4541ccba51c479021a2d3442dbde8bccddcb282a Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Thu, 23 Apr 2020 02:16:37 -0700 Subject: fdt: add clint base address parsing helper borrow from OpenSBI Signed-off-by: Chih-Min Chao --- 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 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 -- cgit v1.1