summaryrefslogtreecommitdiff
path: root/plat/arm/board
diff options
context:
space:
mode:
authorNishant Sharma <nishant.sharma@arm.com>2022-03-26 00:34:05 +0000
committerNishant Sharma <nishant.sharma@arm.com>2023-10-12 11:40:54 +0100
commitf45893426546703d9e21970889e6333ca30c0dd7 (patch)
tree0b06a716610de85da9c1b70aed94601d499d3cbb /plat/arm/board
parent549bc04f148f3b42ea0808b9ab0794a48d67007d (diff)
feat(rdn2): introduce accessor function to obtain datastore
In order to provide the EL3 SPMC a sufficient datastore to record memory descriptor, introduce an accessor function so that the backing memory can be allocated in a platform defined manner to accommodate memory constraints and desired usecases. Signed-off-by: Nishant Sharma <nishant.sharma@arm.com> Change-Id: If5842e79c2ad22ccc17362b114f47d9900d82f7e
Diffstat (limited to 'plat/arm/board')
-rw-r--r--plat/arm/board/rdn2/rdn2_plat.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/plat/arm/board/rdn2/rdn2_plat.c b/plat/arm/board/rdn2/rdn2_plat.c
index e8a967e00..f044558d8 100644
--- a/plat/arm/board/rdn2/rdn2_plat.c
+++ b/plat/arm/board/rdn2/rdn2_plat.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020-2021, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2023, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -141,3 +141,17 @@ void bl31_platform_setup(void)
#endif
}
#endif /* IMAGE_BL31 */
+
+#if SPMC_AT_EL3
+
+#define DATASTORE_SIZE 1024
+
+__section("arm_el3_tzc_dram") uint8_t plat_spmc_shmem_datastore[DATASTORE_SIZE];
+
+int plat_spmc_shmem_datastore_get(uint8_t **datastore, size_t *size)
+{
+ *datastore = plat_spmc_shmem_datastore;
+ *size = DATASTORE_SIZE;
+ return 0;
+}
+#endif