summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-11-05 16:01:10 +0800
committerCommit Bot <commit-bot@chromium.org>2022-02-10 10:45:14 +0000
commit8a88dd4833708c0401b1cc1951f846fa574d4086 (patch)
tree4ff003bad0cc398a24ccdca71f9808150862e1eb /zephyr
parentf05dfc5d84616ec31c2fa96b06f6ecf6313f2698 (diff)
downloadchrome-ec-8a88dd4833708c0401b1cc1951f846fa574d4086.tar.gz
driver: implement rt1739 ppc/bc12 driver
Implement basic ppc/bc1.2 functions for Richtek rt1739 ppc. BUG=b:200107774 TEST=manually verified source/sink/vconn functions BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Id500979262cea9fab7b38dfaff9339762896d0ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3263230 Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/CMakeLists.txt2
-rw-r--r--zephyr/Kconfig.usbc7
2 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt
index 3873e44566..731cddcd6a 100644
--- a/zephyr/CMakeLists.txt
+++ b/zephyr/CMakeLists.txt
@@ -464,6 +464,8 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC_KTU1125
"${PLATFORM_EC}/driver/ppc/ktu1125.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC_NX20P3483
"${PLATFORM_EC}/driver/ppc/nx20p348x.c")
+zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC_RT1739
+ "${PLATFORM_EC}/driver/ppc/rt1739.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC_SN5S330
"${PLATFORM_EC}/driver/ppc/sn5s330.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC_SYV682X
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 30d8e35c3e..6a1f285eff 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -892,6 +892,13 @@ config PLATFORM_EC_USBC_PPC_NX20P3483
The NX20P3483 is a product with combined multiple power switches
and a LDO for USB PD application.
+config PLATFORM_EC_USBC_PPC_RT1739
+ bool "Richtek RT1739 Type-C Power Path Controller"
+ help
+ RT1739 is a highly integrated USB-C Bi-Directional Power Mux and
+ Protection IC which includes IEC-61000-4-2 ESD protection cell for
+ VBUS/CC/SBU/DP/DM.
+
config PLATFORM_EC_USBC_PPC_SN5S330
bool "TI SN5S330 PD 3.0 power mux"
select PLATFORM_EC_USBC_OCP