diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2021-03-05 14:01:47 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-01 05:49:03 +0000 |
commit | bfd3e5a9bf19e2066ad58f36f7dd9248cdf0b930 (patch) | |
tree | 512d486df10bfec8672c09d46b3b09547271945b /include | |
parent | a8bedfe1474c3042ee8d7cde3c38afd20d4c1dc6 (diff) | |
download | chrome-ec-bfd3e5a9bf19e2066ad58f36f7dd9248cdf0b930.tar.gz |
ppc/syv682x: support C version
C version won't block I2C accessing to CONTROL4(to on/off Vconn) reg
when smart discahrge enabled. This allows us to re-enable the smart
discahrge on boards using SYV682C. This CL support the feature by
adding:
1. CONFIG_USBC_PPC_SYV682C
2. CONFIG_USBC_PPC_SYV682X_SMART_DISCHARGE
also, hayato uses different SYV682 versions across revisions, add a
overridable function syv682x_board_is_syv682c() for handling
board revision issue.
BUG=b:160548079 b:176876036
TEST=Hayato meets tVconnOff, and tVbusDischarge
BRANCH=asurada
Change-Id: I89b57b8c20907249d5d97140289fb0570bd58b46
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738506
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index ef029f2b45..c0a88cda53 100644 --- a/include/config.h +++ b/include/config.h @@ -4574,6 +4574,7 @@ #undef CONFIG_USBC_PPC_NX20P3481 #undef CONFIG_USBC_PPC_NX20P3483 #undef CONFIG_USBC_PPC_SN5S330 +#undef CONFIG_USBC_PPC_SYV682C #undef CONFIG_USBC_PPC_SYV682X /* @@ -4585,6 +4586,9 @@ /* SYV682 does not pass through CC, instead it bypasses to the TCPC */ #undef CONFIG_SYV682X_NO_CC +/* Define to enable SYV682X VBUS smart discharge. */ +#undef CONFIG_USBC_PPC_SYV682X_SMART_DISCHARGE + /* PPC is capable of gating the SBU lines. */ #undef CONFIG_USBC_PPC_SBU @@ -5498,6 +5502,13 @@ #define CONFIG_USBC_PPC_VCONN #endif + +/*****************************************************************************/ +/* PPC SYV682C is a subset of SYV682X. */ +#if defined(CONFIG_USBC_PPC_SYV682C) +#define CONFIG_USBC_PPC_SYV682X +#endif + /* * The SYV682X supports VCONN and needs to be informed of CC polarity. * There is a 3.6V limit on the HOST_CC signals, so the TCPC should not source |