summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-09-25 13:49:20 -0600
committerCommit Bot <commit-bot@chromium.org>2020-10-05 18:11:39 +0000
commita44234c5f3741e4849809e1b57b0b2f007549769 (patch)
tree1427a3a9ff76f00a34159975a62f473a1917a2ba /include/ec_commands.h
parent2a045fdf01481da310dbe3f4c46569c0fd4b31e9 (diff)
downloadchrome-ec-a44234c5f3741e4849809e1b57b0b2f007549769.tar.gz
TCPMv2: Notify on SOP and SOP' discovery complete
Notify the AP when the task has finished discovery. The AP doesn't need notification if nothing was found, but does need notification by transmit type as long as at least DiscoverIdentity was returned. BRANCH=None BUG=b:148816435 TEST=on waddledoo, verify: - events are 0 with nothing plugged in - events show SOP complete with Apple dongle - events show SOP and SOP' complete with TBT dock - events show SOP complete with Moshi (DiscoverIdentity only) - events show SOP complete with WooHub (Mode discovery will NAK) Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I5fcfc1ba2bde40c70400462dcc4efc2b7b60d0ca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2432456 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 226b71eab7..8286f22c0d 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -6465,6 +6465,9 @@ enum tcpc_cc_polarity {
#define MODE_DP_PIN_F BIT(6)
#define MODE_DP_PIN_ALL GENMASK(6, 0)
+#define PD_STATUS_EVENT_SOP_DISC_DONE BIT(0)
+#define PD_STATUS_EVENT_SOP_PRIME_DISC_DONE BIT(1)
+
struct ec_params_typec_status {
uint8_t port;
} __ec_align1;