drivers: tee: optee: discover OP-TEE services
authorEtienne Carriere <etienne.carriere@linaro.org>
Tue, 26 Jul 2022 14:21:42 +0000 (16:21 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Sep 2022 19:23:03 +0000 (15:23 -0400)
commit94ccfb78a4d61cac7cbc78f23751ec1db949d29e
treebc8c43a223a86af6c4e89952a9133adb4e7c1fbc
parentfd0d7a6c88fe0ae16dda95eba52c598b9fa9db2a
drivers: tee: optee: discover OP-TEE services

This change defines resources for OP-TEE service drivers to register
themselves for being bound to when OP-TEE firmware reports the related
service is supported. OP-TEE services are discovered during optee
driver probe sequence which mandates optee driver is always probe once
bound.

Discovery of optee services and binding to related U-Boot drivers is
embedded upon configuration switch CONFIG_OPTEE_SERVICE_DISCOVERY.

Cc: Jens Wiklander <jens.wiklander@linaro.org>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/tee/optee/Kconfig
drivers/tee/optee/core.c
include/tee/optee_service.h [new file with mode: 0644]