mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
feat(tc): add RSS SDS region right after SCMI payload
Add a second SDS region on the TC platform for communication with RSS. RSS needs to share data with AP during early boot over shared memory to support DPE. Reserve a memory region right after the SCMI secure payload areas from unused memory. Change-Id: I3a3a6ea5ce76531595c88754418602133a283c42 Signed-off-by: David Vincze <david.vincze@arm.com>
This commit is contained in:
parent
0f37ae1373
commit
6f503e0eea
3 changed files with 29 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -75,6 +75,7 @@
|
|||
* The SCMI Channel is placed right after the SDS region
|
||||
*/
|
||||
#define CSS_SCMI_PAYLOAD_BASE (PLAT_ARM_SDS_MEM_BASE + PLAT_ARM_SDS_MEM_SIZE_MAX)
|
||||
#define CSS_SCMI_PAYLOAD_SIZE_MAX 0x100 /* 2x128 bytes for bidirectional communication */
|
||||
#define CSS_SCMI_MHU_DB_REG_OFF MHU_CPU_INTR_S_SET_OFFSET
|
||||
|
||||
/* Trusted mailbox base address common to all CSS */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2023, Arm Limited. All rights reserved.
|
||||
* Copyright (c) 2020-2024, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -240,6 +240,17 @@
|
|||
|
||||
#define PLAT_ARM_SCMI_CHANNEL_COUNT 1
|
||||
|
||||
/* Index of SDS region used in the communication with SCP */
|
||||
#define SDS_SCP_AP_REGION_ID U(0)
|
||||
/* Index of SDS region used in the communication with RSS */
|
||||
#define SDS_RSS_AP_REGION_ID U(1)
|
||||
/*
|
||||
* Memory region for RSS's shared data storage (SDS)
|
||||
* It is placed right after the SCMI payload area.
|
||||
*/
|
||||
#define PLAT_ARM_RSS_AP_SDS_MEM_BASE (CSS_SCMI_PAYLOAD_BASE + \
|
||||
CSS_SCMI_PAYLOAD_SIZE_MAX)
|
||||
|
||||
#define PLAT_ARM_CLUSTER_COUNT U(1)
|
||||
#define PLAT_MAX_CPUS_PER_CLUSTER U(8)
|
||||
#define PLAT_MAX_PE_PER_CPU U(1)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2023, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2020-2024, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -12,6 +12,8 @@
|
|||
#include <common/bl_common.h>
|
||||
#include <common/debug.h>
|
||||
#include <drivers/arm/ccn.h>
|
||||
#include <drivers/arm/css/sds.h>
|
||||
#include <lib/utils_def.h>
|
||||
#include <plat/arm/common/plat_arm.h>
|
||||
#include <plat/common/platform.h>
|
||||
#include <drivers/arm/sbsa.h>
|
||||
|
@ -159,3 +161,15 @@ void plat_arm_secure_wdt_refresh(void)
|
|||
{
|
||||
sbsa_wdog_refresh(SBSA_SECURE_WDOG_REFRESH_BASE);
|
||||
}
|
||||
|
||||
static sds_region_desc_t tc_sds_regions[] = {
|
||||
{ .base = PLAT_ARM_SDS_MEM_BASE },
|
||||
{ .base = PLAT_ARM_RSS_AP_SDS_MEM_BASE },
|
||||
};
|
||||
|
||||
sds_region_desc_t *plat_sds_get_regions(unsigned int *region_count)
|
||||
{
|
||||
*region_count = ARRAY_SIZE(tc_sds_regions);
|
||||
|
||||
return tc_sds_regions;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue