diff options
author | Rajesh Kumar <rajesh3.kumar@intel.com> | 2021-12-09 15:27:03 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-05 21:27:58 +0000 |
commit | 4d05f728dc4e0ab7cd55c30abcfeb0fbc043e2fb (patch) | |
tree | f173529c1bbf0715810e3f31329d308957c7e2ec | |
parent | eaa8882cfa9c8a7998c6018a514bcae1fb4a530f (diff) | |
download | chrome-ec-4d05f728dc4e0ab7cd55c30abcfeb0fbc043e2fb.tar.gz |
zephyr: Support config for USB Power delivery requires to enter AP mode
Added new USB configuration PLATFORM_EC_USB_PD_REQUIRE_AP_MODE_ENTRY.
Enable this if EC wants to wait for direction from the AP to enter
Type-C alternate modes or USB4.
BUG=b:210007304
BRANCH=none
TEST=zmake configure
Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com>
Change-Id: Icdc283a9d7c6a65eba8fe54a9f35c0f3e0116f32
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3328948
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/Kconfig.usbc | 8 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
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 */ |