diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-04-29 11:51:52 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-01 07:15:53 +0300 |
commit | f0eb503db4c14176f165ca067798b079571decda (patch) | |
tree | 4ed68de756595a488221790abc6a4cc4f150d2b4 /include/sbi_utils | |
parent | 44dd7be3b2b3b821912e32a1021706a2edb9d44b (diff) | |
download | opensbi-f0eb503db4c14176f165ca067798b079571decda.tar.xz |
lib: utils: Add fdt_parse_plic_node() function
We add fdt_parse_plic_node() function which will allow us to parse
a particular DT node as PLIC node. This will be useful in parsing
the DT node which we have found by matching compatible string.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi_utils')
-rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index 5a0a719..6be942a 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -52,6 +52,9 @@ int fdt_parse_uart8250_node(void *fdt, int nodeoffset, int fdt_parse_uart8250(void *fdt, struct platform_uart_data *uart, const char *compatible); +int fdt_parse_plic_node(void *fdt, int nodeoffset, + struct platform_plic_data *plic); + int fdt_parse_plic(void *fdt, struct platform_plic_data *plic, const char *compatible); |