{"push_id":1175064557,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"4ddf54d7b0d9a36908f0c361bb003b02fc9ed1c9","before":"8c65294108db43a3717c5afa3017058c826f27b5","commits":[{"sha":"4ddf54d7b0d9a36908f0c361bb003b02fc9ed1c9","author":{"name":"Scott","email":"f2a8bf9cf2192c0f4aebe371ff7487f3a292a43b@chromium.org"},"message":"Cr50: Added TPM register write/read to extract FW version\n\nCreated a new TPM register define at the beginning of the\nvendor defined configuration register space 0xF90 - 0xFFF.\nNote that this same space is defined for each locality.\n\nIn order to retrieve the FW version string, the TPM register\nat offset 0xF90 needs to be written. This will initialize\na the pointer index to 0. The same register is then\nread by the AP and each read will return up to 4 bytes of the\nFW version string. Once Cr50 detects the string termination\ncharacter, it stops incrementing the index so that 0s continue\nto be returned for each subsequent read.\n\nIn addition there is a max value of reads for the case when the\nversion string is corrupt and doesn't have a '\\0' character.\n\nBRANCH=none\nBUG=chrome-os-partner:54723\nTEST=Manual\nAdded a routine in /coreboot/src/drivers/spi/tpm.c tpm_init()\nthat does the write/read sequence described above. This test\nroutine produced the folloiwng AP console output:\nReading TPM EC Version!!\nscollyer@ code goes here\nRead 1: cr50 0x30\nRead 2: _v1. 0x2e\nRead 3: 1.47 0x37\nRead 4: 81-1 0x31\nRead 5: 3619 0x39\nRead 6: 95-d 0x64\nRead 7: irty 0x79\nRead 7:  0x0\nCr50 FW Version: cr50_v1.1.4781-1361995-dirty\nRead Count = 29\nInitialized TPM device CR50 revision 0\n\nChange-Id: I5d68a037f7a508e3109c35e841dbcb3a893ce22f\nSigned-off-by: Scott <scollyer@chromium.org>\nReviewed-on: https://chromium-review.googlesource.com/355701\nCommit-Ready: Vadim Bendebury <vbendeb@chromium.org>\nTested-by: Scott Collyer <scollyer@chromium.org>\nReviewed-by: Vadim Bendebury <vbendeb@chromium.org>","distinct":true,"url":"https://api.github.com/repos/coreboot/chrome-ec/commits/4ddf54d7b0d9a36908f0c361bb003b02fc9ed1c9"}]}
{"actor":{"display_login":"pgeorgi"}}