diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2022-09-06 09:15:01 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 16:32:15 +0000 |
commit | 12d1cd4566508e2108bc0bd7fda08796327fba68 (patch) | |
tree | 1659ce0c90ef45bc420bc0f6fe7b7dea3b8c6390 /test | |
parent | 0ddf22992c6440a4c3127c9de59716b3c7c7f31d (diff) | |
download | chrome-ec-12d1cd4566508e2108bc0bd7fda08796327fba68.tar.gz |
gsctool: support CCD info variations
Cr50 and Ti50 generate different CCD Info reports, as the set of CCD
capabilities is different on these two devices.
To help addressing this problem a recent change was introduced in the
Ti50 code to generate a versioned CCD Info report. This will allow the
gsctool utility to address future modification of the CCD info report
structure. The 'legacy' Cr50 report still does not have a header, and
will be considered by gsctool 'version 0'. The Ti50 CCD Info report
header version is set to 1.
This patch consolidates processing of both report versions by gsctool.
The set of CCD capabilities, their names and default states have been
copied from Ti50 codebase and modified for code style manually, which
is extremely error prone, this process will have to be automated,
unfortunately there is no direct code sharing between the trees.
BUG=b:244750201
TEST=on a Cr50 device for CCD in 'opened' and 'locked' states:
- verified that 'gsctool -a -I' outputs for the old and new versions
of gsctool are identical.
On a Ti50 device, for CCD in 'opened' and 'locked' states:
- verified that output of the new version 'gsctool -a -I' matches
output of `ccd` ran on Ti50 console.
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Change-Id: I47592e7b74c76cf130199161baf0ae7c88056b2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3877672
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions