TPM fixes and state reporting

-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEgWII69YpahbL5iK5gS8AYozs+qIFAmPKS78ACgkQgS8AYozs
 +qI5bg//VWZTgUAvk5GijVFcko+Dm4ItQrD22ggTLZgMXXXbYWFKx0SZbN8hwtgE
 sYGQnOCSuwP08omTSj46L80fF1LcPjhi5/QOp6vN5Zq9U8BVngrZr62zlOpPHVvH
 b2kQv1nb0M23WzC2SPqzUAIHD08/5kHUmITed0jLRjD1X7xbp+JwWeeycSG/dtmF
 g2R0lCT60wWStCqrtGYrSl/4SZ65K05sT/8bz46yYb4jNnqdmw7REcSJUvrE+1aN
 K5o8alKrp3meNmKrzNlIs1VUWdX7zyOlpwPNr5evFFoJy14IT4Z7iyy8ahImfaX0
 +WWhFbmIlqFJm8EPF94W97j6CWDxGoMcBz1U/wI09i+mm3sbtOIcXSfQegLhYJSr
 dc2s0tjEXcmkU+8WGeAId0jE7W3nf3akOFzHceUTJMlE72IpC+T9iKzDvW3rWDdM
 0/tWvQ0qDCPdkpLXHo7pnMSXNQ4m17+h2852iX6Lllw5sBj3lfJLb5udKI4fQVXa
 Zdp1lUjjsjCtg17iynx1cEdxEUPKU84X8/AI9/N6vvBt2Wn7IstN7ZXscg+N70+Q
 879MyUGeCWtjdjXDPAvwhA505I9DN3paX0xkNUbbqXCsWjE0NR8yc4vaSid68mV3
 aYDe/0n5VxjrbieMOldr66I6IyoP+j/kwRLzB+A1CfmwX/9QQO0=
 =p8+l
 -----END PGP SIGNATURE-----

Merge tag 'tpm-20012023' of https://source.denx.de/u-boot/custodians/u-boot-tpm

TPM fixes and state reporting
This commit is contained in:
Tom Rini 2023-01-20 10:36:00 -05:00
commit 8bd3c0a7e1
3 changed files with 8 additions and 2 deletions

View File

@ -1452,6 +1452,7 @@ F: configs/j721s2_hs_evm_r5_defconfig
TPM DRIVERS
M: Ilias Apalodimas <ilias.apalodimas@linaro.org>
S: Maintained
T: git https://source.denx.de/u-boot/custodians/u-boot-tpm.git
F: drivers/tpm/
TQ GROUP
@ -1461,6 +1462,8 @@ T: git git://git.denx.de/u-boot-tq-group.git
TEE
M: Jens Wiklander <jens.wiklander@linaro.org>
M: Ilias Apalodimas <ilias.apalodimas@linaro.org>
T: git https://source.denx.de/u-boot/custodians/u-boot-tpm.git
S: Maintained
F: drivers/tee/
F: include/tee.h

View File

@ -73,7 +73,7 @@ static struct optee_service *find_service_driver(const struct tee_optee_ta_uuid
for (idx = 0; idx < service_cnt; idx++, service++) {
tee_optee_ta_uuid_to_octets(loc_uuid, &service->uuid);
if (!memcmp(uuid, loc_uuid, sizeof(uuid)))
if (!memcmp(uuid, loc_uuid, sizeof(*uuid)))
return service;
}
@ -850,7 +850,7 @@ static int optee_probe(struct udevice *dev)
ret = device_bind_driver_to_node(dev, "optee-rng", "optee-rng",
dev_ofnode(dev), NULL);
if (ret)
dev_warn(dev, "ftpm_tee failed to bind: %d\n", ret);
dev_warn(dev, "optee-rng failed to bind: %d\n", ret);
}
return 0;

View File

@ -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