Vadim Bendebury f2c33b73b2 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>
2016-10-26 19:59:15 -07:00
2016-10-14 16:05:49 -07:00
2016-10-26 14:22:54 -07:00
2016-09-09 19:20:12 -07:00
2012-05-11 09:11:52 -07:00
2016-10-14 16:05:49 -07:00
2016-10-14 16:05:49 -07:00
2014-04-02 19:58:53 +00:00
2015-12-08 20:05:05 -08:00

For an overview of the Embedded Controller firmware, refer to

http://www.chromium.org/chromium-os/2014-firmware-summit

For instructions on building from source, refer to

http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
No description provided
Readme 1.4 GiB
Languages
C 64.7%
Lasso 20.7%
ASL 3.6%
JavaScript 3.2%
C# 2.9%
Other 4.6%