summaryrefslogtreecommitdiff
path: root/test/fake_usbc.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2020-01-23 07:19:06 -0800
committerCommit Bot <commit-bot@chromium.org>2020-01-28 02:35:08 +0000
commit50d60e3fe12a852ae412d9502ca22a5b72cb441b (patch)
tree3d5f925aba3d00f523812acb5238548a6e3dc4a1 /test/fake_usbc.c
parent43dfea03a49d46677590ac42f2fce4419835e1e7 (diff)
downloadchrome-ec-50d60e3fe12a852ae412d9502ca22a5b72cb441b.tar.gz
usb_mux: cleanup: Replace mux state enums with ec_command bit flag
BUG=b:145796172 BRANCH=none TEST=make buildall -j Change-Id: Ie4ffaf208745764262931501f0dff77b525a4e59 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2017569 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'test/fake_usbc.c')
-rw-r--r--test/fake_usbc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c
index 6953d07190..2ee1791717 100644
--- a/test/fake_usbc.c
+++ b/test/fake_usbc.c
@@ -141,3 +141,10 @@ void pd_dev_get_rw_hash(int port, uint16_t *dev_id, uint8_t *rw_hash,
uint32_t *current_image)
{
}
+
+#ifndef CONFIG_USB_TYPEC_DRP_ACC_TRYSRC
+bool pd_is_disconnected(int port)
+{
+ return false;
+}
+#endif /* CONFIG_USB_TYPEC_DRP_ACC_TRYSRC */