mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-07-23 21:38:42 +00:00
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>
This commit is contained in:
parent
a39cd6fe4c
commit
dd33b9e0a1
2 changed files with 5 additions and 2 deletions
|
@ -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,
|
int fdt_find_match(void *fdt, const struct fdt_match *match_table,
|
||||||
const struct fdt_match **out_match);
|
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,
|
int fdt_parse_uart8250_node(void *fdt, int nodeoffset,
|
||||||
struct platform_uart_data *uart);
|
struct platform_uart_data *uart);
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ int fdt_find_match(void *fdt, const struct fdt_match *match_table,
|
||||||
return SBI_ENODEV;
|
return SBI_ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr,
|
int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr,
|
||||||
unsigned long *size)
|
unsigned long *size)
|
||||||
{
|
{
|
||||||
int parent, len, i;
|
int parent, len, i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue