tee: optee: Add SMC for loading OP-TEE image
[linux-2.6-block.git] / drivers / tee / optee / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
4fb0a5eb
JW
2# OP-TEE Trusted Execution Environment Configuration
3config OPTEE
4 tristate "OP-TEE"
5 depends on HAVE_ARM_SMCCC
9e0caab8 6 depends on MMU
4fb0a5eb
JW
7 help
8 This implements the OP-TEE Trusted Execution Environment (TEE)
9 driver.
f3040daa
JK
10
11config OPTEE_INSECURE_LOAD_IMAGE
12 bool "Load OP-TEE image as firmware"
13 default n
14 depends on OPTEE && ARM64
15 help
16 This loads the BL32 image for OP-TEE as firmware when the driver is
17 probed. This returns -EPROBE_DEFER until the firmware is loadable from
18 the filesystem which is determined by checking the system_state until
19 it is in SYSTEM_RUNNING. This also requires enabling the corresponding
20 option in Trusted Firmware for Arm. The documentation there explains
21 the security threat associated with enabling this as well as
22 mitigations at the firmware and platform level.
23 https://trustedfirmware-a.readthedocs.io/en/latest/threat_model/threat_model.html
24
25 Additional documentation on kernel security risks are at
26 Documentation/staging/tee.rst.