summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-22 14:34:06 +1300
committerCommit Bot <commit-bot@chromium.org>2021-03-24 03:31:06 +0000
commit487fcd06dddfce60f52647912469df02cb6245f2 (patch)
treec5fb111692d68482eb58d2d5c30a09958889fe29 /zephyr
parent5fcce093ad15e9b13ee33ea9d98149dacb1596d4 (diff)
downloadchrome-ec-487fcd06dddfce60f52647912469df02cb6245f2.tar.gz
zephyr: Add two more Parade PS8xxx chips to the build
Parade PS8751 and PS8805 are needed by lazor so add support for them in the Zephyr build. BUG=b:183296099 BRANCH=none TEST=build zephyr for lazor Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ic93a0568d1c505cb496dd92c128d0b05ddef93cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2777637
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/CMakeLists.txt4
-rw-r--r--zephyr/Kconfig.usbc18
-rw-r--r--zephyr/shim/include/config_chip.h10
3 files changed, 32 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt
index e59945002c..9a79a80ef9 100644
--- a/zephyr/CMakeLists.txt
+++ b/zephyr/CMakeLists.txt
@@ -357,6 +357,10 @@ zephyr_sources_ifdef(CONFIG_PLATFORM_EC_USB_DRP_ACC_TRYSRC
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_USB_PRL_SM
"${PLATFORM_EC}/common/usbc/usb_prl_sm.c")
+zephyr_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8751
+ "${PLATFORM_EC}/driver/tcpm/ps8xxx.c")
+zephyr_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8805
+ "${PLATFORM_EC}/driver/tcpm/ps8xxx.c")
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8815
"${PLATFORM_EC}/driver/tcpm/ps8xxx.c")
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_USB_PD_TCPM_RT1715
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 126d266429..3ee5a1eeb6 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -866,6 +866,24 @@ config PLATFORM_EC_USB_PD_TCPC_RUNTIME_CONFIG
factory. Without this, multiple EC images would need to be installed
depending on the board.
+config PLATFORM_EC_USB_PD_TCPM_PS8751
+ bool "Parade PS8751 USB-C Gen 2 Type-C Port Controller"
+ select PLATFORM_EC_USB_PD_TCPM_MUX
+ help
+ The Parade Technologies PS8751 is a USB Type-C Port Controller (TCPC)
+ for USB Type-C Host and DisplayPort applications. It supports
+ Power Delivery Rev. 2.0 and the DisplayPort Alt Mode version 1.0a.
+
+config PLATFORM_EC_USB_PD_TCPM_PS8805
+ bool "Parade PS8805 USB-C Gen 2 Type-C Port Controller"
+ select PLATFORM_EC_USB_PD_TCPM_MUX
+ help
+ The Parade Technologies PS8805 is an active retiming/redriving
+ (respectively for USB 3.1 Gen 2 / DisplayPort 1.4a HBR3) integrated
+ with a USB Type-C Port Controller (TCPC) for USB Type-C Host and
+ DisplayPort applications. It supports Power Delivery and the
+ DisplayPort Alt Mode.
+
config PLATFORM_EC_USB_PD_TCPM_PS8815
bool "Parade PS8815 USB-C Gen 2 Type-C Port Controller"
select PLATFORM_EC_USB_PD_TCPM_MUX
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 41bfcc9ebd..2e49326065 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -791,6 +791,16 @@
#define CONFIG_USB_DRP_ACC_TRYSRC
#endif
+#undef CONFIG_USB_PD_TCPM_PS8751
+#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8751
+#define CONFIG_USB_PD_TCPM_PS8751
+#endif
+
+#undef CONFIG_USB_PD_TCPM_PS8805
+#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8805
+#define CONFIG_USB_PD_TCPM_PS8805
+#endif
+
#undef CONFIG_USB_PD_TCPM_PS8815
#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8815
#define CONFIG_USB_PD_TCPM_PS8815