diff options
author | Diana Z <dzigterman@chromium.org> | 2023-01-31 15:30:55 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-07 23:24:13 +0000 |
commit | ecc6c840680ce1612f1e5eb96588ca1762bb25d7 (patch) | |
tree | 0d099aefe306422b66f8a381a0dba0aec701b4d0 /include/config.h | |
parent | 7884deec9f9c255724cf3d32566e7876e0dc3b71 (diff) | |
download | chrome-ec-ecc6c840680ce1612f1e5eb96588ca1762bb25d7.tar.gz |
TCPM: Separate Discovery into its own module
Discovery can be a separate feature from DFP mode entry, as any data
role can run discovery in PD 3.0. Additionally, boards may want to
enable discovery separate from full EC mode entry so put this feature
behind a new CONFIG indicating its scope.
BRANCH=None
BUG=b:266714542
LOW_COVERAGE_REASON=only moving functions to a new file, b/267964449
filed to track expanding the testing of these functions later
TEST=./twister -T ./zephyr/test, run on both nipperkin (ECOS) and skyrim
(zephyr) to confirm cable and device identities are being reported
correctly
Change-Id: I84a08eaf4775ed427112d62777ff38f8a914a750
Signed-off-by: Diana Z <dzigterman@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4211268
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/config.h b/include/config.h index f534f39df6..4084c357f2 100644 --- a/include/config.h +++ b/include/config.h @@ -4566,15 +4566,18 @@ #define CONFIG_USB_PD_HOST_CMD #endif -/* Support for USB PD alternate mode */ +/* Support for USB PD alternate mode entry */ #undef CONFIG_USB_PD_ALT_MODE -/* Support for USB PD alternate mode of Downward Facing Port */ +/* Support for USB PD alternate mode entry by a Downward Facing Port */ #undef CONFIG_USB_PD_ALT_MODE_DFP -/* Support for USB PD alternate mode of Upward Facing Port */ +/* Support for USB PD alternate mode entry from an Upward Facing Port */ #undef CONFIG_USB_PD_ALT_MODE_UFP +/* Support for automatic USB PD Discovery VDM probing and storage */ +#undef CONFIG_USB_PD_DISCOVERY + /* * 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. @@ -5929,10 +5932,12 @@ /******************************************************************************/ /* * If CONFIG_USB_PD_ALT_MODE_DFP is set and this isn't a zephyr build (which - * already did its preprocessing earlier), then enable DP Mode by default + * already did its preprocessing earlier), then enable DP Mode by default and + * also enable discovery by default. */ #if defined(CONFIG_USB_PD_ALT_MODE_DFP) && !defined(CONFIG_ZEPHYR) #define CONFIG_USB_PD_DP_MODE +#define CONFIG_USB_PD_DISCOVERY #endif /******************************************************************************/ |