summaryrefslogtreecommitdiff
path: root/include/plat
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-10-30 11:12:42 +0000
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-12-10 16:37:46 +0000
commite458302be036054112710fbddbc752ee8233e4d9 (patch)
tree00b19ca3a4b03ac7777603f9d4d4f7ca1a6a85fa /include/plat
parent03aac65836c738d9bab69c6e270a50c0a003327a (diff)
SPM: Introduce functions to load DTB files
Introduce helpers to create resource description struct, as well as code to load the information from DTB files. Change-Id: I0f5bb94eb8b01c6cb53fe807a9db0c05a70d7a43 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/plat')
-rw-r--r--include/plat/arm/common/arm_spm_def.h8
-rw-r--r--include/plat/common/platform.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/include/plat/arm/common/arm_spm_def.h b/include/plat/arm/common/arm_spm_def.h
index 69aae4aa..a2220995 100644
--- a/include/plat/arm/common/arm_spm_def.h
+++ b/include/plat/arm/common/arm_spm_def.h
@@ -100,4 +100,12 @@
#define PLAT_SPM_COOKIE_0 ULL(0)
#define PLAT_SPM_COOKIE_1 ULL(0)
+/*
+ * Max number of elements supported by SPM in this platform. The defines below
+ * are used to allocate memory at compile time for different arrays in SPM.
+ */
+#define PLAT_SPM_MEM_REGIONS_MAX U(80)
+#define PLAT_SPM_NOTIFICATIONS_MAX U(30)
+#define PLAT_SPM_SERVICES_MAX U(30)
+
#endif /* ARM_SPM_DEF_H */
diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h
index a30b5798..79d069ad 100644
--- a/include/plat/common/platform.h
+++ b/include/plat/common/platform.h
@@ -22,6 +22,7 @@ struct bl_load_info;
struct bl_params;
struct mmap_region;
struct secure_partition_boot_info;
+struct sp_res_desc;
/*******************************************************************************
* plat_get_rotpk_info() flags
@@ -266,6 +267,7 @@ int plat_set_nv_ctr2(void *cookie, const struct auth_img_desc_s *img_desc,
const struct mmap_region *plat_get_secure_partition_mmap(void *cookie);
const struct secure_partition_boot_info *plat_get_secure_partition_boot_info(
void *cookie);
+int plat_spm_sp_rd_load(struct sp_res_desc *rd, const void *ptr, size_t size);
/*******************************************************************************
* Mandatory BL image load functions(may be overridden).