summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-02-10 15:54:08 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-14 17:28:16 -0800
commit4d6eb1bc01ddbc87bbd53a317cfddd78f9cce1b2 (patch)
tree99e81ea0944118c6549a73551111fcf6dcae2b44 /include/usb_pd_tcpm.h
parentc9ea4bddbc45ef9b0104d5afc8a1d2a811cad372 (diff)
downloadchrome-ec-4d6eb1bc01ddbc87bbd53a317cfddd78f9cce1b2.tar.gz
pdchipinfo: Add option to force renewal
This change adds an option to pdchipinfo command to force ec to get the version from the chip instead of the cache (if it's available). This option will be used after firmware update, which makes the cache value stale. BUG=chrome-os-partner:62383 BRANCH=none TEST=Run ectool as follows: localhost ~ # /tmp/ectool pdchipinfo 0 on vendor_id: 0xaaaa product_id: 0x3429 device_id: 0xad fw_version: 0x15 localhost ~ # /tmp/ectool pdchipinfo 1 on EC result 2 (ERROR) Change-Id: Icefe96d7fc1208b991a4caa13aaf4f04052edba7 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/441271 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index d95d994184..c8526239d1 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -202,11 +202,13 @@ struct tcpm_drv {
* Get firmware version.
*
* @param port Type-C port number
+ * @param renew Force renewal
* @param info Pointer to pointer to PD chip info
*
* @return EC_SUCCESS or error
*/
- int (*get_chip_info)(int port, struct ec_response_pd_chip_info **info);
+ int (*get_chip_info)(int port, int renew,
+ struct ec_response_pd_chip_info **info);
};
enum tcpc_alert_polarity {