Attention is currently required from: Cliff Huang, Lance Zhao, Tim Wawrzynczak.

Sergii Dmytruk has uploaded this change for review.

View Change

acpi: publish control area of memory-mapped TPMs

Change-Id: I33c2f79028e1f066c0099216c314652ea46f5f84
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
---
M src/acpi/acpi.c
1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/80523/1
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index 59d1043..a7f9a88 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -294,6 +294,10 @@
/* Must be set to 7 for CRB Support */
tpm2->control_area = CONFIG_CRB_TPM_BASE_ADDRESS + 0x40;
tpm2->start_method = 7;
+ } else if (CONFIG(MEMORY_MAPPED_TPM)) {
+ tpm2->control_area = CONFIG_TPM_TIS_BASE_ADDRESS;
+ /* Must be set to 6 for Memory-mapped I/O Interface */
+ tpm2->start_method = 6;
} else {
/* Must be set to 0 for FIFO interface support */
tpm2->control_area = 0;

To view, visit change 80523. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I33c2f79028e1f066c0099216c314652ea46f5f84
Gerrit-Change-Number: 80523
Gerrit-PatchSet: 1
Gerrit-Owner: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Gerrit-Reviewer: Cliff Huang <cliff.huang@intel.com>
Gerrit-Reviewer: Lance Zhao <lance.zhao@gmail.com>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland@gmail.com>
Gerrit-Attention: Lance Zhao <lance.zhao@gmail.com>
Gerrit-Attention: Cliff Huang <cliff.huang@intel.com>
Gerrit-Attention: Tim Wawrzynczak <inforichland@gmail.com>
Gerrit-MessageType: newchange