summaryrefslogtreecommitdiff
path: root/zephyr/shim/include
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-09-02 12:43:50 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-02 20:19:20 +0000
commitf947750bbc0c968656ca8c484619b58b088a8e77 (patch)
tree2e7c59fa06c855e16db9d546336af1e834d0fbc8 /zephyr/shim/include
parent380c8f9f027f228db6996f409c994c23910e2fbf (diff)
downloadchrome-ec-f947750bbc0c968656ca8c484619b58b088a8e77.tar.gz
zephyr: Add Kconfig options for PS8xxx TCPC
Add Kconfig options CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8805 and CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8815 to enable/disable the workaround for PS8805/PS8815 firmware reporting the incorrect device ID. BUG=none BRANCH=none TEST=zmake testall TEST=On herobrine, verify that "ectool pdchipinfo 0" reports a device ID 0x02. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I16367ae5276e974671b034294275104d5831df21 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3140325 Commit-Queue: Wai-Hong Tam <waihong@google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/shim/include')
-rw-r--r--zephyr/shim/include/config_chip.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 2c7ac5dfe3..e7f793c6b3 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -913,9 +913,18 @@
#define CONFIG_USB_PD_TCPM_PS8805
#endif
+#undef CONFIG_USB_PD_TCPM_PS8805_FORCE_DID
+#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8805_FORCE_DID
+#define CONFIG_USB_PD_TCPM_PS8805_FORCE_DID
+#endif
+
#undef CONFIG_USB_PD_TCPM_PS8815
#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8815
#define CONFIG_USB_PD_TCPM_PS8815
+#endif
+
+#undef CONFIG_USB_PD_TCPM_PS8815_FORCE_DID
+#ifdef CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8815_FORCE_DID
#define CONFIG_USB_PD_TCPM_PS8815_FORCE_DID
#endif