diff options
author | Jett Rink <jettrink@chromium.org> | 2018-09-24 10:48:33 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-28 13:34:32 -0700 |
commit | c6c0d021d16eb686254bde767264f7f3151df7f2 (patch) | |
tree | 5a38b1178189ffb0ad3ba0754a0b775399c928a7 /include | |
parent | 64c792829c2fd6bda4985e2add424cce41c5cfd9 (diff) | |
download | chrome-ec-c6c0d021d16eb686254bde767264f7f3151df7f2.tar.gz |
pdchipinfo: add min firmware version to pdchipinfo
Add a new field to the pdchipinfo host command that exposes the minimum
required firmware version that we know about. This will allow factory
tests or automated test to compare this version to the current version
and fail.
BRANCH=none
BUG=b:116068318
TEST=with corresponding ectool change, min value is reported correctly
Change-Id: Idf338795c3fd6f9f95e51471d0f6a7a422901d52
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1240457
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 14 | ||||
-rw-r--r-- | include/usb_pd_tcpm.h | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index e6d02c8ee9..8ce663898c 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4721,6 +4721,20 @@ struct __ec_align2 ec_response_pd_chip_info { }; }; +struct __ec_align2 ec_response_pd_chip_info_v1 { + uint16_t vendor_id; + uint16_t product_id; + uint16_t device_id; + union { + uint8_t fw_version_string[8]; + uint64_t fw_version_number; + }; + union { + uint8_t min_req_fw_version_string[8]; + uint64_t min_req_fw_version_number; + }; +}; + /* Run RW signature verification and get status */ #define EC_CMD_RWSIG_CHECK_STATUS 0x011C diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 2d12b31ceb..00fe2ab958 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -218,7 +218,7 @@ struct tcpm_drv { * @return EC_SUCCESS or error */ int (*get_chip_info)(int port, int renew, - struct ec_response_pd_chip_info **info); + struct ec_response_pd_chip_info_v1 **info); #ifdef CONFIG_USBC_PPC /** |