summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2021-12-23 15:35:41 +1100
committerCommit Bot <commit-bot@chromium.org>2021-12-30 00:43:23 +0000
commitf7028c8e8597b98327febc4a6855889576545bad (patch)
tree7d10df779c1c34ceab169c135133daaf82151bb0
parentec003c7b92d5b8d41b0acf846dccc5da1f836e09 (diff)
downloadchrome-ec-f7028c8e8597b98327febc4a6855889576545bad.tar.gz
zephyr: add kconfig support for RAA489000 TCPC
BUG=b:211693800 TEST=zmake testall; CONFIG_PLATFORM_EC_USB_PD_TCPM_RAA489000 can be enabled BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: Iea7704e4eafa435e89b4e9b67eb9ee3efa5220d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354265 Reviewed-by: Aaron Massey <aaronmassey@google.com>
-rw-r--r--zephyr/CMakeLists.txt2
-rw-r--r--zephyr/Kconfig.usbc7
-rw-r--r--zephyr/shim/include/config_chip.h5
3 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt
index 13e98feff7..36525f678a 100644
--- a/zephyr/CMakeLists.txt
+++ b/zephyr/CMakeLists.txt
@@ -416,6 +416,8 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8805
"${PLATFORM_EC}/driver/tcpm/ps8xxx.c")
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_RAA489000
+ "${PLATFORM_EC}/driver/tcpm/raa489000.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
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index f9a2a3c692..22bdb9c632 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -1259,6 +1259,13 @@ config PLATFORM_EC_USB_PD_TCPM_PS8815_FORCE_DID
chip version register and force the correct device ID.
endif # PLATFORM_EC_USB_PD_TCPM_PS8815
+config PLATFORM_EC_USB_PD_TCPM_RAA489000
+ bool "Renesas RAA489000 Type-C port controller and battery charger"
+ select PLATFORM_EC_USB_PD_PPC
+ help
+ Build drivers for the RAA489000, a combined battery charger and USB-C
+ TCPCI.
+
config PLATFORM_EC_USB_PD_TCPM_RT1715
bool "Richtek RT1715 Type-C Port Controller"
help
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 665edd3d63..37ae49d741 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1128,6 +1128,11 @@
#define CONFIG_USB_PD_TCPM_DRIVER_IT83XX
#endif
+#undef CONFIG_USB_PD_TCPM_RAA489000
+#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_RAA489000
+#define CONFIG_USB_PD_TCPM_RAA489000
+#endif
+
#undef CONFIG_USB_PD_TCPM_ANX7447
#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_ANX7447
#define CONFIG_USB_PD_TCPM_ANX7447