Christian Walter has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34333 )
Change subject: src/arch/x86/acpi.c: Change TPM ACPI Table to support CRB ......................................................................
src/arch/x86/acpi.c: Change TPM ACPI Table to support CRB
Change the TPM ACPI Table to support CRB Interface when selected.
Change-Id: Ide3af348fd4676f2d04e1d0b9ad83f9124e09dcc Signed-off-by: Christian Walter christian.walter@9elements.com --- M src/arch/x86/acpi.c 1 file changed, 8 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/34333/1
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c index 8ab993e..18c517a 100644 --- a/src/arch/x86/acpi.c +++ b/src/arch/x86/acpi.c @@ -386,10 +386,14 @@
/* Hard to detect for coreboot. Just set it to 0 */ tpm2->platform_class = 0; - /* Must be set to 0 for TIS interface support */ - tpm2->control_area = 0; - /* coreboot only supports the TIS interface driver. */ - tpm2->start_method = 6; + if (CONFIG(CRB_TPM)) { + tpm2->control_area = 0xfed40000; + tpm2->start_method = 7; + } else { + /* Must be set to 0 for TIS interface support */ + tpm2->control_area = 0; + tpm2->start_method = 6; + } memset(tpm2->msp, 0, sizeof(tpm2->msp));
/* Fill the log area size and start address fields. */