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 /test | |
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 'test')
-rw-r--r-- | test/test_config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h index bc5b2ae133..926ebba090 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -452,6 +452,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #undef CONFIG_USB_PD_HOST_CMD #define CONFIG_USB_PD_ALT_MODE_DFP #define CONFIG_USB_PD_DP_MODE +#define CONFIG_USB_PD_DISCOVERY #define CONFIG_USBC_SS_MUX #define CONFIG_USB_PD_3A_PORTS 0 /* Host does not define a 3.0 A PDO */ #endif @@ -477,6 +478,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #undef CONFIG_USB_PD_HOST_CMD #define CONFIG_USB_PD_ALT_MODE_DFP #define CONFIG_USB_PD_DP_MODE +#define CONFIG_USB_PD_DISCOVERY #define CONFIG_USBC_SS_MUX #define I2C_PORT_HOST_TCPC 0 #define CONFIG_CHARGE_MANAGER @@ -554,6 +556,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_TEST_USB_PE_SM #define CONFIG_USB_PD_ALT_MODE_DFP #define CONFIG_USB_PD_DP_MODE +#define CONFIG_USB_PD_DISCOVERY #define CONFIG_USBC_VCONN #define CONFIG_USBC_VCONN_SWAP #define CONFIG_USB_PID 0x5036 |