aboutsummaryrefslogtreecommitdiff
path: root/include/common
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-06-26 10:34:07 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-11-02 14:55:16 +0000
commit2747362062d4286e47cb13dbdfddfebc6d355dca (patch)
treeedcb28c46dfa4db10774c3df7d13ec6fda865ecb /include/common
parentb4cf974a3256275fe2c03d8eaaf07a5e5b337cfc (diff)
downloadtrusted-firmware-a-2747362062d4286e47cb13dbdfddfebc6d355dca.tar.gz
Introduce new fdt helper to read string properties
Introduced fdtw_read_string() to read string properties. Change-Id: I854eef0390632cf2eaddd2dce60cdb98c117de43 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/common')
-rw-r--r--include/common/fdt_wrappers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h
index 3eae944e5b..a0fe6b7530 100644
--- a/include/common/fdt_wrappers.h
+++ b/include/common/fdt_wrappers.h
@@ -14,6 +14,9 @@
int fdtw_read_cells(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,
unsigned int cells, void *value);
+
#endif /* __FDT_WRAPPERS__ */