From 445130b127f411bdf4958fa10f292a930c9ae57d Mon Sep 17 00:00:00 2001 From: David Vincze Date: Mon, 11 Apr 2022 17:08:20 +0200 Subject: [PATCH] feat(tc): add RSS-AP message size macro Define the RSS_COMMS_PAYLOAD_MAX_SIZE macro. Its value is platform specific and gives the largest message size which are exchanged on the TC2 platform between RSS and AP. Change-Id: Id831c282dc9a39755b82befead1a81767e217215 Signed-off-by: David Vincze Signed-off-by: Tamas Ban --- plat/arm/board/tc/include/platform_def.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plat/arm/board/tc/include/platform_def.h b/plat/arm/board/tc/include/platform_def.h index 366a44e85..b63185c15 100644 --- a/plat/arm/board/tc/include/platform_def.h +++ b/plat/arm/board/tc/include/platform_def.h @@ -159,6 +159,13 @@ # define PLATFORM_STACK_SIZE 0x440 #endif +/* + * In the current implementation the RoT Service request that requires the + * biggest message buffer is the RSS_DELEGATED_ATTEST_GET_PLATFORM_TOKEN. The + * maximum required buffer size is calculated based on the platform-specific + * needs of this request. + */ +#define PLAT_RSS_COMMS_PAYLOAD_MAX_SIZE 0x500 #define TC_DEVICE_BASE 0x21000000 #define TC_DEVICE_SIZE 0x5f000000 -- 2.39.5