summaryrefslogtreecommitdiff
path: root/common/usbc/build.mk
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-08-18 11:14:05 -0600
committerCommit Bot <commit-bot@chromium.org>2020-09-03 00:20:23 +0000
commit147803fd0f6785692c215e49d31b948ac871acb5 (patch)
tree3d53fead81e92c801adffe697ad4c8603e6e3572 /common/usbc/build.mk
parent9ca75e89ce2d4af265d8f34f20d5892680bfa38d (diff)
downloadchrome-ec-147803fd0f6785692c215e49d31b948ac871acb5.tar.gz
TCPMv2: Add EC_CMD_TYPEC_DISCOVERY
This host command will return all discovery information for the given port and transmit type (SOP, SOP'). Each piece of information includes a count of the number of valid fields filled in to the arrays. To keep the command consolidated and easy to parse, this means there will be some number of bytes in each response which do not contain useful information. With this method, we may fit 7 SVID entries with mode information, which is less than the 16 which the EC can store, but more than most port partners present. BRANCH=None BUG=b:165264379 TEST=on waddledoo, confirm ectool shows: -no discovery information with nothing plugged in -no discovery information with a charger which doesn't reply to VDMs -SOP identity but no SVIDs with Moshi, which NAKs DiscoverSVIDs -SOP identity and all SVIDs with Apple 3-in-1 -SOP and SOP' identity and all SVIDs with TBT dock Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Idf21b23ebe4cda62781762188601b2cc35ede65d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2363417 Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'common/usbc/build.mk')
-rw-r--r--common/usbc/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/usbc/build.mk b/common/usbc/build.mk
index a4da8a37c9..c39d1a57e6 100644
--- a/common/usbc/build.mk
+++ b/common/usbc/build.mk
@@ -33,6 +33,7 @@ all-obj-$(CONFIG_USB_DRP_ACC_TRYSRC)+=$(_usbc_dir)dp_alt_mode.o
all-obj-$(CONFIG_USB_PD_TBT_COMPAT_MODE)+=$(_usbc_dir)tbt_alt_mode.o
all-obj-$(CONFIG_USB_PD_USB4)+=$(_usbc_dir)usb_mode.o
all-obj-$(CONFIG_CMD_PD)+=$(_usbc_dir)usb_pd_console.o
+all-obj-$(CONFIG_USB_PD_HOST_CMD)+=$(_usbc_dir)usb_pd_host.o
endif # CONFIG_USB_PE_SM
endif # CONFIG_USB_PD_TCPMV2