summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2017-03-10 18:01:01 +0100
committerchrome-bot <chrome-bot@chromium.org>2017-03-13 17:53:58 -0700
commit03b5e1bbb9b284855225f7240a9f1d8c0d34bf7e (patch)
treeee9857b3809485e361445296c041fa648c848d27 /common
parent23ea0c9fa39163d3afb3dc5a96dce2962fb5014c (diff)
downloadchrome-ec-03b5e1bbb9b284855225f7240a9f1d8c0d34bf7e.tar.gz
common: add feature bit for fingerprint support
Add a new 'feature' bit to allow the host to auto-detect a FP MCU. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=b:35648259 TEST=manual, on Eve, look at the features bit on the kernel interface. Change-Id: If21320bb29d58f0a6dfadba03d8892e4183e5430 Reviewed-on: https://chromium-review.googlesource.com/452341 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/host_command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c
index 7ff327c726..e57a19f0ae 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -787,6 +787,9 @@ static int host_command_get_features(struct host_cmd_handler_args *args)
#ifdef CONFIG_HOSTCMD_RTC
| EC_FEATURE_MASK_0(EC_FEATURE_RTC)
#endif
+#ifdef CONFIG_SPI_FP_PORT
+ | EC_FEATURE_MASK_0(EC_FEATURE_FINGERPRINT)
+#endif
;
return EC_RES_SUCCESS;
}