tpm: Support boot measurements
Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI subsystem, so remove it there and use the common functions. Signed-off-by: Eddie James <eajames@linux.ibm.com> For the API moving around from EFI -> u-boot core Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> For EFI testing Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
committed by
Ilias Apalodimas
parent
54b96e8b2b
commit
97707f12fd
@@ -431,6 +431,10 @@ config TPM
|
||||
bool "Trusted Platform Module (TPM) Support"
|
||||
depends on DM
|
||||
imply DM_RNG
|
||||
select SHA1
|
||||
select SHA256
|
||||
select SHA384
|
||||
select SHA512
|
||||
help
|
||||
This enables support for TPMs which can be used to provide security
|
||||
features for your board. The TPM can be connected via LPC or I2C
|
||||
|
||||
Reference in New Issue
Block a user