diff options
author | Wei-Ning Huang <wnhuang@google.com> | 2017-04-22 21:00:54 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-04-27 06:38:15 -0700 |
commit | a12bf17be9134dd163f891ba7d0900f02f349849 (patch) | |
tree | 5af7f594449edace0739c76cbaa04b8b386966cf /common/host_command.c | |
parent | ba105838f582793716d02eebee09a6f283ef73b3 (diff) | |
download | chrome-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 'common/host_command.c')
-rw-r--r-- | common/host_command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c index e57a19f0ae..f5382b533f 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -790,6 +790,9 @@ static int host_command_get_features(struct host_cmd_handler_args *args) #ifdef CONFIG_SPI_FP_PORT | EC_FEATURE_MASK_0(EC_FEATURE_FINGERPRINT) #endif +#ifdef HAS_TASK_CENTROIDING + | EC_FEATURE_MASK_0(EC_FEATURE_TOUCHPAD) +#endif ; return EC_RES_SUCCESS; } |