summaryrefstree
path: root/kernel/drivers/misc/tzdev/Kconfig
blob: 8825207f40b21f69ac3563ba7e57af62f73c700c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
config TZDEV
	bool "Samsung TZ Based Secure OS Support"
	default n
	depends on ARM || ARM64
	help
	  Samsung TZ Based Secure OS interface driver

config QCOM_SCM_ARMV8
	bool "QC ARM8 scm call"
	depends on TZDEV
	default n
	help
	  Use scm_call2() to send SMC commands to BF

config TZDEV_32BIT_SECURE_KERNEL
	bool "Secure kernel works in 32bit mode"
	depends on TZDEV
	default y
	help
	  Defines which version of secure kernel is used

config TZDEV_USE_ARM_CALLING_CONVENTION
	bool "Comply to ARM calling convention"
	depends on TZDEV
	default y
	help
	  Comply to ARM calling convention. New software architectures use
	  EL3 code comply to this convention compared to old architectures
	  when Secure kernel contains non-compatible commands handler

config TZDEV_CMA
	bool "Allocate TrustZone environment CMA region"
	depends on TZDEV && (CMA || DMA_CMA) && !ARCH_MSM
	default n
	help
	  Use CMA region to allocate TrustZone environment memory

config TZDEV_MEMRESSZ
	hex "TrustZone environment memory reservation size"
	depends on TZDEV_CMA
	default 0x01000000
	help
	  Provide reservation of memory for usage in secure world - allocation size.

config TZDEV_MEMRESSZPROT
	hex "TrustZone environment memory reservation size - protected"
	depends on TZDEV_CMA
	help
	  Provide reservation of memory for usage in secure world - bootloader-protected size.

config TZDEV_MEMRESADDR
	hex "TrustZone environment memory reservation address"
	depends on TZDEV_CMA
	help
	  Provide reservation of memory for usage in secure world - allocation address.

config TZDEV_IWI_EVENT
	int "IWI_EVENT interrupt number"
	depends on TZDEV
	default 280 if ARCH_MSM
	default 125 if ARCH_EXYNOS3
	default 113 if ARCH_EXYNOS4
	default 501 if ARCH_EXYNOS5
	default 446 if ARCH_EXYNOS7

config TZDEV_IWI_PANIC
	int "IWI_PANIC interrupt number"
	depends on TZDEV
	default 0 if ARCH_MSM
	default 126 if ARCH_EXYNOS3
	default 114 if ARCH_EXYNOS4
	default 502 if ARCH_EXYNOS5
	default 447 if ARCH_EXYNOS7

config TZDEV_SWD_PANIC_IS_CRITICAL
	bool "Panic NWd if secure world panics"
	depends on TZDEV
	default n
	help
	  Enable support of NWd panic generation in tzdev when secure world panics

config CONFIG_TZDEV_NWD_PANIC_ON_CLOSE
	bool "Panic NWd if tzdev is closed"
	depends on TZDEV
	default n
	help
	  Panic system on crash/close of NWd components

config TZLOG
	bool "TZDEV LOGGER support"
	depends on TZDEV
	default n
	help
	  Enable support for Samsung Secure OS Logger

config TZLOG_POLLING
	bool "TZDEV LOGGER polling"
	depends on TZLOG
	default n
	help
	  Enable periodic logs polling by TZDEV

config TZLOG_POLLING_PERIOD
	int "TZDEV LOGGER polling period (in ms)"
	depends on TZLOG_POLLING
	default 100
	help
	  Define logs polling period in milliseconds. The resolution is 1/Hz ms
	  rounded down (e.g. for Hz = 100, value 117 would mean 110 ms period)

config TZLOG_PG_CNT
	int "TZDEV LOGGER per-CPU buffer size (in pages)"
	depends on TZLOG
	default 1
	help
	  Select TZDEV logger buffer size in pages per CPU.

config TZDEV_MULTI_CORE_AUX_CHANNELS
	bool "TZDEV multi aux channels"
	depends on TZDEV
	default n
	help
	  Enable usage of multi aux channels (for each cpu core). If disabled,
	  aux channel 0 is always used.

config TZDEV_MSM_CRYPTO_WORKAROUND
	bool
	default n

config TZDEV_QC_CRYPTO_CLOCKS_MANAGEMENT
	bool "TZDEV crypto clock management"
	depends on TZDEV && QCOM_SCM_ARMV8
	default n
	help
	  Enable QC HW crypto clock management.

config TZDEV_QC_CRYPTO_CLOCKS_USR_MNG
	bool "User crypto clock management"
	depends on TZDEV && QCOM_SCM_ARMV8 && TZDEV_QC_CRYPTO_CLOCKS_MANAGEMENT
	default n
	help
	  Enable QC HW crypto clock management from User space. If disabled,
	  QC HW clock disable/enable is done in TZDEV.

config TZASC_TEST
	tristate "TZASC test helper module"
	depends on TZDEV
	default n
	help
	Provide the way to allocate a region of DRAM suitable for protection by
	a TZASC, get its physical address, and mmap it into userspace.

config TZASC_TEST_PAGE_ORDER
	int "TZASC test page allocation order"
	depends on TZASC_TEST
	default 5
	help
	  Select TZASC test buffer page allocation order.

config TZPC_TEST
	tristate "TZPC test helper module"
	depends on TZDEV
	default n
	help
	Provide the way to try access to SSS device.

config TZ_MEMDUMP_TEST
	tristate "TZ memdump test helper module"
	default n
	help
	Provide the way to try to memdump from physical location.

config TZ_MMAP_TEST
	bool "TZ mmap test helper module"
	default n
	help
	Provide the way to get physical address of a location with known
	contents.

config EFUSE_TEST
	tristate "efuse test Kernel Module"
	default n
	help
	  Say Y to enable efuse test kernel modules.

config ION_FD2PHYS
	tristate "ION FD to physical address converter"
	depends on ION && (ARCH_EXYNOS || ARCH_MSM)
	default y
	help
	Provide a method for userspace to get physical address from ION buffer
	descriptor

config TZIRS
	bool "Integrity reporting system"
	depends on TZDEV
	default n
	help
	  Enable Integrity reporintg system for Samsung Secure OS

config TZTUI
	bool "Trusted user interface"
	depends on TZDEV
	default n
	help
	  Enable Trusted user interface support for Samsung Secure OS

config TZ_CORE_MIGRATION
	bool "Core migration"
	depends on TZDEV
	default n
	help
	  Enable Core migration functionality for Samsung Secure OS

config TZDEV_PAGE_MIGRATION
	bool "Page migration"
	depends on TZDEV && MIGRATION && CMA
	default n
	help
	  Enable Page migration functionality for CMA Migration