diff options
author | Sam Hurst <shurst@google.com> | 2020-05-06 08:51:08 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-21 04:56:46 +0000 |
commit | 61efe94f1e1ca1ebbd7c49ed9bd1bcfe8948e7f0 (patch) | |
tree | d4484be2e69c78dcb8369be447b0b139ba147ef0 /test/test_config.h | |
parent | c92f3d36f70a551e3df442cc7e015000f73f0578 (diff) | |
download | chrome-ec-61efe94f1e1ca1ebbd7c49ed9bd1bcfe8948e7f0.tar.gz |
TCPMv2: Only include PD3.0 functionality when CONFIG_USB_PD_REV30
The TCPMv2 stack defaults to PD2.0 functionality. Defining
CONFIG_USB_PD_REV30 enables PD3.0 functionality.
BUG=b:155879504
BRANCH=none
TEST=make -j buildall
Manual tests:
passed FAFT_PD running on kohaku
Before patch:
*** 18624 bytes in flash and 29216 bytes in RAM on kohaku RO ****
*** 18544 bytes in flash and 29216 bytes in RAM on kohaku RW ****
After patch:
*** 23320 bytes in flash and 30336 bytes in RAM on kohaku RO ****
*** 23228 bytes in flash and 30336 bytes in RAM on kohaku RW ****
Flash savings of 4696 bytest
Ram savings of 1120
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I082cf62617a91b487d2d3567afd5e340bd52258c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2184547
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'test/test_config.h')
-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 d501a90ab5..6a8b622eee 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -314,6 +314,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #if defined(TEST_USB_PRL) #define CONFIG_USB_PD_PORT_MAX_COUNT 1 +#define CONFIG_USB_PD_REV30 #define CONFIG_USB_PD_TCPMV2 #undef CONFIG_USB_PE_SM #undef CONFIG_USB_TYPEC_SM @@ -333,6 +334,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USB_PID 0x5036 #define CONFIG_USB_POWER_DELIVERY #undef CONFIG_USB_PRL_SM +#define CONFIG_USB_PD_REV30 #define CONFIG_USB_PD_TCPMV2 #define CONFIG_USB_PD_DECODE_SOP #undef CONFIG_USB_TYPEC_SM @@ -359,6 +361,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #define VPD_GND_IMPEDANCE 33 #define CONFIG_USB_PD_PORT_MAX_COUNT 1 +#define CONFIG_USB_PD_REV30 #define CONFIG_USB_PD_TCPMV2 #define CONFIG_USB_PE_SM #define CONFIG_USB_PRL_SM |