commit | 15d53c3aca7b3e88a541779d696d9cfb65f58f68 | [log] [tgz] |
---|---|---|
author | Vadim Bendebury <vbendeb@chromium.org> | Tue Oct 25 14:14:38 2016 -0700 |
committer | Vadim Bendebury <vbendeb@chromium.org> | Thu Oct 27 23:29:13 2016 +0000 |
tree | 92d381bf9bf19ed146820754425ee21530fbe754 | |
parent | c5dfadcd85e7de5630f34504c021524a36baca8f [diff] |
Get firmware version values from the platform For embedded targets, instead of hardcoding the firmware version values retrieve them using the recently added platform API. Do not store the version in the NVRAM - always get it from the platform, as firmware updates do not cause changes to the firmware version storing NVRAM locations set during manufacturing. The 8 bytes taken by the two firmware versions are still kept to avoid changing NVRAM persistent storage layout. CQ-DEPEND=CL:403115 BUG=chrome-os-partner:58177 TEST=verified that the expected values are returned for TPM firmware version: localhost ~ # tpm_version TPM 2.0 Version Info: Chip Version: 2.0.0.0 .... Firmware Version: 09004f2a08d73d07 (the first half is the zero prepended 7 characters of the ec SHA1, and the second half is the zero prepended 7 characters of the tpm2 SHA1). Change-Id: Id3b3ca15560d9ecb7af0d78abbd46e133707ee53 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/403213 Reviewed-by: Andrey Pronin <apronin@chromium.org>