aboutsummaryrefslogtreecommitdiffstats
path: root/include/common
diff options
context:
space:
mode:
authorAlexei Fedorov <Alexei.Fedorov@arm.com>2020-01-29 16:21:28 +0000
committerAlexei Fedorov <Alexei.Fedorov@arm.com>2020-02-03 11:41:27 +0000
commit0a2ab6e63520dceb81b622dd6b7f4ff30cfed08e (patch)
tree98912fcfa7609f9323b6b9e27d71e5927553e194 /include/common
parent91ff490d75a89607a0b19577275e8134b8ffa74d (diff)
downloadplatform_external_arm-trusted-firmware-0a2ab6e63520dceb81b622dd6b7f4ff30cfed08e.tar.gz
platform_external_arm-trusted-firmware-0a2ab6e63520dceb81b622dd6b7f4ff30cfed08e.tar.bz2
platform_external_arm-trusted-firmware-0a2ab6e63520dceb81b622dd6b7f4ff30cfed08e.zip
FDT wrappers: add functions for read/write bytes
This patch adds 'fdtw_read_bytes' and 'fdtw_write_inplace_bytes' functions for read/write array of bytes from/to a given property. It also adds 'fdt_setprop_inplace_namelen_partial' to jmptbl.i files for builds with USE_ROMLIB=1 option. Change-Id: Ied7b5c8b38a0e21d508aa7bcf5893e656028b14d Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'include/common')
-rw-r--r--include/common/fdt_wrappers.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h
index 79d001d28..f467958b7 100644
--- a/include/common/fdt_wrappers.h
+++ b/include/common/fdt_wrappers.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -20,5 +20,9 @@ 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);
+int fdtw_read_bytes(const void *dtb, int node, const char *prop,
+ unsigned int length, void *value);
+int fdtw_write_inplace_bytes(void *dtb, int node, const char *prop,
+ unsigned int length, const void *data);
#endif /* FDT_WRAPPERS_H */