blob: 845cdac55b46288d21ff1eb451395b1f0a3a6f09 [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"
25endchoice
26
27config CONFIG_TFM_SPM_BACKEND
28 string
29 default "IPC" if CONFIG_TFM_SPM_BACKEND_IPC
30 default "SFN" if CONFIG_TFM_SPM_BACKEND_SFN
31 default ""
32
33choice
34 prompt "Fault injection hardening profile"
35
36 config TFM_FIH_PROFILE_OFF
37 bool "OFF"
38
39 config TFM_FIH_PROFILE_LOW
40 bool "Low"
41
42 config TFM_FIH_PROFILE_MEDIUM
43 bool "Medium"
44
45 config TFM_FIH_PROFILE_HIGH
46 bool "High"
47endchoice
48
49config TFM_FIH_PROFILE
50 string
51 default "OFF" if TFM_FIH_PROFILE_OFF
52 default "LOW" if TFM_FIH_PROFILE_LOW
53 default "MEDIUM" if TFM_FIH_PROFILE_MEDIUM
54 default "HIGH" if TFM_FIH_PROFILE_HIGH
55
56config PSA_FRAMEWORK_HAS_MM_IOVEC
57 bool "Enable MM-IOVEC"
58 default n
59 depends on TFM_ISOLATION_LEVEL = 1
Jianliang Shen710cb952022-10-08 11:32:35 +080060endmenu