summaryrefslogtreecommitdiff
path: root/driver/tcpm/rt1718s.c
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2021-06-22 14:44:29 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-23 02:01:56 +0000
commit26026cc84a42eae453c59d9b4432a665e0c73f87 (patch)
tree1694fb9a4ed788cca4660461986049b0095dc3fc /driver/tcpm/rt1718s.c
parentea843b0f732970b1f3666be39edd16396f509b4d (diff)
downloadchrome-ec-26026cc84a42eae453c59d9b4432a665e0c73f87.tar.gz
rt1718s: set OVP to 23V
Set VBUS_VOL_SEL to 20V (4'b1111). BUG=b:191609106 BRANCH=none TEST=boot up system by plugging in adapter to typc port 1 with battery on Cherry dut. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: If3c3a82b2e0dbcecb1adaa62cb5d8ade4bae1942 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977866 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'driver/tcpm/rt1718s.c')
-rw-r--r--driver/tcpm/rt1718s.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/tcpm/rt1718s.c b/driver/tcpm/rt1718s.c
index 0275d9cc96..5c35ed03e4 100644
--- a/driver/tcpm/rt1718s.c
+++ b/driver/tcpm/rt1718s.c
@@ -174,6 +174,11 @@ static int rt1718s_init(int port)
RETURN_ERROR(rt1718s_bc12_init(port));
+ /* Set VBUS_VOL_SEL to 20V */
+ RETURN_ERROR(rt1718s_update_bits8(port, RT1718S_RT2_VBUS_VOL_CTRL,
+ RT1718S_RT2_VBUS_VOL_CTRL_VOL_SEL,
+ RT1718S_VBUS_VOL_TO_REG(20)));
+
/* Disable FOD function */
RETURN_ERROR(rt1718s_update_bits8(port, 0xCF, 0x40, 0x00));