From 73f1ac6c8ee4a688ed8e1fddc040b882171d3453 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Tue, 26 Jun 2018 10:34:10 +0100 Subject: 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 --- include/common/fdt_wrappers.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/common') 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, -- cgit v1.2.3