diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2021-11-30 16:51:40 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-02 04:35:12 +0000 |
commit | 8e1ac80d98f2349a133e717e44f50948687706f6 (patch) | |
tree | 4a5c4ddaf83cd2f2ad2ab10b1a8a536ac1cbfd19 | |
parent | 84fdf0ddddbd78eabe2fad28627ab0206e403248 (diff) | |
download | chrome-ec-8e1ac80d98f2349a133e717e44f50948687706f6.tar.gz |
zephyr: kconfig: add RT1718S PPC/TCPC config
Add PLATFORM_EC_USBC_PPC_RT1718S, and PLATFORM_EC_USB_PD_TCPM_RT1718S.
BUG=b:203739613
TEST=zmake testall
BRANCH=none
Change-Id: I663bbb29f38dfc925675a6f1beddeb3c976722fe
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3310017
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r-- | zephyr/CMakeLists.txt | 4 | ||||
-rw-r--r-- | zephyr/Kconfig.usbc | 28 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 10 |
3 files changed, 41 insertions, 1 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index b8d1744c23..dab7882231 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -408,6 +408,8 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8815 "${PLATFORM_EC}/driver/tcpm/ps8xxx.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_RT1715 "${PLATFORM_EC}/driver/tcpm/rt1715.c") +zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_RT1718S + "${PLATFORM_EC}/driver/tcpm/rt1718s.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_TUSB422 "${PLATFORM_EC}/driver/tcpm/tusb422.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_TCPCI @@ -429,6 +431,8 @@ 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 "${PLATFORM_EC}/driver/ppc/syv682x.c") +zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC_RT1718S + "${PLATFORM_EC}/driver/ppc/rt1718s.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_VBOOT_HASH "${PLATFORM_EC}/common/vboot_hash.c") diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc index 68769356b3..151825ab41 100644 --- a/zephyr/Kconfig.usbc +++ b/zephyr/Kconfig.usbc @@ -844,6 +844,22 @@ config PLATFORM_EC_USBC_PPC_AOZ1380 provide all the functionality and protection needed for sourcing and sinking current through a USB Type-C port with PD capability. +config PLATFORM_EC_USBC_PPC_RT1718S + bool "Richtek RT1718S TCPC/PPC" + select PLATFORM_EC_USB_PD_TCPM_RT1718S + select PLATFORM_EC_USBC_OCP + select PLATFORM_EC_USBC_PPC_POLARITY + select PLATFORM_EC_USBC_PPC_SBU + select PLATFORM_EC_USBC_PPC_VCONN if PLATFORM_EC_USBC_VCONN + help + RT1718S integrates several high voltage protection switch of + SBU1/SBU2/DP/DM from high voltage VBUS touching the adjacent pins. The + AMR of SBU OVP switch is 24V. High Voltage USB 2.0 Switches also + support HV DCP & fast charging protocols. The GPIOs in RT1718S can + be also configured to control system block such as USB3.0 to DP Mux + for alternated mode usage. VCONN Switch with OVP/OCP/RVP/RCP/UVP + protection is also integrated. + config PLATFORM_EC_USBC_PPC_NX20P3483 bool "NX20P3483 High Voltage Sink/Source Combo Switch" select PLATFORM_EC_USBC_OCP @@ -1229,7 +1245,7 @@ config PLATFORM_EC_USB_PD_TCPM_PS8815_FORCE_DID endif # PLATFORM_EC_USB_PD_TCPM_PS8815 config PLATFORM_EC_USB_PD_TCPM_RT1715 - bool "Ricktek RT1715 Type-C Port Controller" + bool "Richtek RT1715 Type-C Port Controller" help The RT1715 is a USB Type-C controller, integrating a complete Type-C Transceiver including the Rp and Rd resistors. It does the USB Type-C @@ -1238,6 +1254,16 @@ config PLATFORM_EC_USB_PD_TCPM_RT1715 100W of power and role swap. The BMC PD block enables full support for alternative interfaces of the Type-C specification. +config PLATFORM_EC_USB_PD_TCPM_RT1718S + bool "Richtek RT1718S Type-C Port Controller" + select PLATFORM_EC_USBC_PPC_RT17182S + help + The RT1718S is an integrated USB Type-C TCPC controller which + includes IEC-61000-4-2 ESD protection cell for CC/SBU/DP/DM. + High voltage USB 2.0 switches also support HV DCP & fast charging + protocols. RT1718S supports TCPC Version 1.2, and Battery Charging + version 1.2 (BC1.2). + config PLATFORM_EC_USB_PD_TCPM_TUSB422 bool "TI TUSB422 Port Control with USB PD" help diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 572942bcee..9d9e402f3c 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -1031,6 +1031,11 @@ #define CONFIG_USB_PD_TCPM_RT1715 #endif +#undef CONFIG_USB_PD_TCPM_RT1718S +#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_RT1718S +#define CONFIG_USB_PD_TCPM_RT1718S +#endif + #undef CONFIG_USB_PD_TCPM_TUSB422 #ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_TUSB422 #define CONFIG_USB_PD_TCPM_TUSB422 @@ -1100,6 +1105,11 @@ #define CONFIG_USBC_PPC_NX20P3483 #endif +#undef CONFIG_USBC_PPC_RT1718S +#ifdef CONFIG_PLATFORM_EC_USBC_PPC_RT1718S +#define CONFIG_USBC_PPC_RT1718S +#endif + #undef CONFIG_USBC_PPC_SN5S330 #ifdef CONFIG_PLATFORM_EC_USBC_PPC_SN5S330 #define CONFIG_USBC_PPC_SN5S330 |