summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-04-24 16:05:25 +0300
committerAnup Patel <anup@brainfault.org>2020-05-01 07:10:21 +0300
commitdd33b9e0a152699416ade045ad6f630432e7f968 (patch)
treec81fd7a92b0433d6f7680ebaf79193639a732a31 /include
parenta39cd6fe4c263f00228daaefc41c2b03b96f784d (diff)
downloadopensbi-dd33b9e0a152699416ade045ad6f630432e7f968.tar.xz
lib: utils: Make fdt_get_node_addr_size() public function
The fdt_get_node_addr_size() will be useful in FDT based simple driver frameworks so we make it a public function. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h3
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 a525493..a4ad1c1 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);