aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2023-01-19 16:36:12 +0200
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2023-01-20 10:04:56 +0200
commit9d28f67c8153ce2eaea21b2f3b7810a1aa8fce6d (patch)
tree7965d1899bd521e141216d02e9eddd4d9a008223
parent8aedcaf9918403a550a1c108092bba7f73ccd0c9 (diff)
downloadu-boot-9d28f67c8153ce2eaea21b2f3b7810a1aa8fce6d.zip
u-boot-9d28f67c8153ce2eaea21b2f3b7810a1aa8fce6d.tar.gz
u-boot-9d28f67c8153ce2eaea21b2f3b7810a1aa8fce6d.tar.bz2
tpm2: ftpm: add the device in the OP-TEE services list
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>
-rw-r--r--drivers/tpm/tpm2_ftpm_tee.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tpm/tpm2_ftpm_tee.c b/drivers/tpm/tpm2_ftpm_tee.c
index 3c4c129..c61ff2c 100644
--- a/drivers/tpm/tpm2_ftpm_tee.c
+++ b/drivers/tpm/tpm2_ftpm_tee.c
@@ -18,10 +18,13 @@
#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