Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 2 | # Copyright (c) 2022-2023, Arm Limited. All rights reserved. |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 8 | menu "SPM" |
| 9 | config TFM_ISOLATION_LEVEL |
| 10 | int "Isolation level" |
| 11 | default 1 |
| 12 | range 1 1 if CONFIG_TFM_SPM_BACKEND_SFN |
| 13 | range 1 3 if PLATFORM_HAS_ISOLATION_L3_SUPPORT |
| 14 | range 1 2 |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 15 | |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 16 | choice |
| 17 | prompt "SPM Backend" |
| 18 | default CONFIG_TFM_SPM_BACKEND_SFN |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 19 | |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 20 | config CONFIG_TFM_SPM_BACKEND_SFN |
| 21 | bool "SFN Backend" |
| 22 | |
| 23 | config CONFIG_TFM_SPM_BACKEND_IPC |
| 24 | bool "IPC Backend" |
Kevin Peng | 54e31d0 | 2023-01-06 18:03:19 +0800 | [diff] [blame^] | 25 | select CONFIG_TFM_PARTITION_META |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 26 | endchoice |
| 27 | |
| 28 | config CONFIG_TFM_SPM_BACKEND |
| 29 | string |
| 30 | default "IPC" if CONFIG_TFM_SPM_BACKEND_IPC |
| 31 | default "SFN" if CONFIG_TFM_SPM_BACKEND_SFN |
| 32 | default "" |
| 33 | |
| 34 | choice |
| 35 | prompt "Fault injection hardening profile" |
| 36 | |
| 37 | config TFM_FIH_PROFILE_OFF |
| 38 | bool "OFF" |
| 39 | |
| 40 | config TFM_FIH_PROFILE_LOW |
| 41 | bool "Low" |
| 42 | |
| 43 | config TFM_FIH_PROFILE_MEDIUM |
| 44 | bool "Medium" |
| 45 | |
| 46 | config TFM_FIH_PROFILE_HIGH |
| 47 | bool "High" |
| 48 | endchoice |
| 49 | |
| 50 | config TFM_FIH_PROFILE |
| 51 | string |
| 52 | default "OFF" if TFM_FIH_PROFILE_OFF |
| 53 | default "LOW" if TFM_FIH_PROFILE_LOW |
| 54 | default "MEDIUM" if TFM_FIH_PROFILE_MEDIUM |
| 55 | default "HIGH" if TFM_FIH_PROFILE_HIGH |
| 56 | |
| 57 | config PSA_FRAMEWORK_HAS_MM_IOVEC |
| 58 | bool "Enable MM-IOVEC" |
| 59 | default n |
| 60 | depends on TFM_ISOLATION_LEVEL = 1 |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 61 | endmenu |
Kevin Peng | 54e31d0 | 2023-01-06 18:03:19 +0800 | [diff] [blame^] | 62 | |
| 63 | ######################## Promptless (non-user) config options ################## |
| 64 | ########### Do NOT change the following config options anywhere! ############### |
| 65 | config CONFIG_TFM_PARTITION_META |
| 66 | def_bool n |
| 67 | |
| 68 | config TFM_PARTITION_NS_AGENT_MAILBOX |
| 69 | bool |
| 70 | default y if TFM_MULTI_CORE_TOPOLOGY |
| 71 | default n |
| 72 | |
| 73 | config TFM_PARTITION_NS_AGENT_TZ |
| 74 | bool |
| 75 | default y if CONFIG_TFM_USE_TRUSTZONE |
| 76 | default n |