summaryrefslogtreecommitdiff
path: root/test/fake_usbc.c
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-02-07 15:13:51 -0800
committerCommit Bot <commit-bot@chromium.org>2020-03-27 07:59:50 +0000
commitd4bc8b52d0562e1a05baea2531f735f5e3b723f4 (patch)
tree0b25cc07f59e812dc774866d1e5417081c637ff4 /test/fake_usbc.c
parent7bffc114e8f56cea32c04ac127092d29577894b8 (diff)
downloadchrome-ec-d4bc8b52d0562e1a05baea2531f735f5e3b723f4.tar.gz
usb_pd: Move cable communication functions to common file
BUG=b:148528713 BRANCH=none TEST=Verified on TCPMV1 and TCPMv2, able to get correct cable characteristics. Change-Id: I812b21c87661952bf4e86acaa194d4b136371594 Signed-off-by: Ayushee <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2051628 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Diffstat (limited to 'test/fake_usbc.c')
-rw-r--r--test/fake_usbc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c
index 0438eaf97f..73c992676b 100644
--- a/test/fake_usbc.c
+++ b/test/fake_usbc.c
@@ -192,6 +192,11 @@ bool pd_is_disconnected(int port)
#endif /* !CONFIG_USB_DRP_ACC_TRYSRC && !CONFIG_USB_CTVPD */
#ifndef CONFIG_USB_DRP_ACC_TRYSRC
+void dfp_consume_cable_response(int port, int cnt, uint32_t *payload,
+ uint16_t head)
+{
+}
+
void pd_set_dual_role(int port, enum pd_dual_role_states state)
{
}