From f0eb503db4c14176f165ca067798b079571decda Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Wed, 29 Apr 2020 14:21:52 +0530 Subject: 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 Reviewed-by: Atish Patra --- include/sbi_utils/fdt/fdt_helper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.1