diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-06-15 12:12:57 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-17 10:03:52 +0000 |
commit | 859f4d50adf6f5732970239fb72fd521eb693c16 (patch) | |
tree | 625c4317c7ee5d74a049ec1ab463d03575388f49 /include | |
parent | bdf1dca078adee4717015c5583d77582b85692c3 (diff) | |
download | chrome-ec-859f4d50adf6f5732970239fb72fd521eb693c16.tar.gz |
tcpc: use vendor ID register to signal TCPC readiness
Add TCPC support for USB VID register and use that register
from the TCPM side to know when the TCPC is ready. TCPC is
ready when phy layer is initialized and CC ADC channels have
been read.
BUG=chrome-os-partner:40920, chrome-os-partner:41258
BRANCH=none
TEST=load and run glados. verify that glados EC doesn't
start sending TCPC commands until it can successfully
read TCPC VID. verify that we can boot with zinger and no
battery.
Change-Id: Iafbab529a16ff904cdb817901baac5e72e3d7220
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/277710
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd_tcpm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 951de5572f..97624fd34c 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -161,6 +161,15 @@ int tcpm_alert_status(int port, int alert_reg, uint8_t *alert); /** + * Initialize TCPM driver and wait for TCPC readiness. + * + * @param port Type-C port number + * + * @return EC_SUCCESS or error + */ +int tcpm_init(int port); + +/** * Read the CC line status. * * @param port Type-C port number |