blob: 0a31556ed53018b8f9171625105a1a0a6799d906 [file] [log] [blame]
Jianliang Shen710cb952022-10-08 11:32:35 +08001#-------------------------------------------------------------------------------
Kevin Peng5cba61c2023-01-06 14:23:15 +08002# Copyright (c) 2022-2023, Arm Limited. All rights reserved.
Jianliang Shen710cb952022-10-08 11:32:35 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
Kevin Peng5cba61c2023-01-06 14:23:15 +08008menu "SPM"
9config 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 Shen710cb952022-10-08 11:32:35 +080015
Kevin Peng5cba61c2023-01-06 14:23:15 +080016choice
17 prompt "SPM Backend"
18 default CONFIG_TFM_SPM_BACKEND_SFN
Jianliang Shen710cb952022-10-08 11:32:35 +080019
Kevin Peng5cba61c2023-01-06 14:23:15 +080020 config CONFIG_TFM_SPM_BACKEND_SFN
21 bool "SFN Backend"
22
23 config CONFIG_TFM_SPM_BACKEND_IPC
24 bool "IPC Backend"
Kevin Peng54e31d02023-01-06 18:03:19 +080025 select CONFIG_TFM_PARTITION_META
Kevin Peng5cba61c2023-01-06 14:23:15 +080026endchoice
27
28config 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
34choice
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"
48endchoice
49
50config 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
57config PSA_FRAMEWORK_HAS_MM_IOVEC
58 bool "Enable MM-IOVEC"
59 default n
60 depends on TFM_ISOLATION_LEVEL = 1
Jianliang Shen710cb952022-10-08 11:32:35 +080061endmenu
Kevin Peng54e31d02023-01-06 18:03:19 +080062
63######################## Promptless (non-user) config options ##################
64########### Do NOT change the following config options anywhere! ###############
65config CONFIG_TFM_PARTITION_META
66 def_bool n
67
68config TFM_PARTITION_NS_AGENT_MAILBOX
69 bool
70 default y if TFM_MULTI_CORE_TOPOLOGY
71 default n
72
73config TFM_PARTITION_NS_AGENT_TZ
74 bool
75 default y if CONFIG_TFM_USE_TRUSTZONE
76 default n