diff options
Diffstat (limited to 'include/plat')
-rw-r--r-- | include/plat/arm/common/arm_spm_def.h | 8 | ||||
-rw-r--r-- | include/plat/common/platform.h | 2 |
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). |