diff options
Diffstat (limited to 'nrfdemo/builddk/tfm/generated')
12 files changed, 0 insertions, 494 deletions
diff --git a/nrfdemo/builddk/tfm/generated/interface/include/config_impl.h b/nrfdemo/builddk/tfm/generated/interface/include/config_impl.h deleted file mode 100644 index 27b86ea..0000000 --- a/nrfdemo/builddk/tfm/generated/interface/include/config_impl.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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/builddk/tfm/generated/interface/include/psa/framework_feature.h b/nrfdemo/builddk/tfm/generated/interface/include/psa/framework_feature.h deleted file mode 100644 index bb9436e..0000000 --- a/nrfdemo/builddk/tfm/generated/interface/include/psa/framework_feature.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * 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/builddk/tfm/generated/interface/include/psa_manifest/pid.h b/nrfdemo/builddk/tfm/generated/interface/include/psa_manifest/pid.h deleted file mode 100644 index 19cdca3..0000000 --- a/nrfdemo/builddk/tfm/generated/interface/include/psa_manifest/pid.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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/builddk/tfm/generated/interface/include/psa_manifest/sid.h b/nrfdemo/builddk/tfm/generated/interface/include/psa_manifest/sid.h deleted file mode 100644 index 203ab4e..0000000 --- a/nrfdemo/builddk/tfm/generated/interface/include/psa_manifest/sid.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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__ */ diff --git a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c b/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c deleted file mode 100644 index def98d0..0000000 --- a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2020-2022, Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - * - */ - -/*********** WARNING: This is an auto-generated file. Do not edit! ***********/ - -#include <stdint.h> -#include "config_tfm.h" - diff --git a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c b/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c deleted file mode 100644 index ab0e6f1..0000000 --- a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) 2021-2022, Arm Limited. All rights reserved. - * Copyright (c) 2021-2023 Cypress Semiconductor Corporation (an Infineon - * company) or an affiliate of Cypress Semiconductor Corporation. All rights - * reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - * - */ - -/*********** WARNING: This is an auto-generated file. Do not edit! ***********/ - -#include <stdint.h> -#include <stddef.h> -#include "config_tfm.h" -#include "region.h" -#include "region_defs.h" -#include "spm.h" -#include "load/interrupt_defs.h" -#include "load/partition_defs.h" -#include "load/service_defs.h" -#include "load/asset_defs.h" -#include "tfm_peripherals_def.h" -#include "psa_manifest/pid.h" -#include "psa_manifest/sid.h" -#include "psa_manifest/tfm_crypto.h" - -#define TFM_SP_CRYPTO_NDEPS (1) -#define TFM_SP_CRYPTO_NSERVS (1) -#if TFM_ISOLATION_LEVEL == 3 -#define TFM_SP_CRYPTO_NASSETS (0 + 1) -#else -#define TFM_SP_CRYPTO_NASSETS (0) -#endif -#define TFM_SP_CRYPTO_NIRQS (0) - -/* Memory region declaration */ -#if TFM_ISOLATION_LEVEL == 3 -REGION_DECLARE(Image$$, PT_TFM_SP_CRYPTO_PRIVATE, _DATA_START$$Base); -REGION_DECLARE(Image$$, PT_TFM_SP_CRYPTO_PRIVATE, _DATA_END$$Base); -#endif - - -extern psa_status_t tfm_crypto_init(void); - -/* Interrupt init functions */ - -/* partition load info type definition */ -struct partition_tfm_sp_crypto_load_info_t { - /* common length load data */ - struct partition_load_info_t load_info; - /* per-partition variable length load data */ - uintptr_t stack_addr; - uintptr_t heap_addr; - uint32_t deps[TFM_SP_CRYPTO_NDEPS]; - struct service_load_info_t services[TFM_SP_CRYPTO_NSERVS]; -#if TFM_ISOLATION_LEVEL == 3 - struct asset_desc_t assets[TFM_SP_CRYPTO_NASSETS]; -#else -#endif -} __attribute__((aligned(4))); - -/* Partition load, deps, service load data. Put to a dedicated section. */ -#if defined(__ICCARM__) -#pragma location = ".part_load_priority_02" -__root -#endif /* __ICCARM__ */ -const struct partition_tfm_sp_crypto_load_info_t tfm_sp_crypto_load - __attribute__((used, section(".part_load_priority_02"))) = { - .load_info = { - .psa_ff_ver = 0x0101 | PARTITION_INFO_MAGIC, - .pid = TFM_SP_CRYPTO, - .flags = 0 - | PARTITION_MODEL_PSA_ROT - | PARTITION_PRI_NORMAL, - .entry = ENTRY_TO_POSITION(tfm_crypto_init), - .stack_size = 0, - .heap_size = 0, - .ndeps = TFM_SP_CRYPTO_NDEPS, - .nservices = TFM_SP_CRYPTO_NSERVS, - .nassets = TFM_SP_CRYPTO_NASSETS, - .nirqs = TFM_SP_CRYPTO_NIRQS, - }, - .stack_addr = 0, - .heap_addr = 0, - .deps = { - TFM_INTERNAL_TRUSTED_STORAGE_SERVICE_SID, - }, - .services = { - { - .name_strid = STRING_PTR_TO_STRID("TFM_CRYPTO"), - .sfn = ENTRY_TO_POSITION(tfm_crypto_sfn), - - .sid = 0x00000080, - .flags = 0 - | SERVICE_FLAG_NS_ACCESSIBLE - | SERVICE_FLAG_STATELESS | 0x0 - | SERVICE_FLAG_MM_IOVEC - | SERVICE_VERSION_POLICY_STRICT, - .version = 1, - }, - }, -#if TFM_ISOLATION_LEVEL == 3 - .assets = { - { - .mem.start = (uintptr_t)®ION_NAME(Image$$, PT_TFM_SP_CRYPTO_PRIVATE, _DATA_START$$Base), - .mem.limit = (uintptr_t)®ION_NAME(Image$$, PT_TFM_SP_CRYPTO_PRIVATE, _DATA_END$$Base), - .attr = ASSET_ATTR_READ_WRITE, - }, - }, -#else -#endif -}; - -/* Placeholder for partition and service runtime space. Do not reference it. */ -#if defined(__ICCARM__) -#pragma location=".bss.part_runtime_priority_02" -__root -#endif /* __ICCARM__ */ -static struct partition_t tfm_sp_crypto_partition_runtime_item - __attribute__((used, section(".bss.part_runtime_priority_02"))); -#if defined(__ICCARM__) -#pragma location = ".bss.serv_runtime_priority_02" -__root -#endif /* __ICCARM__ */ -static struct service_t tfm_sp_crypto_service_runtime_item[TFM_SP_CRYPTO_NSERVS] - __attribute__((used, section(".bss.serv_runtime_priority_02"))); diff --git a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/psa_manifest/tfm_crypto.h b/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/psa_manifest/tfm_crypto.h deleted file mode 100644 index d2171b0..0000000 --- a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/crypto/psa_manifest/tfm_crypto.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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_TFM_CRYPTO_H__ -#define __PSA_MANIFEST_TFM_CRYPTO_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TFM_SP_CRYPTO_MODEL_IPC 0 -#define TFM_SP_CRYPTO_MODEL_SFN 1 - -psa_status_t tfm_crypto_sfn(const psa_msg_t* msg); - - -#ifdef __cplusplus -} -#endif - -#endif /* __PSA_MANIFEST_TFM_CRYPTO_H__ */ diff --git a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c b/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c deleted file mode 100644 index def98d0..0000000 --- a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2020-2022, Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - * - */ - -/*********** WARNING: This is an auto-generated file. Do not edit! ***********/ - -#include <stdint.h> -#include "config_tfm.h" - diff --git a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c b/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c deleted file mode 100644 index 67777e4..0000000 --- a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2021-2022, Arm Limited. All rights reserved. - * Copyright (c) 2021-2023 Cypress Semiconductor Corporation (an Infineon - * company) or an affiliate of Cypress Semiconductor Corporation. All rights - * reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - * - */ - -/*********** WARNING: This is an auto-generated file. Do not edit! ***********/ - -#include <stdint.h> -#include <stddef.h> -#include "config_tfm.h" -#include "region.h" -#include "region_defs.h" -#include "spm.h" -#include "load/interrupt_defs.h" -#include "load/partition_defs.h" -#include "load/service_defs.h" -#include "load/asset_defs.h" -#include "tfm_peripherals_def.h" -#include "psa_manifest/pid.h" -#include "psa_manifest/sid.h" -#include "psa_manifest/tfm_platform.h" - -#define TFM_SP_PLATFORM_NDEPS (0) -#define TFM_SP_PLATFORM_NSERVS (1) -#if TFM_ISOLATION_LEVEL == 3 -#define TFM_SP_PLATFORM_NASSETS (0 + 1) -#else -#define TFM_SP_PLATFORM_NASSETS (0) -#endif -#define TFM_SP_PLATFORM_NIRQS (0) - -/* Memory region declaration */ -#if TFM_ISOLATION_LEVEL == 3 -REGION_DECLARE(Image$$, PT_TFM_SP_PLATFORM_PRIVATE, _DATA_START$$Base); -REGION_DECLARE(Image$$, PT_TFM_SP_PLATFORM_PRIVATE, _DATA_END$$Base); -#endif - - -extern psa_status_t platform_sp_init(void); - -/* Interrupt init functions */ - -/* partition load info type definition */ -struct partition_tfm_sp_platform_load_info_t { - /* common length load data */ - struct partition_load_info_t load_info; - /* per-partition variable length load data */ - uintptr_t stack_addr; - uintptr_t heap_addr; - struct service_load_info_t services[TFM_SP_PLATFORM_NSERVS]; -#if TFM_ISOLATION_LEVEL == 3 - struct asset_desc_t assets[TFM_SP_PLATFORM_NASSETS]; -#else -#endif -} __attribute__((aligned(4))); - -/* Partition load, deps, service load data. Put to a dedicated section. */ -#if defined(__ICCARM__) -#pragma location = ".part_load_priority_02" -__root -#endif /* __ICCARM__ */ -const struct partition_tfm_sp_platform_load_info_t tfm_sp_platform_load - __attribute__((used, section(".part_load_priority_02"))) = { - .load_info = { - .psa_ff_ver = 0x0101 | PARTITION_INFO_MAGIC, - .pid = TFM_SP_PLATFORM, - .flags = 0 - | PARTITION_MODEL_PSA_ROT - | PARTITION_PRI_NORMAL, - .entry = ENTRY_TO_POSITION(platform_sp_init), - .stack_size = 0, - .heap_size = 0, - .ndeps = TFM_SP_PLATFORM_NDEPS, - .nservices = TFM_SP_PLATFORM_NSERVS, - .nassets = TFM_SP_PLATFORM_NASSETS, - .nirqs = TFM_SP_PLATFORM_NIRQS, - }, - .stack_addr = 0, - .heap_addr = 0, - .services = { - { - .name_strid = STRING_PTR_TO_STRID("TFM_PLATFORM_SERVICE"), - .sfn = ENTRY_TO_POSITION(tfm_platform_service_sfn), - - .sid = 0x00000040, - .flags = 0 - | SERVICE_FLAG_NS_ACCESSIBLE - | SERVICE_FLAG_STATELESS | 0x5 - | SERVICE_VERSION_POLICY_STRICT, - .version = 1, - }, - }, -#if TFM_ISOLATION_LEVEL == 3 - .assets = { - { - .mem.start = (uintptr_t)®ION_NAME(Image$$, PT_TFM_SP_PLATFORM_PRIVATE, _DATA_START$$Base), - .mem.limit = (uintptr_t)®ION_NAME(Image$$, PT_TFM_SP_PLATFORM_PRIVATE, _DATA_END$$Base), - .attr = ASSET_ATTR_READ_WRITE, - }, - }, -#else -#endif -}; - -/* Placeholder for partition and service runtime space. Do not reference it. */ -#if defined(__ICCARM__) -#pragma location=".bss.part_runtime_priority_02" -__root -#endif /* __ICCARM__ */ -static struct partition_t tfm_sp_platform_partition_runtime_item - __attribute__((used, section(".bss.part_runtime_priority_02"))); -#if defined(__ICCARM__) -#pragma location = ".bss.serv_runtime_priority_02" -__root -#endif /* __ICCARM__ */ -static struct service_t tfm_sp_platform_service_runtime_item[TFM_SP_PLATFORM_NSERVS] - __attribute__((used, section(".bss.serv_runtime_priority_02"))); diff --git a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/psa_manifest/tfm_platform.h b/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/psa_manifest/tfm_platform.h deleted file mode 100644 index 9e5676b..0000000 --- a/nrfdemo/builddk/tfm/generated/secure_fw/partitions/platform/psa_manifest/tfm_platform.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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_TFM_PLATFORM_H__ -#define __PSA_MANIFEST_TFM_PLATFORM_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#define TFM_SP_PLATFORM_MODEL_IPC 0 -#define TFM_SP_PLATFORM_MODEL_SFN 1 - -psa_status_t tfm_platform_service_sfn(const psa_msg_t* msg); - - -#ifdef __cplusplus -} -#endif - -#endif /* __PSA_MANIFEST_TFM_PLATFORM_H__ */ diff --git a/nrfdemo/builddk/tfm/generated/secure_fw/spm/include/tfm_version.h b/nrfdemo/builddk/tfm/generated/secure_fw/spm/include/tfm_version.h deleted file mode 100644 index c10f3c9..0000000 --- a/nrfdemo/builddk/tfm/generated/secure_fw/spm/include/tfm_version.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2021, Arm Limited. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - * - */ - -#ifndef __TFM_VERSION_H__ -#define __TFM_VERSION_H__ - -/* - * Defines for TFM version. - */ -#define TFM_VERSION 2.0.0 -#define TFM_VERSION_FULL v2.0.0-ncs2 - -#define VERSTR(x) #x -#define VERCON(x) VERSTR(x) - -#define VERSION_STR VERCON(TFM_VERSION) -#define VERSION_FULLSTR VERCON(TFM_VERSION_FULL) - -#endif /* __TFM_VERSION_H__ */ diff --git a/nrfdemo/builddk/tfm/generated/tools/config_impl.cmake b/nrfdemo/builddk/tfm/generated/tools/config_impl.cmake deleted file mode 100644 index 43d11b9..0000000 --- a/nrfdemo/builddk/tfm/generated/tools/config_impl.cmake +++ /dev/null @@ -1,14 +0,0 @@ -#------------------------------------------------------------------------------- -# Copyright (c) 2022, Arm Limited. All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause -# -#------------------------------------------------------------------------------- - - -######## WARNING: This is an auto-generated file. Do not edit! ######## - -set(CONFIG_TFM_CONNECTION_BASED_SERVICE_API 0 PARENT_SCOPE) - -set(CONFIG_TFM_FLIH_API 0 PARENT_SCOPE) -set(CONFIG_TFM_SLIH_API 0 PARENT_SCOPE) |
