summaryrefslogtreecommitdiff
path: root/include/common
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-06-26 10:34:10 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-11-02 14:55:49 +0000
commit73f1ac6c8ee4a688ed8e1fddc040b882171d3453 (patch)
tree4bb7528bcce07f431582ac5c0e1fb8fbcac90890 /include/common
parent2747362062d4286e47cb13dbdfddfebc6d355dca (diff)
Introduce fdtw_read_array() helper
fdtw_read_cells() can only read one or two cells, sometimes it may be needed to read more cells from one property. Change-Id: Ie70dc76d1540cd6a04787cde7cccb4d1bafc7282 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/common')
-rw-r--r--include/common/fdt_wrappers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h
index a0fe6b75..c8d753f9 100644
--- a/include/common/fdt_wrappers.h
+++ b/include/common/fdt_wrappers.h
@@ -14,6 +14,8 @@
int fdtw_read_cells(const void *dtb, int node, const char *prop,
unsigned int cells, void *value);
+int fdtw_read_array(const void *dtb, int node, const char *prop,
+ unsigned int cells, void *value);
int fdtw_read_string(const void *dtb, int node, const char *prop,
char *str, size_t size);
int fdtw_write_inplace_cells(void *dtb, int node, const char *prop,