diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-08-01 14:50:58 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-02 14:29:36 -0700 |
commit | 3d7fe12257d4ae05b11ab247a798731daa395996 (patch) | |
tree | 923a6ed0b92737cd37d2a35afb3be5e8d167644b /test | |
parent | 25f19f5bbd1f557d73c64079de9cd242b8e1f6ed (diff) | |
download | chrome-ec-3d7fe12257d4ae05b11ab247a798731daa395996.tar.gz |
tpm: TPM_FW_VER returns chip ID and board revision
The chip revision and board version show up on the second line of
the returned string, immediately before the build info.
BRANCH=none
BUG=chrome-os-partner:55558
TEST=Queried version string using tpm_test
make -C test/tpm_test && sudo ./test/tpm_test/tpmtest.py
Starting MPSSE at 800 kHz
Connected to device vid:did:rid of 1ae0:0028:00
RO_A:* 0.0.2/d0c9abe3 RO_B: 0.0.2/13eda43f RW_A: cr50_ [...]
B2:0 cr50_v1.1.5013-ab0e228+ [...]
^^^^
Change-Id: Iaa1efe5dca441aca24f281f76c1f218e24c844be
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/365421
Reviewed-by: Vadim Bendebury <vbendeb@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/tpm_test/ftdi_spi_tpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tpm_test/ftdi_spi_tpm.c b/test/tpm_test/ftdi_spi_tpm.c index 43ca83e3aa..4fc281aa24 100644 --- a/test/tpm_test/ftdi_spi_tpm.c +++ b/test/tpm_test/ftdi_spi_tpm.c @@ -228,7 +228,7 @@ static void GetVersion(void) * This is likely result in one extra printk() * invocation with an empty string, not a big deal. */ - } while (vstr[0] && (chunk_count++ < (200 / sizeof(chunk)))); + } while (vstr[0] && (chunk_count++ < (400 / sizeof(chunk)))); printf("\n"); } |