[U-Boot] [PATCH 09/21] tpm: Remove use of build-time TPM versions
sjg at google.com
sjg at google.com
Wed Dec 5 23:10:54 UTC 2018
There is only one place in the code which assumes at build-time that we
are using either a v1 or a v2 TPM. Fix this up and add a new function to
return the version of a TPM.
Supported TPM versions (v1 and v2) can be enabled independently and it is
possible to use both versions at once. This is useful for sandbox when
running tests.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
include/tpm-common.h | 11 +++++++++++
lib/tpm-common.c | 7 +++++++
lib/tpm-v1.c | 22 +++++++++++-----------
3 files changed, 29 insertions(+), 11 deletions(-)
Applied to u-boot-dm/master, thanks!
More information about the U-Boot
mailing list