coreboot/src/include
Vadim Bendebury 4c0851cc37 tpm2: implement locking firmware rollback counter
TPM1.2 is using the somewhat misnamed tlcl_set_global_lock() command
function to lock the hardware rollback counter. For TPM2 let's
implement and use the TPM2 command to lock an NV Ram location
(TPM2_NV_WriteLock).

BRANCH=none
BUG=chrome-os-partner:50645
TEST=verified that TPM2_NV_WriteLock command is invoked before RO
     firmware starts RW, and succeeds.

Change-Id: I52aa8db95b908488ec4cf0843afeb6310dc7f38b
Signed-off-by: Martin Roth <martinroth@chromium.org>
Original-Commit-Id: 2f859335df
Original-Change-Id: I62f22b9991522d4309cccc44180a5ebd4dca488d
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/358097
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Reviewed-on: https://review.coreboot.org/15638
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2016-07-14 00:00:14 +02:00
..
boot lib: add common write_tables() implementation 2016-04-21 20:49:05 +02:00
console soc/intel/common/acpi: Add _PTS, _WAK methods 2016-06-22 17:26:15 +02:00
cpu cpu/cpu.h: Change guard around function declarations 2016-06-22 11:40:09 +02:00
device SPD: fix DDR3 SDRAM memory module types 2016-06-24 18:15:09 +02:00
pc80 kbuild: Allow drivers to fit src/drivers/[X]/[Y]/ scheme 2016-04-19 18:34:18 +02:00
smp
superio
sys commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
tpm_lite tpm2: implement locking firmware rollback counter 2016-07-14 00:00:14 +02:00
antirollback.h vboot2: tpm2 factory initialization. 2016-07-12 00:27:27 +02:00
assert.h
b64_decode.h
base3.h
bcd.h
boardid.h
boot_device.h
bootblock_common.h bootblock: Declare common bootblock_pre_c_entry routine 2016-06-12 14:52:17 +02:00
bootmem.h lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.h
bootstate.h lib: Add Kconfig to toggle boot state debugging 2016-02-18 00:01:14 +01:00
cbfs.h cbfs: Add LZ4 in-place decompression support for pre-RAM stages 2016-02-22 21:38:37 +01:00
cbmem.h intel/model_206ax: Move platform specific defines 2016-06-17 00:22:10 +02:00
delay.h
edid.h edid: Make framebuffer row alignment configurable 2016-04-07 20:46:38 +02:00
elog.h soc/intel/common: Add common smihandler code 2016-05-25 19:09:00 +02:00
endian.h
fallback.h
fmap.h
gic.h
gpio.h lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 20:44:36 +02:00
halt.h
imd.h
inttypes.h
ip_checksum.h
kconfig.h
lib.h lib: remove ulzma() 2016-07-01 23:55:16 +02:00
main_decl.h arches: lib: add main_decl.h for main() declaration 2016-02-11 23:29:08 +01:00
memlayout.h arch/x86: introduce postcar stage/phase 2016-03-23 14:24:30 +01:00
memory_info.h
memrange.h lib/memrange: add function to initialize range_entry 2016-03-09 16:46:16 +01:00
nhlt.h lib/nhlt: drop nhlt_soc_add_endpoint() 2016-06-29 23:15:37 +02:00
option.h
program_loading.h intel post-car: Consolidate choose_top_of_stack() 2016-07-10 11:16:07 +02:00
reg_script.h lib/reg_script: Add display support 2016-05-04 19:21:40 +02:00
reset.h soc/intel/common: Add prototype for global_reset() reset 2016-06-24 20:28:15 +02:00
rmodule.h lib/rmodule: export parameters in struct rmod_stage_load 2016-03-22 13:54:52 +01:00
romstage_handoff.h
rtc.h lib: Add real-time-clock functions 2016-06-24 20:22:05 +02:00
rules.h arch/x86: introduce postcar stage/phase 2016-03-23 14:24:30 +01:00
sdram_mode.h
smbios.h SMBIOS: Implement SKU field 2016-06-02 06:24:24 +02:00
spd.h SPD: Add CAS latency 2 2016-07-12 15:17:31 +02:00
spd_cache.h
spd_ddr2.h SPD: fix and add DDR2 SDRAM memory module types 2016-06-24 18:09:18 +02:00
spi-generic.h
spi_flash.h
stage_cache.h
stddef.h stddef.h: fix zeroptr's definition 2016-04-15 16:18:57 +02:00
stdlib.h
string.h
swab.h
symbols.h memlayout: Add symbols for stage bounds 2016-02-22 21:38:07 +01:00
thread.h
timer.h
timestamp.h
tpm.h
trace.h
types.h
vbe.h
version.h
watchdog.h
wrdd.h wrdd: Export WRDD info in the header 2016-06-02 05:34:17 +02:00