diff options
| author | Anup Patel <[email protected]> | 2021-04-21 14:11:55 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-08-14 09:02:36 +0530 |
| commit | 7a3a0cce4d5b145b5659d4204c1ed8c8efae31cc (patch) | |
| tree | a9a8dfa0b26a772ba70a01592f965ea96b49be11 /lib/utils/reset | |
| parent | e0d1b9db8abd8288afbaa4f93a4ace6a9b6f0100 (diff) | |
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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/utils/reset')
| -rw-r--r-- | lib/utils/reset/fdt_reset_sifive_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/reset/fdt_reset_sifive_test.c b/lib/utils/reset/fdt_reset_sifive_test.c index b0b59e7c..7e0eba37 100644 --- a/lib/utils/reset/fdt_reset_sifive_test.c +++ b/lib/utils/reset/fdt_reset_sifive_test.c @@ -18,7 +18,7 @@ static int sifive_test_reset_init(void *fdt, int nodeoff, int rc; uint64_t addr; - rc = fdt_get_node_addr_size(fdt, nodeoff, &addr, NULL); + rc = fdt_get_node_addr_size(fdt, nodeoff, 0, &addr, NULL); if (rc) return rc; |
