aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLouis Mayencourt <louis.mayencourt@arm.com>2019-10-17 15:14:25 +0100
committerLouis Mayencourt <louis.mayencourt@arm.com>2020-02-07 13:51:31 +0000
commit9814bfc1bfc4868a8505d3756aceea5ad41a8c64 (patch)
tree57ea00023b87eefc1b8f7a24cdfb9d0c95f12a90 /include
parent3b5ea741fd92088c9e005d3508b73e50f1d5daf7 (diff)
downloadplatform_external_arm-trusted-firmware-9814bfc1bfc4868a8505d3756aceea5ad41a8c64.tar.gz
platform_external_arm-trusted-firmware-9814bfc1bfc4868a8505d3756aceea5ad41a8c64.tar.bz2
platform_external_arm-trusted-firmware-9814bfc1bfc4868a8505d3756aceea5ad41a8c64.zip
fconf: Populate properties from dtb during bl2 setup
Use the dtb provided by bl1 as configuration file for fconf. Change-Id: I3f466ad9b7047e1a361d94e71ac6d693e31496d9 Signed-off-by: Louis Mayencourt <louis.mayencourt@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/lib/fconf/fconf.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/lib/fconf/fconf.h b/include/lib/fconf/fconf.h
index 5a5837f45..f58ff5710 100644
--- a/include/lib/fconf/fconf.h
+++ b/include/lib/fconf/fconf.h
@@ -47,4 +47,15 @@ void fconf_load_config(void);
*/
void fconf_populate(uintptr_t config);
+/* FCONF specific getter */
+#define fconf__dtb_getter(prop) fconf_dtb_info.prop
+
+/* Structure used to locally keep a reference to the config dtb. */
+struct fconf_dtb_info_t {
+ uintptr_t base_addr;
+ size_t size;
+};
+
+extern struct fconf_dtb_info_t fconf_dtb_info;
+
#endif /* FCONF_H */