summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-10-14 15:16:16 -0600
committerCommit Bot <commit-bot@chromium.org>2020-10-21 00:26:47 +0000
commitd6458e209c36770ec482a25e5d2e8e29cb20dcac (patch)
tree49987dcbd4b338cfec7be32bc1c4e86f94d429ca /include/ec_commands.h
parent3cac50952113db8ec86a187c61a02132e423ee52 (diff)
downloadchrome-ec-d6458e209c36770ec482a25e5d2e8e29cb20dcac.tar.gz
TCPMv2: Report TYPEC commands as a feature
To ease the AP's use of the new TYPEC_* host commands, add a feature flag to indicate their presence. Since ToT TCPMv2 always supports these commands, use that configuration as the trigger for it. Note for firmware branch pickers: this commit should only be picked if the branch is also picking the corresponding TYPEC commands (currently as of this CL: STATUS, DISCOVERY, and CONTROL). BRANCH=None BUG=b:167700356 TEST=on waddledoo, confirm Type-c command support shows up in "ectool inventory" Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I4ff78c9b6ca297933611d4abf239fb67b1221751 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2473100 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 651c6dd740..226571b005 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1400,6 +1400,8 @@ enum ec_feature_code {
EC_FEATURE_SCP = 39,
/* The MCU is an Integrated Sensor Hub */
EC_FEATURE_ISH = 40,
+ /* New TCPMv2 TYPEC_ prefaced commands supported */
+ EC_FEATURE_TYPEC_CMD = 41,
};
#define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32)