summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2020-05-20 14:21:21 +0800
committerCommit Bot <commit-bot@chromium.org>2020-07-14 09:29:01 +0000
commitb82df6c02bfdd2c8fcc4b2b6db3cdf61d9fbe027 (patch)
tree6ab9626d374ab4a1e2d85638abc9fcb4933ca80f
parent5c6eac1194777f8530d030e586e94c26c545d6df (diff)
downloadchrome-ec-b82df6c02bfdd2c8fcc4b2b6db3cdf61d9fbe027.tar.gz
asurada: fix PPC vconn control
BUG=b:152562604 TEST=ensure vconn is turned on BRANCH=master Change-Id: Iea3392c40551606f840f3d40acfbdd92e2c4b135 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2208336 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/asurada/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/asurada/board.c b/board/asurada/board.c
index 0aab621486..c6d38f492f 100644
--- a/board/asurada/board.c
+++ b/board/asurada/board.c
@@ -467,6 +467,13 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
void board_pd_vconn_ctrl(int port, enum usbpd_cc_pin cc_pin, int enabled)
{
+ /*
+ * We ignore the cc_pin because the polarity should already be set
+ * correctly in the PPC driver via the pd state machine.
+ */
+ if (ppc_set_vconn(port, enabled) != EC_SUCCESS)
+ cprints(CC_USBPD, "C%d: Failed %sabling vconn",
+ port, enabled ? "en" : "dis");
}
/* Called on AP S3 -> S0 transition */