Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fb0a5eb authored by Jens Wiklander's avatar Jens Wiklander
Browse files

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: default avatarAndreas Dannenberg <dannenberg@ti.com>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)
Tested-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> (RCAR H3)
Tested-by: default avatarScott Branden <scott.branden@broadcom.com>
Reviewed-by: default avatarJavier González <javier@javigon.com>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 967c9cca
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9369,6 +9369,11 @@ F: arch/*/oprofile/
F:	drivers/oprofile/
F:	include/linux/oprofile.h

OP-TEE DRIVER
M:	Jens Wiklander <jens.wiklander@linaro.org>
S:	Maintained
F:	drivers/tee/optee/

ORACLE CLUSTER FILESYSTEM 2 (OCFS2)
M:	Mark Fasheh <mfasheh@versity.com>
M:	Joel Becker <jlbec@evilplan.org>
+10 −0
Original line number Diff line number Diff line
@@ -6,3 +6,13 @@ config TEE
	help
	  This implements a generic interface towards a Trusted Execution
	  Environment (TEE).

if TEE

menu "TEE drivers"

source "drivers/tee/optee/Kconfig"

endmenu

endif
+1 −0
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@ obj-$(CONFIG_TEE) += tee.o
tee-objs += tee_core.o
tee-objs += tee_shm.o
tee-objs += tee_shm_pool.o
obj-$(CONFIG_OPTEE) += optee/
+7 −0
Original line number Diff line number Diff line
# OP-TEE Trusted Execution Environment Configuration
config OPTEE
	tristate "OP-TEE"
	depends on HAVE_ARM_SMCCC
	help
	  This implements the OP-TEE Trusted Execution Environment (TEE)
	  driver.
+5 −0
Original line number Diff line number Diff line
obj-$(CONFIG_OPTEE) += optee.o
optee-objs += core.o
optee-objs += call.o
optee-objs += rpc.o
optee-objs += supp.o
Loading