diff options
author | Boris Mittelberg <bmbm@google.com> | 2021-12-21 16:58:15 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-23 23:57:50 +0000 |
commit | b49d021ca32820156bd1dfad94ed2d79eca60524 (patch) | |
tree | 432e55e995311217fdfd0ac1fa27fa151180c3ec | |
parent | 7812abe816584384ca89d4e1271d9974a40a7c0e (diff) | |
download | chrome-ec-b49d021ca32820156bd1dfad94ed2d79eca60524.tar.gz |
ppc: add ktu1125 config to zephyr
Adding configuration options to zephyr
BRANCH=none
BUG=b:207178886
TEST=none
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: Ie2456e045b4ee7bc090540851296929f00b857e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3352886
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/CMakeLists.txt | 2 | ||||
-rw-r--r-- | zephyr/Kconfig.usbc | 8 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 6eca8555f7..60a30d7352 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -433,6 +433,8 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC "${PLATFORM_EC}/common/usbc_ppc.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USBC_PPC_AOZ1380 "${PLATFORM_EC}/driver/ppc/aoz1380.c") +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_SN5S330 diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc index 55166f4525..f9a2a3c692 100644 --- a/zephyr/Kconfig.usbc +++ b/zephyr/Kconfig.usbc @@ -859,6 +859,14 @@ config PLATFORM_EC_USBC_PPC_RT1718S for alternated mode usage. VCONN Switch with OVP/OCP/RVP/RCP/UVP protection is also integrated. +config PLATFORM_EC_USBC_PPC_KTU1125 + bool "Kinetic KTU1125 Power Path Controller" + select PLATFORM_EC_USBC_OCP + help + KTU1125 integrates power switches to provide a compact protection + solution to USB Type-C applications by eliminating the dependence + on external components. + config PLATFORM_EC_USBC_PPC_NX20P3483 bool "NX20P3483 High Voltage Sink/Source Combo Switch" select PLATFORM_EC_USBC_OCP diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 63a0a99c8f..38f45bb2ae 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -1128,6 +1128,11 @@ #define CONFIG_USBC_PPC_AOZ1380 #endif +#undef CONFIG_USBC_PPC_KTU1125 +#ifdef CONFIG_PLATFORM_EC_USBC_PPC_KTU1125 +#define CONFIG_USBC_PPC_KTU1125 +#endif + #undef CONFIG_USBC_PPC_NX20P3483 #ifdef CONFIG_PLATFORM_EC_USBC_PPC_NX20P3483 #define CONFIG_USBC_PPC_NX20P3483 |