coreboot-kgpe-d16/src/include
Aaron Durbin f56c7787ba google/chromeos: disable platform hierarchy on resume for TPM2
On Chrome OS devices that use TPM2 parts the platform hierarchy
is disabled by the boot loader, depthcharge. Since the bootloader
isn't involved in resuming a suspended machine there's no equivalent
action in coreboot to disable the platform hierarchy. Therefore, to
ensure consistent state in resume the platform hierarchy in the TPM2
needs to be disabled as well. For systems that resume using the
firmware the platform hierarchy is disabled when utilizing
TPM2 devices.

BUG=chrome-os-partner:61097
BRANCH=reef
TEST=Suspend and resume. Confirmed 'stop trunksd; tpmc getvf; start
trunksd' shows that phEnable is 0.

Change-Id: I060252f338c8fd68389273224ee58caa99881de8
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/18096
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
2017-01-12 18:28:12 +01:00
..
boot lib: add common write_tables() implementation 2016-04-21 20:49:05 +02:00
console drivers/intel/fsp2_0: track end of firmware notifications 2016-11-12 04:07:06 +01:00
cpu x86 SMM: Fix use with RELOCATABLE_RAMSTAGE 2016-12-11 08:56:40 +01:00
device src/device: Get device structure by path type 2016-12-07 22:55:20 +01:00
pc80 arch/x86: fix cmos post logging in non romcc bootblock 2017-01-06 17:30:58 +01:00
smp src/include: Improve code formatting 2016-09-05 12:28:32 +02:00
superio tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sys commonlib: Prepare code to be included in cbfstool builds. 2016-01-06 01:11:32 +01:00
tpm_lite google/chromeos: disable platform hierarchy on resume for TPM2 2017-01-12 18:28:12 +01:00
adainit.h Add option to use Ada code in ramstage 2016-11-06 17:28:13 +01:00
antirollback.h src/vboot: mark factory_initialze_tpm() as static 2016-11-11 18:53:33 +01:00
assert.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
b64_decode.h
base3.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bcd.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boardid.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boot_device.h lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
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 vboot: Add new function for logging recovery mode switches 2016-11-14 20:13:26 +01:00
bootstate.h bootstate: add arch specific hook at coreboot exit 2016-12-08 21:38:48 +01:00
cbfs.h cbfs: Add API to locate a file from specific region 2016-12-10 03:16:55 +01:00
cbmem.h lib/cbmem: allow anyone to use cbmem_possibly_online() 2016-12-15 23:11:13 +01:00
delay.h
edid.h edid: Fix a function signature 2016-09-08 23:19:06 +02:00
elog.h soc/intel/common: Add save/restore for variable MRC data 2016-11-30 16:46:16 +01:00
endian.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
fallback.h pc80: Move set_boot_successful() 2016-12-13 19:15:22 +01:00
fmap.h lib/fmap: provide RW region device support 2016-08-19 18:17:04 +02:00
gic.h src/include: Capitalize CPU, RAM and ROM 2016-07-31 18:30:16 +02:00
gpio.h lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 20:44:36 +02:00
halt.h lib: add poweroff() declaration 2016-07-15 08:35:15 +02:00
imd.h cbmem: add coreboot table records for each cbmem entry 2015-11-03 00:19:46 +01:00
inttypes.h
ip_checksum.h lib/compute_ip_checksum: mark data buffer as const 2016-12-08 16:09:59 +01:00
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 memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-23 21:33:29 +02: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: add support for setting the oem_revision 2016-12-01 08:17:42 +01:00
option.h
program_loading.h ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-09 20:52:07 +01:00
reg_script.h lib/reg_script: Add display support 2016-05-04 19:21:40 +02:00
region_file.h lib: add region file support 2016-12-08 16:10:28 +01:00
reset.h src/include: Improve code formatting 2016-09-05 12:28:32 +02:00
rmodule.h src/include: Capitalize CPU, RAM and ROM 2016-07-31 18:30:16 +02:00
romstage_handoff.h lib: put romstage_handoff implementation in own compilation unit 2016-12-01 08:16:47 +01:00
rtc.h lib: Add real-time-clock functions 2016-06-24 20:22:05 +02:00
rules.h arch/arm: Add armv7-r configuration 2016-09-12 19:58:43 +02:00
sar.h chromeos: Implement locating and decoding wifi sar data from VPD 2017-01-09 18:16:10 +01:00
sdram_mode.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smbios.h smbios.h: add missing SKU field to type3 table 2016-12-15 23:43:07 +01:00
spd.h SPD: Add CAS latency 2 2016-07-12 15:17:31 +02:00
spd_bin.h lib: Add library to handle SPD data in CBFS or DIMM 2016-11-30 17:02:19 +01:00
spd_cache.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spd_ddr2.h src/include: Add space around operators 2016-09-20 17:38:56 +02:00
spi-generic.h spi: Get rid of SPI_ATOMIC_SEQUENCING 2016-12-23 04:54:55 +01:00
spi_flash.h drivers/spi: provide a mechanism to obtain the SPI flash boot device 2016-12-08 16:11:01 +01:00
stage_cache.h arch/x86: cache postcar in stage cache 2016-12-01 08:17:19 +01:00
stddef.h stddef.h: fix zeroptr's definition 2016-04-15 16:18:57 +02:00
stdlib.h coreboot: introduce commonlib 2015-09-22 21:21:34 +00:00
string.h string.h: only guard snprintf() with __ROMCC__ 2016-11-09 16:51:52 +01:00
swab.h
symbols.h RISCV: Clean up the common architectural code 2016-10-24 20:25:04 +02:00
thread.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timer.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timestamp.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tpm.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
trace.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
types.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vbe.h src/include: Add space around operators 2016-09-20 17:38:56 +02:00
version.h
watchdog.h src/include: Improve code formatting 2016-09-05 12:28:32 +02:00
wrdd.h Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00