summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWei-Ning Huang <wnhuang@google.com>2017-04-22 21:00:54 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-04-27 06:38:15 -0700
commita12bf17be9134dd163f891ba7d0900f02f349849 (patch)
tree5af7f594449edace0739c76cbaa04b8b386966cf /include
parentba105838f582793716d02eebee09a6f283ef73b3 (diff)
downloadchrome-ec-a12bf17be9134dd163f891ba7d0900f02f349849.tar.gz
common: add feature bit for touchpad support
Add a new 'feature' bit to allow the host to auto-detect a TP MCU. Signed-off-by: Wei-Ning Huang <wnhuang@google.com> BRANCH=none BUG=b:37584134 TEST=on eve with TP connected, look at the feature bit. Change-Id: I81b30b96b31fc8dcb6769dd146fb33cdd487fddf Reviewed-on: https://chromium-review.googlesource.com/485422 Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org> Tested-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'include')
-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 2295e26320..b837c6dc75 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1078,6 +1078,8 @@ enum ec_feature_code {
EC_FEATURE_RTC = 27,
/* The MCU exposes a Fingerprint sensor */
EC_FEATURE_FINGERPRINT = 28,
+ /* The MCU exposes a Touchpad */
+ EC_FEATURE_TOUCHPAD = 29,
};
#define EC_FEATURE_MASK_0(event_code) (1UL << (event_code % 32))