aboutsummaryrefslogtreecommitdiff
path: root/include/plat/common/platform.h
diff options
context:
space:
mode:
authorAchin Gupta <achin.gupta@arm.com>2019-10-11 14:54:48 +0100
committerMax Shvetsov <maksims.svecovs@arm.com>2020-02-10 14:09:10 +0000
commit0cb64d01d934cf9b8368a8afea839c7a9bd9a701 (patch)
tree495287b653d85c3515028e4a06f7901564b101f3 /include/plat/common/platform.h
parentd8b225a1a6d3d4bf7bf51fbd731413f76f6b8073 (diff)
downloadtrusted-firmware-a-0cb64d01d934cf9b8368a8afea839c7a9bd9a701.tar.gz
SPMD: add support for an example SPM core manifest
This patch repurposes the TOS FW configuration file as the manifest for the SPM core component which will reside at the secure EL adjacent to EL3. The SPM dispatcher component will use the manifest to determine how the core component must be initialised. Routines and data structure to parse the manifest have also been added. Signed-off-by: Achin Gupta <achin.gupta@arm.com> Signed-off-by: Artsem Artsemenka <artsem.artsemenka@arm.com> Change-Id: Id94f8ece43b4e05609f0a1d364708a912f6203cb
Diffstat (limited to 'include/plat/common/platform.h')
-rw-r--r--include/plat/common/platform.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h
index 332cfca8d7..f5bd298c5a 100644
--- a/include/plat/common/platform.h
+++ b/include/plat/common/platform.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -10,6 +10,9 @@
#include <stdint.h>
#include <lib/psci/psci.h>
+#if defined(SPD_spmd)
+ #include <services/spm_core_manifest.h>
+#endif
/*******************************************************************************
* Forward declarations
@@ -272,7 +275,11 @@ const struct spm_mm_boot_info *plat_get_secure_partition_boot_info(
int plat_spm_sp_rd_load(struct sp_res_desc *rd, const void *ptr, size_t size);
int plat_spm_sp_get_next_address(void **sp_base, size_t *sp_size,
void **rd_base, size_t *rd_size);
-
+#if defined(SPD_spmd)
+int plat_spm_core_manifest_load(spmc_manifest_sect_attribute_t *manifest,
+ const void *ptr,
+ size_t size);
+#endif
/*******************************************************************************
* Mandatory BL image load functions(may be overridden).
******************************************************************************/