tee: add AMD-TEE driver
authorRijo Thomas <Rijo-john.Thomas@amd.com>
Fri, 27 Dec 2019 05:24:01 +0000 (10:54 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 4 Jan 2020 05:49:51 +0000 (13:49 +0800)
commit757cc3e9ff1d72d014096399d6e2bf03974d9da1
tree0e4f61596bd18bebd00cf1026fa0211ac3453bae
parent1a74fa3894e7ee23a36f677789dd1e3048b82a72
tee: add AMD-TEE driver

Adds AMD-TEE driver.
* targets AMD APUs which has AMD Secure Processor with software-based
  Trusted Execution Environment (TEE) support
* registers with TEE subsystem
* defines tee_driver_ops function callbacks
* kernel allocated memory is used as shared memory between normal
  world and secure world.
* acts as REE (Rich Execution Environment) communication agent, which
  uses the services of AMD Secure Processor driver to submit commands
  for processing in TEE environment

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Co-developed-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Reviewed-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/tee/Kconfig
drivers/tee/Makefile
drivers/tee/amdtee/Kconfig [new file with mode: 0644]
drivers/tee/amdtee/Makefile [new file with mode: 0644]
drivers/tee/amdtee/amdtee_if.h [new file with mode: 0644]
drivers/tee/amdtee/amdtee_private.h [new file with mode: 0644]
drivers/tee/amdtee/call.c [new file with mode: 0644]
drivers/tee/amdtee/core.c [new file with mode: 0644]
drivers/tee/amdtee/shm_pool.c [new file with mode: 0644]
include/uapi/linux/tee.h