tpm2: Introduce TIS tpm core
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 9 Nov 2021 07:02:17 +0000 (09:02 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 10 Nov 2021 19:57:54 +0000 (20:57 +0100)
commit2c9626c463151f1c178b5855bc763978e3878954
tree288be8cca1959ea472f5439457c04319a8d84fd0
parentc9e6d9c8e573ea3dec4362319162af4e125076f7
tpm2: Introduce TIS tpm core

There's a lot of code duplication in U-Boot right now.  All the TPM TIS
compatible drivers we have at the moment have their own copy of a TIS
implementation.

So let's create a common layer which implements the core TIS functions.
Any driver added from now own, which is compatible with the TIS spec, will
only have to provide the underlying bus communication mechanisms.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tpm/tpm2_tis_core.c [new file with mode: 0644]
drivers/tpm/tpm_tis.h
include/tpm-v2.h