[coreboot-gerrit] Change in coreboot[master]: agesa: add init_tpm() to romstage, conditionally

Kevin Cody-Little (Code Review) gerrit at coreboot.org
Wed May 9 20:46:57 CEST 2018


Kevin Cody-Little has uploaded this change for review. ( https://review.coreboot.org/26206


Change subject: agesa: add init_tpm() to romstage, conditionally
......................................................................

agesa: add init_tpm() to romstage, conditionally

It's understood that where this call belongs is currently under
re-architecting, and this patch will not be accepted. This change
or its replacement is required for the following asus/am1i-a board
fixes to enable the TPM, and is provided as a conceptual placeholder
until the proper solution is determined.

Change-Id: Ide946fa45c3b890fdf3db8fb1a410568c01cc815
Signed-off-by: Kevin Cody-Little <kcodyjr at gmail.com>
---
M src/drivers/amd/agesa/romstage.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/26206/1

diff --git a/src/drivers/amd/agesa/romstage.c b/src/drivers/amd/agesa/romstage.c
index 197a007..4c319e6 100644
--- a/src/drivers/amd/agesa/romstage.c
+++ b/src/drivers/amd/agesa/romstage.c
@@ -29,6 +29,10 @@
 #include <northbridge/amd/agesa/agesa_helper.h>
 #include <northbridge/amd/agesa/state_machine.h>
 
+#if IS_ENABLED(CONFIG_LPC_TPM)
+#include <security/tpm/tis.h>
+#endif
+
 #if IS_ENABLED(CONFIG_LATE_CBMEM_INIT)
 #error "Only EARLY_CBMEM_INIT is supported."
 #endif
@@ -112,6 +116,10 @@
 
 	romstage_handoff_init(cb->s3resume);
 
+#if IS_ENABLED(CONFIG_LPC_TPM)
+	init_tpm(cb->s3resume);
+#endif
+
 	postcar_frame_init(&pcf, HIGH_ROMSTAGE_STACK_SIZE);
 	recover_postcar_frame(&pcf, cb->s3resume);
 

-- 
To view, visit https://review.coreboot.org/26206
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ide946fa45c3b890fdf3db8fb1a410568c01cc815
Gerrit-Change-Number: 26206
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Cody-Little <kcodyjr at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180509/a2aefa41/attachment.html>


More information about the coreboot-gerrit mailing list