tcpm/it83xx: use PD_VCONN_SWAP_DELAY delay time for Vconn drop

The Vconn doesn't drop to 0v before we disable 5v tolerant on cc,
so I use the already existent baseboard configuration
PD_VCONN_SWAP_DELAY to increase delay time for Vconn drop.

BUG=none
BRANCH=none
TEST=on drawcia, Vconn drop to 0v before we disable 5v tolerant on cc.

Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Change-Id: I526d7f36cba6082e7e644ea0923cc4bae365da16
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2584559
Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
Ruibin Chang 2020-12-11 17:03:06 +08:00 committed by Commit Bot
parent 6dc2111008
commit e0db691a8d
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,9 @@
#endif
/* Wait time for vconn power switch to turn off. */
#ifndef PD_IT83XX_VCONN_TURN_OFF_DELAY_US
#ifdef PD_VCONN_SWAP_DELAY
#define PD_IT83XX_VCONN_TURN_OFF_DELAY_US PD_VCONN_SWAP_DELAY
#else
#define PD_IT83XX_VCONN_TURN_OFF_DELAY_US 500
#endif