summaryrefslogtreecommitdiff
path: root/include/sbi_utils
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-04-21 11:41:55 +0300
committerAnup Patel <anup@brainfault.org>2021-08-14 06:32:36 +0300
commit7a3a0cce4d5b145b5659d4204c1ed8c8efae31cc (patch)
treea9a8dfa0b26a772ba70a01592f965ea96b49be11 /include/sbi_utils
parente0d1b9db8abd8288afbaa4f93a4ace6a9b6f0100 (diff)
downloadopensbi-7a3a0cce4d5b145b5659d4204c1ed8c8efae31cc.tar.xz
lib: utils: Extend fdt_get_node_addr_size() for multiple register sets
We add "index" parameter to fdt_get_node_addr_size() API so that calling function can specify index of desired register set. This will allow fdt_get_node_addr_size() to handle DT nodes with multiple register sets. 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 32aebb4..1a93e1c 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -43,8 +43,8 @@ int fdt_parse_phandle_with_args(void *fdt, int nodeoff,
const char *prop, const char *cells_prop,
int index, struct fdt_phandle_args *out_args);
-int fdt_get_node_addr_size(void *fdt, int node, uint64_t *addr,
- uint64_t *size);
+int fdt_get_node_addr_size(void *fdt, int node, int index,
+ uint64_t *addr, uint64_t *size);
int fdt_parse_hart_id(void *fdt, int cpu_offset, u32 *hartid);