Add TPM support to coreboot

and initialize the TPM on S3 resume

This patch integrates the TPM driver and runs TPM resume upon an ACPI S3
resume without including any other parts of vboot.

We could link against vboot_fw.a but it is compiled with u-boot's CFLAGS
(that are incompatible with coreboot's) and it does a lot more than we
want it to do.

Change-Id: I000d4322ef313e931e23c56defaa17e3a4d7f8cf
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/731
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Stefan Reinauer
2011-10-11 14:46:25 -07:00
committed by Stefan Reinauer
parent b89a761a63
commit 3008bbadcb
6 changed files with 797 additions and 0 deletions

View File

@ -32,6 +32,9 @@
#include <device/pci.h>
#include <cbmem.h>
#include <cpu/x86/lapic_def.h>
#if CONFIG_CHROMEOS
#include <vendorcode/google/chromeos/chromeos.h>
#endif
u8 acpi_checksum(u8 *table, u32 length)
{
@ -524,6 +527,11 @@ void *acpi_find_wakeup_vector(void)
if (!acpi_is_wakeup())
return NULL;
#if CONFIG_CHROMEOS
printk(BIOS_DEBUG, "Verified boot TPM initialization.\n");
init_vboot();
#endif
printk(BIOS_DEBUG, "Trying to find the wakeup vector...\n");
/* Find RSDP. */