[coreboot-gerrit] Patch set updated for coreboot: 02c3aa8 pc80/tpm: allow for cache-as-ram migration

Aaron Durbin (adurbin@google.com) gerrit at coreboot.org
Wed May 15 00:01:24 CEST 2013


Aaron Durbin (adurbin at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3233

-gerrit

commit 02c3aa82589329ca0eb8f468eca478106fff0430
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Fri May 10 00:40:56 2013 -0500

    pc80/tpm: allow for cache-as-ram migration
    
    As the TPM driver can be accessed in romstage after
    cache-as-ram is torn down use the cache-as-ram migration
    API to dynamically determine the global variable address.
    
    Change-Id: I149d7c130bc3677ed52282095670c07a76c34439
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/drivers/pc80/tpm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/drivers/pc80/tpm.c b/src/drivers/pc80/tpm.c
index c7b5081..9a4fc09 100644
--- a/src/drivers/pc80/tpm.c
+++ b/src/drivers/pc80/tpm.c
@@ -278,7 +278,7 @@ static u32 tis_probe(void)
 	u16 vid, did;
 	int i;
 
-	if (vendor_dev_id)
+	if (car_get_var(vendor_dev_id))
 		return 0;  /* Already probed. */
 
 	didvid = tpm_read(0, TIS_REG_DID_VID);
@@ -287,7 +287,7 @@ static u32 tis_probe(void)
 		return TPM_DRIVER_ERR;
 	}
 
-	vendor_dev_id = didvid;
+	car_set_var(vendor_dev_id, didvid);
 
 	vid = didvid & 0xffff;
 	did = (didvid >> 16) & 0xffff;



More information about the coreboot-gerrit mailing list