blob: e2e666c062e4fa33821841bb3cfee26050adcbfe [file] [log] [blame]
Jianliang Shendb114b52023-02-20 14:28:05 +08001#-------------------------------------------------------------------------------
2# Copyright (c) 2023, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8################################# Platform dependencies ########################
9
10config PLATFORM_SVC_HANDLERS
11 bool "Platform specific SVC handlers"
12 default n
13
14config PLATFORM_HAS_FIRMWARE_UPDATE_SUPPORT
15 def_bool n
16
17config PLATFORM_HAS_ISOLATION_L3_SUPPORT
18 def_bool n
19 help
20 Platform supports Isolation level 3
21
22################################# Test dependencies ############################
23
24config PS_TEST_NV_COUNTERS
25 def_bool y
26 help
27 Use the test NV counters to test Protected Storage rollback scenarios
28
29config PLATFORM_SLIH_IRQ_TEST_SUPPORT
30 def_bool n
31 help
32 Platform supports SLIH IRQ tests
33
34config PLATFORM_FLIH_IRQ_TEST_SUPPORT
35 def_bool n
36 help
37 Platform supports FLIH IRQ tests
38
39######################### TFM psa api test target ##############################
40
41config PSA_API_TEST_TARGET
42 def_string ""
43
44################################# Debug authentication #########################
45
46config DEBUG_AUTHENTICATION_CHIP_DEFAULT
47 def_bool y
48
49config DEBUG_AUTHENTICATION_NONE
50 def_bool n
51
52config DEBUG_AUTHENTICATION_NS_ONLY
53 def_bool n
54
55config DEBUG_AUTHENTICATION_FULL
56 def_bool n
57
58config DEBUG_AUTHENTICATION
59 string
60 default "CHIP_DEFAULT" if DEBUG_AUTHENTICATION_CHIP_DEFAULT
61 default "NONE" if DEBUG_AUTHENTICATION_NONE
62 default "NS_ONLY" if DEBUG_AUTHENTICATION_NS_ONLY
63 default "FULL" if DEBUG_AUTHENTICATION_FULL
64
65################################# Platform Hardware topology ###################
66config TFM_MULTI_CORE_TOPOLOGY
67 bool
68 default n
69 help
70 Dual-cpu architecture
71
72config CONFIG_TFM_USE_TRUSTZONE
73 bool
74 default n
75 help
76 Enable use of TrustZone to transition between NSPE and SPE
77
78######################### Cyrpto Hardware accelerator ##########################
79config CRYPTO_HW_ACCELERATOR_CC312
80 def_bool n
81 help
82 CryptoCell-312
83
84config CRYPTO_HW_ACCELERATOR_STM
85 def_bool n
86
87config CRYPTO_HW_ACCELERATOR_TYPE
88 string
89 default "cc312" if CRYPTO_HW_ACCELERATOR_CC312
90 default "stm" if CRYPTO_HW_ACCELERATOR_STM
91 default ""
92
93################################# Platform default #############################
94
95config PLATFORM_DEFAULT_BL1
96 bool "Use default BL1"
97 default y
98
99config PLATFORM_DEFAULT_ATTEST_HAL
100 def_bool y
101 help
102 Use default attest hal implementation
103
104config PLATFORM_DEFAULT_NV_COUNTERS
105 def_bool y
106 depends on PLATFORM_DEFAULT_OTP_WRITEABLE
107 help
108 Use default nv counter implementation
109
110config PLATFORM_DEFAULT_CRYPTO_KEYS
111 def_bool y
112 help
113 Use default crypto keys implementation
114
115config PLATFORM_DEFAULT_ROTPK
116 def_bool y
117 help
118 Use default root of trust public key
119
120config PLATFORM_DEFAULT_IAK
121 def_bool y
122 help
123 Use default initial attestation_key
124
125config PLATFORM_DEFAULT_UART_STDOUT
126 def_bool y
127 help
128 Use default uart stdout implementation
129
130config PLATFORM_DEFAULT_NV_SEED
131 def_bool y
132 help
133 Use default NV seed implementation
134
135config PLATFORM_DEFAULT_OTP
136 bool "Use trusted on-chip flash to implement OTP memory"
137 default y
138 help
139 Use trusted on-chip flash to implement OTP memory
140
141config PLATFORM_DEFAULT_OTP_WRITEABLE
142 def_bool y
143 help
144 Use OTP memory with write support
145
146config PLATFORM_DEFAULT_PROVISIONING
147 def_bool y
148 help
149 Use default provisioning implementation
150
151config PLATFORM_DEFAULT_SYSTEM_RESET_HALT
152 bool "Use default system halt implementation"
153 default y
154 help
155 Use default system reset/halt implementation
156
157config PLATFORM_DEFAULT_IMAGE_SIGNING
158 def_bool y
159 help
160 Use default image signing implementation
161
162config TFM_PLAT_SPECIFIC_MULTI_CORE_COMM
163 bool "Use a platform specific inter-core communication"
164 depends on TFM_MULTI_CORE_TOPOLOGY
165 help
166 Whether to use a platform specific inter-core communication instead of
167 mailbox in dual-cpu topology
168
169config OTP_NV_COUNTERS_RAM_EMULATION
170 bool "Enable OTP/NV_COUNTERS emulation in RAM"
171 default n
172 depends on PLATFORM_DEFAULT_OTP || PLATFORM_DEFAULT_NV_COUNTERS
173 help
174 Enable OTP/NV_COUNTERS emulation in RAM. Has no effect on non-default
175 implementations of the OTP and NV_COUNTERS
176
177config TFM_NS_NV_COUNTER_AMOUNT
178 int "Numbers of NS NV counters"
179 default 0
180 range 0 3
181
182config PSA_API_TEST_TARGET
183 def_string ""