summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Feng <li1.feng@intel.com>2022-09-17 00:07:30 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-20 02:18:02 +0000
commit6d16bf185791f23952b8d6d438d97f364ea23b47 (patch)
treef0bf46869562c3cd7b13169178407925dca4ef6e
parentc40c77f75b68a4ec12d4092575bb741c07b27a59 (diff)
downloadchrome-ec-6d16bf185791f23952b8d6d438d97f364ea23b47.tar.gz
zephyr: Kconfig: Add data reset config
PLATFORM_EC_USB_PD_DATA_RESET_MSG is defined in Kconfig.pd, but it's not included in shim/include/config_chip.h. So it won't take effect even set CONFIG_PLATFORM_EC_USB_PD_DATA_RESET_MSG=y. Add this config to shim to enable data reset. BUG=b:247192444 BRANCH=None TEST=zmake build -a Signed-off-by: Li Feng <li1.feng@intel.com> Change-Id: I73f0b04994813a33bce7e093db9b78a3e238e411 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3902610 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
-rw-r--r--zephyr/shim/include/config_chip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 38bf127379..cf0dd635b7 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1847,6 +1847,11 @@ extern char mock_jump_data[sizeof(struct jump_data) + 256];
#define CONFIG_USB_PD_USB4
#endif
+#undef CONFIG_USB_PD_DATA_RESET_MSG
+#ifdef CONFIG_PLATFORM_EC_USB_PD_DATA_RESET_MSG
+#define CONFIG_USB_PD_DATA_RESET_MSG
+#endif
+
#undef CONFIG_USB_PD_FRS
#ifdef CONFIG_PLATFORM_EC_USB_PD_FRS
#define CONFIG_USB_PD_FRS