diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-13 07:25:28 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-23 08:06:46 +0300 |
commit | 569dd64b7270fd1cd17006e1b76484d84b1a0a71 (patch) | |
tree | 9d5a97ae6127548658fe04cdf72bc5c8718f9562 /include | |
parent | a9a97511851198559e75640a9e5e67f65695dc2e (diff) | |
download | opensbi-569dd64b7270fd1cd17006e1b76484d84b1a0a71.tar.xz |
lib: utils: Add fdt_parse_clint_node() function
We add fdt_parse_clint_node() function which will be used by
fdt_ipi_clint and fdt_timer_clint drivers to parse CLINT details
from DT node.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index 72fb167..1b780fb 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -54,6 +54,11 @@ int fdt_parse_plic_node(void *fdt, int nodeoffset, struct plic_data *plic); int fdt_parse_plic(void *fdt, struct plic_data *plic, const char *compat); +struct clint_data; + +int fdt_parse_clint_node(void *fdt, int nodeoffset, bool for_timer, + struct clint_data *clint); + int fdt_parse_compat_addr(void *fdt, unsigned long *addr, const char *compatible); |