vboot: Add support for recovery hash space in TPM
commitb038f41420c47d91cc9919930242f9d38696a0a0
authorFurquan Shaikh <furquan@chromium.org>
Tue, 8 Nov 2016 07:47:11 +0000 (7 23:47 -0800)
committerFurquan Shaikh <furquan@google.com>
Thu, 10 Nov 2016 17:10:42 +0000 (10 18:10 +0100)
tree125c816757ae12b2a91167cb5cac3db2ee92f9b0
parent1232666b6f1ff9be8dd2ef458aba7c202d8ba069
vboot: Add support for recovery hash space in TPM

1. Add a new index for recovery hash space in TPM - 0x100b
2. Add helper functions to read/write/lock recovery hash space in TPM
3. Add Kconfig option that can be selected by mainboards that want to
define this space.
4. Lock this new space while jumping from RO to RW.

BUG=chrome-os-partner:59355
BRANCH=None
TEST=Verified use of recovery hash space on reef.

Change-Id: I1cacd54f0a896d0f2af32d4b7c9ae581a918f9bb
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17273
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/include/antirollback.h
src/vboot/Kconfig
src/vboot/Makefile.inc
src/vboot/secdata_mock.c
src/vboot/secdata_tpm.c
src/vboot/vboot_logic.c