diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index a5254930..a4ad1c17 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -34,6 +34,9 @@ const struct fdt_match *fdt_match_node(void *fdt, int nodeoff, int fdt_find_match(void *fdt, const struct fdt_match *match_table, const struct fdt_match **out_match); +int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr, + unsigned long *size); + int fdt_parse_uart8250_node(void *fdt, int nodeoffset, struct platform_uart_data *uart); diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c index e8c927de..8fe4ace6 100644 --- a/lib/utils/fdt/fdt_helper.c +++ b/lib/utils/fdt/fdt_helper.c @@ -59,8 +59,8 @@ int fdt_find_match(void *fdt, const struct fdt_match *match_table, return SBI_ENODEV; } -static int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr, - unsigned long *size) +int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr, + unsigned long *size) { int parent, len, i; int cell_addr, cell_size;