summaryrefslogtreecommitdiff
path: root/test/test_config.h
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@chromium.org>2019-09-27 13:25:14 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-06 22:55:08 +0000
commitcfb6d3ded36e6b7935f8693532f6f9031643865d (patch)
tree8a59dccf74d4f3a8ad1f54cc6000f3b1a98f203f /test/test_config.h
parent437e7346ab38a1eca1bb8526ae03b120635f03e9 (diff)
downloadchrome-ec-cfb6d3ded36e6b7935f8693532f6f9031643865d.tar.gz
ppc: cleanup ppc
Allow limited PPC chips to default to EC_ERROR_UNIMPLEMENTED for functions in the driver that are not needed. BUG=b:138599218 BRANCH=none TEST=make buildall -j Change-Id: I5242ef285eb277c06d516ab09f7a74f76d7d34b2 Signed-off-by: Denis Brockus <dbrockus@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1829405 Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'test/test_config.h')
-rw-r--r--test/test_config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h
index b83d834056..c422143112 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -335,6 +335,15 @@ int ncp15wb_calculate_temp(uint16_t adc);
#endif
#endif /* TEST_USB_PD || TEST_USB_PD_GIVEBACK || TEST_USB_PD_REV30 */
+#ifdef TEST_USB_PPC
+#define CONFIG_USB_PD_PORT_COUNT 1
+#define CONFIG_USB_PD_VBUS_DETECT_PPC
+#define CONFIG_USBC_PPC
+#define CONFIG_USBC_PPC_POLARITY
+#define CONFIG_USBC_PPC_SBU
+#define CONFIG_USBC_PPC_VCONN
+#endif
+
#if defined(TEST_CHARGE_MANAGER) || defined(TEST_CHARGE_MANAGER_DRP_CHARGING)
#define CONFIG_CHARGE_MANAGER
#define CONFIG_USB_PD_DUAL_ROLE