summaryrefslogtreecommitdiff
path: root/nrfdemo/build/tfm/generated/interface
diff options
context:
space:
mode:
Diffstat (limited to 'nrfdemo/build/tfm/generated/interface')
-rw-r--r--nrfdemo/build/tfm/generated/interface/include/config_impl.h58
-rw-r--r--nrfdemo/build/tfm/generated/interface/include/psa/framework_feature.h14
-rw-r--r--nrfdemo/build/tfm/generated/interface/include/psa_manifest/pid.h27
-rw-r--r--nrfdemo/build/tfm/generated/interface/include/psa_manifest/sid.h31
4 files changed, 130 insertions, 0 deletions
diff --git a/nrfdemo/build/tfm/generated/interface/include/config_impl.h b/nrfdemo/build/tfm/generated/interface/include/config_impl.h
new file mode 100644
index 0000000..27b86ea
--- /dev/null
+++ b/nrfdemo/build/tfm/generated/interface/include/config_impl.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
+
+#ifndef __CONFIG_IMPL_H__
+#define __CONFIG_IMPL_H__
+
+#include "config_tfm.h"
+
+/* Backends */
+#define CONFIG_TFM_SPM_BACKEND_IPC 0
+#define CONFIG_TFM_SPM_BACKEND_SFN 1
+
+#define CONFIG_TFM_CONNECTION_BASED_SERVICE_API 0
+#define CONFIG_TFM_MMIO_REGION_ENABLE 0
+#define CONFIG_TFM_FLIH_API 0
+#define CONFIG_TFM_SLIH_API 0
+
+#if CONFIG_TFM_SPM_BACKEND_IPC == 1
+/* Trustzone NS agent working stack size. */
+#if defined(TFM_FIH_PROFILE_ON) && TFM_ISOLATION_LEVEL == 1
+#define CONFIG_TFM_NS_AGENT_TZ_STACK_SIZE 1256
+#else
+#define CONFIG_TFM_NS_AGENT_TZ_STACK_SIZE 1024
+#endif
+
+/* SPM re-uses Trustzone NS agent stack. */
+#define CONFIG_TFM_SPM_THREAD_STACK_SIZE \
+ CONFIG_TFM_NS_AGENT_TZ_STACK_SIZE
+
+#elif CONFIG_TFM_SPM_BACKEND_SFN == 1
+/*
+ * In isolation level 1 SFN model, all subsequent components work on NS agent
+ * stack. It is observed that half of the sum of all partition stack sizes is
+ * enough for working. Define a divisor factor
+ * CONFIG_TFM_NS_AGENT_TZ_STK_SIZE_SHIFT_FACTOR for reference, and allow
+ * modification of the factor based on application situation. The stack size
+ * value is aligned to 8 bytes.
+ * The minimum value is 0x400 to satisfy the SPM functional requirement.
+ * Manifest tool will assure this.
+ */
+#define CONFIG_TFM_TOTAL_STACK_SIZE (0 + CRYPTO_STACK_SIZE + PLATFORM_SP_STACK_SIZE)
+#if (CONFIG_TFM_TOTAL_STACK_SIZE < 2048)
+#undef CONFIG_TFM_TOTAL_STACK_SIZE
+#define CONFIG_TFM_TOTAL_STACK_SIZE 2048
+#endif
+
+#define CONFIG_TFM_NS_AGENT_TZ_STK_SIZE_SHIFT_FACTOR 1
+#define CONFIG_TFM_NS_AGENT_TZ_STACK_SIZE \
+ (((CONFIG_TFM_TOTAL_STACK_SIZE >> CONFIG_TFM_NS_AGENT_TZ_STK_SIZE_SHIFT_FACTOR) + 0x7) & (~0x7))
+
+#endif /* CONFIG_TFM_SPM_BACKEND_IPC == 1 */
+
+#endif /* __CONFIG_IMPL_H__ */
diff --git a/nrfdemo/build/tfm/generated/interface/include/psa/framework_feature.h b/nrfdemo/build/tfm/generated/interface/include/psa/framework_feature.h
new file mode 100644
index 0000000..bb9436e
--- /dev/null
+++ b/nrfdemo/build/tfm/generated/interface/include/psa/framework_feature.h
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2021, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __PSA_FRAMEWORK_FEATURE_H__
+#define __PSA_FRAMEWORK_FEATURE_H__
+
+#define PSA_FRAMEWORK_ISOLATION_LEVEL 1
+#define PSA_FRAMEWORK_HAS_MM_IOVEC 0
+
+#endif /* __PSA_FRAMEWORK_FEATURE_H__ */
diff --git a/nrfdemo/build/tfm/generated/interface/include/psa_manifest/pid.h b/nrfdemo/build/tfm/generated/interface/include/psa_manifest/pid.h
new file mode 100644
index 0000000..19cdca3
--- /dev/null
+++ b/nrfdemo/build/tfm/generated/interface/include/psa_manifest/pid.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2019-2022, Arm Limited. All rights reserved.
+ * Copyright (c) 2021, Cypress Semiconductor Corporation. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
+
+#ifndef __PSA_MANIFEST_PID_H__
+#define __PSA_MANIFEST_PID_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define TFM_SP_CRYPTO (259)
+#define TFM_SP_PLATFORM (260)
+
+#define TFM_MAX_USER_PARTITIONS (2)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __PSA_MANIFEST_PID_H__ */
diff --git a/nrfdemo/build/tfm/generated/interface/include/psa_manifest/sid.h b/nrfdemo/build/tfm/generated/interface/include/psa_manifest/sid.h
new file mode 100644
index 0000000..203ab4e
--- /dev/null
+++ b/nrfdemo/build/tfm/generated/interface/include/psa_manifest/sid.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2019-2022, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
+
+#ifndef __PSA_MANIFEST_SID_H__
+#define __PSA_MANIFEST_SID_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/******** TFM_SP_CRYPTO ********/
+#define TFM_CRYPTO_SID (0x00000080U)
+#define TFM_CRYPTO_VERSION (1U)
+#define TFM_CRYPTO_HANDLE (0x40000100U)
+
+/******** TFM_SP_PLATFORM ********/
+#define TFM_PLATFORM_SERVICE_SID (0x00000040U)
+#define TFM_PLATFORM_SERVICE_VERSION (1U)
+#define TFM_PLATFORM_SERVICE_HANDLE (0x40000105U)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __PSA_MANIFEST_SID_H__ */