summaryrefslogtreecommitdiff
path: root/board/it83xx_evb/board.c
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 /board/it83xx_evb/board.c
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 'board/it83xx_evb/board.c')
-rw-r--r--board/it83xx_evb/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/it83xx_evb/board.c b/board/it83xx_evb/board.c
index 32c8fa690d..1ac7637ae5 100644
--- a/board/it83xx_evb/board.c
+++ b/board/it83xx_evb/board.c
@@ -43,11 +43,11 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = {
{-1, -1, &it83xx_tcpm_drv},
};
-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)
{
int cc1_enabled = 0, cc2_enabled = 0;
- if (cc_pin)
+ if (cc_pin != USBPD_CC_PIN_1)
cc2_enabled = enabled;
else
cc1_enabled = enabled;