[PATCH 4/8 v6] tpm2: Add a TPMv2 MMIO TIS driver

Simon Glass sjg at chromium.org
Mon Nov 8 16:58:38 CET 2021


Hi Ilias,

On Sun, 7 Nov 2021 at 14:33, Ilias Apalodimas
<ilias.apalodimas at linaro.org> wrote:
>
> Add support for devices that expose a TPMv2 though MMIO.
> Apart from those devices, we can use the driver in our QEMU setups and
> test TPM related code which is difficult to achieve using the sandbox
> driver (e.g test the EFI TCG2 protocol).
>
> It's worth noting that a previous patch added TPMv2 TIS core functions,
> which the current driver is consuming.
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
>  drivers/tpm/Kconfig         |   9 +++
>  drivers/tpm/Makefile        |   1 +
>  drivers/tpm/tpm2_tis_mmio.c | 151 ++++++++++++++++++++++++++++++++++++
>  3 files changed, 161 insertions(+)
>  create mode 100644 drivers/tpm/tpm2_tis_mmio.c

Reviewed-by: Simon Glass <sjg at chromium.org>

We normally put a blank line before the final 'return' in functions.

Regards,
Simon


More information about the U-Boot mailing list