summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2019-08-15 17:44:45 -0700
committerCommit Bot <commit-bot@chromium.org>2019-08-23 09:53:33 +0000
commit45fc143161963b53856f8869088239cf44fea265 (patch)
tree2cdc48b4ae445c674e6e1dd15ad4033984aee3c4 /include/usb_pd_tcpm.h
parentba6067286a1659fc946dbbbe511b5c6413dc2138 (diff)
downloadchrome-ec-45fc143161963b53856f8869088239cf44fea265.tar.gz
tglrvpu_ite: Adding VCONN support
Added GPIOs pin config to support VCONN on tglrvp. Also added power switch function to enable/disable VCONN according to the cc lines. BRANCH=None BUG=b:139763031 TEST=Able to get characteristics of an E-marked cable Change-Id: Ib09307aafe68ea955f256d3f35670579072c3040 Signed-off-by: Ayushee <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1762591 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index 78bbf9ed24..18effd0661 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -20,6 +20,11 @@
/* Number of valid Transmit Types */
#define NUM_XMIT_TYPES (TCPC_TX_SOP_DEBUG_PRIME_PRIME + 1)
+enum usbpd_cc_pin {
+ USBPD_CC_PIN_1,
+ USBPD_CC_PIN_2,
+};
+
/* Detected resistor values of port partner */
enum tcpc_cc_voltage_status {
TYPEC_CC_VOLT_OPEN = 0,
@@ -411,6 +416,6 @@ int board_tcpc_post_init(int port) __attribute__((weak));
* @param enabled 1: Enable VCONN, 0: Disable VCONN
*
*/
-void board_pd_vconn_ctrl(int port, int cc_pin, int enabled);
+void board_pd_vconn_ctrl(int port, enum usbpd_cc_pin cc_pin, int enabled);
#endif /* __CROS_EC_USB_PD_TCPM_H */