Skip to content

Commit 4fb0a5e

Browse files
committed
tee: add OP-TEE driver
Adds a OP-TEE driver which also can be compiled as a loadable module. * Targets ARM and ARM64 * Supports using reserved memory from OP-TEE as shared memory * Probes OP-TEE version using SMCs * Accepts requests on privileged and unprivileged device * Uses OPTEE message protocol version 2 to communicate with secure world Acked-by: Andreas Dannenberg <[email protected]> Tested-by: Jerome Forissier <[email protected]> (HiKey) Tested-by: Volodymyr Babchuk <[email protected]> (RCAR H3) Tested-by: Scott Branden <[email protected]> Reviewed-by: Javier González <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent 967c9cc commit 4fb0a5e

File tree

12 files changed

+2814
-0
lines changed

12 files changed

+2814
-0
lines changed

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9369,6 +9369,11 @@ F: arch/*/oprofile/
93699369
F: drivers/oprofile/
93709370
F: include/linux/oprofile.h
93719371

9372+
OP-TEE DRIVER
9373+
M: Jens Wiklander <[email protected]>
9374+
S: Maintained
9375+
F: drivers/tee/optee/
9376+
93729377
ORACLE CLUSTER FILESYSTEM 2 (OCFS2)
93739378
M: Mark Fasheh <[email protected]>
93749379
M: Joel Becker <[email protected]>

drivers/tee/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ config TEE
66
help
77
This implements a generic interface towards a Trusted Execution
88
Environment (TEE).
9+
10+
if TEE
11+
12+
menu "TEE drivers"
13+
14+
source "drivers/tee/optee/Kconfig"
15+
16+
endmenu
17+
18+
endif

drivers/tee/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ obj-$(CONFIG_TEE) += tee.o
22
tee-objs += tee_core.o
33
tee-objs += tee_shm.o
44
tee-objs += tee_shm_pool.o
5+
obj-$(CONFIG_OPTEE) += optee/

drivers/tee/optee/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# OP-TEE Trusted Execution Environment Configuration
2+
config OPTEE
3+
tristate "OP-TEE"
4+
depends on HAVE_ARM_SMCCC
5+
help
6+
This implements the OP-TEE Trusted Execution Environment (TEE)
7+
driver.

drivers/tee/optee/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
obj-$(CONFIG_OPTEE) += optee.o
2+
optee-objs += core.o
3+
optee-objs += call.o
4+
optee-objs += rpc.o
5+
optee-objs += supp.o

0 commit comments

Comments
 (0)