From 8a88dd4833708c0401b1cc1951f846fa574d4086 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Fri, 5 Nov 2021 16:01:10 +0800 Subject: 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 Change-Id: Id500979262cea9fab7b38dfaff9339762896d0ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3263230 Reviewed-by: Eric Yilun Lin Commit-Queue: Ting Shen Tested-by: Ting Shen --- zephyr/CMakeLists.txt | 2 ++ zephyr/Kconfig.usbc | 7 +++++++ 2 files changed, 9 insertions(+) (limited to 'zephyr') 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 -- cgit v1.2.1