]> git.baikalelectronics.ru Git - uboot.git/commit
tpm: Export the open/close functions
authorSimon Glass <sjg@chromium.org>
Sun, 18 Nov 2018 21:22:26 +0000 (14:22 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:06 +0000 (09:30 -0700)
commit916e97d6cca49813cbfa9b574d9d56595de38227
tree019ad60bed1d06aef4b527daa3b206e1491a9381
parent5bb743b251d8eb3fc5865f80defa1108114e4fbd
tpm: Export the open/close functions

At present these functions are not accessible outside the TPM library, but
in some cases we need to call them. Export them in the header file and add
a define for the SHA1 digest size.

Also adjust tpm_open() to call tpm_close() first so that the TPM is in a
known state before opening (e.g. by a previous phase of U-Boot).

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/tpm/tpm_tis_lpc.c
include/tpm-common.h
lib/tpm-utils.h