diff options
author | Ruibin Chang <ruibin.chang@ite.com.tw> | 2020-03-16 14:45:07 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-18 05:24:57 +0000 |
commit | f36f4247041b3781d27de40c2017b3d6b577cc6a (patch) | |
tree | fde3070611b32f4b1c0368a4adc3c83d352fbcdb /board/coffeecake | |
parent | e2521fe6b22c6b267c453b9a02b036f51baaf95f (diff) | |
download | chrome-ec-f36f4247041b3781d27de40c2017b3d6b577cc6a.tar.gz |
driver/tcpm/it83xx: set cc polarity correctly
TCPM select POLARITY_CC1_DTS or POLARITY_CC2_DTS,
it83xx driver always set CC2 polarity to register.
We should set CC1 polarity to register for POLARITY_CC1_DTS,
So I add a if condition to set cc polarity correctly.
BUG=none
BRANCH=none
TEST=1.on board ampton with driver it83xx, plug-in debug
accessory SNK, check cc polarity register setting
same as enum case by console.
2.on board it8xxx2_pdevb with driver it8xxx2, plug-in debug
accessory SNK, check cc polarity register setting
same as enum case by console.
Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Change-Id: Ic42a1bf290e695040fd7f53e7f3b38ec829dd614
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2100560
Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Diffstat (limited to 'board/coffeecake')
0 files changed, 0 insertions, 0 deletions