]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tpm2: ftpm: add the device in the OP-TEE services list
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 19 Jan 2023 14:36:12 +0000 (16:36 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 20 Jan 2023 08:04:56 +0000 (10:04 +0200)
commit fe8a4ed0111073 ("tee: optee: discover services dependent on tee-supplicant")
is trying to automatically scan and add TAs that are presented on pseudo
bus from the secure world.
In order to be able to list and compare the scanned devices the available drivers
have to register themselves on the op-tee service list.

Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tpm/tpm2_ftpm_tee.c

index 3c4c12983daad65ac0c4e4b74315818286ffe2c3..c61ff2c2af63c3563dcf305cc76502a8dca93386 100644 (file)
 #include <log.h>
 #include <tpm-v2.h>
 #include <tee.h>
+#include <tee/optee_service.h>
 
 #include "tpm_tis.h"
 #include "tpm2_ftpm_tee.h"
 
+OPTEE_SERVICE_DRIVER(optee_ftpm, TA_FTPM_UUID, "ftpm_tee");
+
 /**
  * ftpm_tee_transceive() - send fTPM commands and retrieve fTPM response.
  * @sendbuf - address of the data to send, byte by byte