summaryrefslogtreecommitdiff
path: root/test/fake_usbc.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2020-02-11 12:48:46 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-12 20:05:34 +0000
commit0c2d07061c82d718288dbc287ca56b17da2206f9 (patch)
tree51529bc2c06549f5c82037809c530fc1aac23d9d /test/fake_usbc.c
parentb7f0b4cd0cd42319d204ac653224f3661a463237 (diff)
downloadchrome-ec-0c2d07061c82d718288dbc287ca56b17da2206f9.tar.gz
TCPMv1/v2: Move pd_process_source_cap() to common file
BUG=b:148528713 BRANCH=none TEST=make buildall -j Change-Id: I6bd6b5875a322ca4ba6d77a4cfc96a72630e5f5c Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2051220 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'test/fake_usbc.c')
-rw-r--r--test/fake_usbc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c
index 36e0d7ca48..d8ed1d42f9 100644
--- a/test/fake_usbc.c
+++ b/test/fake_usbc.c
@@ -162,6 +162,20 @@ enum idh_ptype get_usb_pd_mux_cable_type(int port)
{
return IDH_PTYPE_UNDEF;
}
+
+const uint32_t * const pd_get_src_caps(int port)
+{
+ return NULL;
+}
+
+void pd_set_src_caps(int port, int cnt, uint32_t *src_caps)
+{
+}
+
+uint8_t pd_get_src_cap_cnt(int port)
+{
+ return 0;
+}
#endif
#ifndef CONFIG_USB_TYPEC_DRP_ACC_TRYSRC