summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/Kconfig.usbc8
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 3d2b13829f..f799a6cb05 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -541,6 +541,14 @@ config PLATFORM_EC_USB_PD_ALT_MODE
differential pairs. If all are used for the alternate mode, then USB
transmission is not available at all while in this mode.
+config PLATFORM_EC_USB_PD_REQUIRE_AP_MODE_ENTRY
+ bool "USB Power delivery requires AP to enter alternate modes"
+ depends on PLATFORM_EC_USB_PD_ALT_MODE
+ help
+ Do not enter USB PD alternate modes or USB4 automatically, Wait for
+ the AP to direct the EC to enter a mode. This requires AP software
+ support.
+
config PLATFORM_EC_USB_PD_ALT_MODE_DFP
bool "Downward Facing Port support"
default y
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 49caff3eb6..3aef33b699 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -2170,4 +2170,9 @@
#define CONFIG_IO_EXPANDER_SUPPORT_GET_PORT
#endif
+#undef CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY
+#ifdef CONFIG_PLATFORM_EC_USB_PD_REQUIRE_AP_MODE_ENTRY
+#define CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY
+#endif
+
#endif /* __CROS_EC_CONFIG_CHIP_H */