diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2016-10-25 14:14:19 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-26 19:59:15 -0700 |
commit | f2c33b73b265c2229ffd6b94e86e5f8956ffab6f (patch) | |
tree | 3a1877aa1f4a4fe420b3ca51ff7c7068291b26a8 /builtin | |
parent | a5393caeb591dce6ad14fe3580ce182f644a51eb (diff) | |
download | chrome-ec-f2c33b73b265c2229ffd6b94e86e5f8956ffab6f.tar.gz |
cr50: provide platform API for fw version capability
The tpm is supposed to report its firmware version when
TPM_PT_FIRMWARE_VERSION_1 and TPM_PT_FIRMWARE_VERSION_2 capabilities
are requested.
This patch retrieves form the build info string SHA1s of the ec and
tpm2 repositories and returns them to the caller.
BRANCH=none
BUG=chrome-os-partner:58177
TEST=with the appropriate tpm2 source tree changes the ec and tpm
SHA1s are now reported:
localhost ~ # tpm_version
TPM 2.0 Version Info:
Chip Version: 2.0.0.0
....
Firmware Version: 0a92ec7c01b9c924
(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: I01e4fffdafbbdc4668342ea511ca9c4a555e20a9
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403115
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions