blob: 02c89d895edb761648e78c6035aa088bc064ab79 [file] [log] [blame]
Patrick Williams7784c422022-11-17 07:29:11 -06001From c519bae79629bfe551d79cfeb4e7d8a059545145 Mon Sep 17 00:00:00 2001
Patrick Williams975a06f2022-10-21 14:42:47 -05002From: Rui Miguel Silva <rui.silva@linaro.org>
3Date: Tue, 11 Oct 2022 10:46:10 +0100
Patrick Williams7784c422022-11-17 07:29:11 -06004Subject: [PATCH 19/20] plat: corstone1000: change default smm values
Patrick Williams975a06f2022-10-21 14:42:47 -05005
6Smm gateway uses SE proxy to route the calls for any NV
7storage so set the NV_STORE_SN.
8Change the storage index uid because TF-M in the secure
9enclave reserves the default value (0x1) to some internal
10operation.
11Increase the maximum number of uefi variables to cope with all
12the needs for testing and certification
13
14Upstream-Status: Pending
15Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
16Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
17---
18 platform/providers/arm/corstone1000/platform.cmake | 6 ++++++
19 1 file changed, 6 insertions(+)
20
21diff --git a/platform/providers/arm/corstone1000/platform.cmake b/platform/providers/arm/corstone1000/platform.cmake
22index 51e5faa3e4d8..04b629a81906 100644
23--- a/platform/providers/arm/corstone1000/platform.cmake
24+++ b/platform/providers/arm/corstone1000/platform.cmake
25@@ -10,3 +10,9 @@
26 include(${TS_ROOT}/platform/drivers/arm/mhu_driver/component.cmake)
27
28 add_compile_definitions(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
29+
30+target_compile_definitions(${TGT} PRIVATE
31+ SMM_GATEWAY_NV_STORE_SN="sn:ffa:46bb39d1-b4d9-45b5-88ff-040027dab249:1"
32+ SMM_VARIABLE_INDEX_STORAGE_UID=0x787
33+ SMM_GATEWAY_MAX_UEFI_VARIABLES=100
34+)
35--
Patrick Williams7784c422022-11-17 07:29:11 -0600362.38.1
Patrick Williams975a06f2022-10-21 14:42:47 -050037