]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: Add an API that can support v1.2 and v2
authorSimon Glass <sjg@chromium.org>
Sat, 6 Feb 2021 21:23:35 +0000 (14:23 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 2 Mar 2021 20:53:37 +0000 (15:53 -0500)
commitbfe8fa262c788b817a8de66f78b3b2d9c22fa0d1
tree2d635045009618c16483616e8d47475447f249aa
parent1a39ab87b7684824de83985726a2bfe535223ef1
tpm: Add an API that can support v1.2 and v2

There are two different TPM standards. U-Boot supports both but each has
its own set of functions. We really need a single TPM API that can call
one or the other. This is not always possible as there are some
differences between the two standards, but it is mostly possible.

Add an API to handle this. So far it is not plumbed into the build and
only supports TPMv1.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/tpm_api.h [new file with mode: 0644]
lib/tpm_api.c [new file with mode: 0644]