summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-09-19 13:50:26 -0600
committerCommit Bot <commit-bot@chromium.org>2020-10-05 18:11:30 +0000
commit0d33970abab4369391ae6636537d1904592adca5 (patch)
tree70963ccb241357d84f0e59f8827d839c4908dfce
parentd4162ed75fc1e1a5d98352ff4b4389224f84db72 (diff)
downloadchrome-ec-0d33970abab4369391ae6636537d1904592adca5.tar.gz
TCPMv2: Add PD_EVENT_TYPEC
The kernel uses the EC_CMD_PD_HOST_EVENT_STATUS command after receiving notifications from the EC. TCPMv2 will be moving to track events in a per-port manner with the new EC_CMD_TYPEC_STATUS command, and the new PD_EVENT_TYPEC flag will indicate that the kernel should use this new command to retrieve more specific events. BRANCH=None BUG=b:148816435 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ie76fc5abfbf2c433645577a61efdcce7f1dcc0c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2432453 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--include/ec_commands.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 11e283b19c..dcc0a54bb7 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -5294,10 +5294,12 @@ struct ec_response_pd_status {
#define EC_CMD_PD_HOST_EVENT_STATUS 0x0104
/* PD MCU host event status bits */
-#define PD_EVENT_UPDATE_DEVICE BIT(0)
-#define PD_EVENT_POWER_CHANGE BIT(1)
-#define PD_EVENT_IDENTITY_RECEIVED BIT(2)
-#define PD_EVENT_DATA_SWAP BIT(3)
+#define PD_EVENT_UPDATE_DEVICE BIT(0)
+#define PD_EVENT_POWER_CHANGE BIT(1)
+#define PD_EVENT_IDENTITY_RECEIVED BIT(2)
+#define PD_EVENT_DATA_SWAP BIT(3)
+#define PD_EVENT_TYPEC BIT(4)
+
struct ec_response_host_event_status {
uint32_t status; /* PD MCU host event status */
} __ec_align4;