summaryrefslogtreecommitdiff
path: root/common/host_command.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-07-15 10:29:12 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-15 21:58:15 +0000
commit5d970f4b536d0a47d9e638619fadd7c9a0272d51 (patch)
treebcaab91f1e24008f5ebe7ce8f7d8a43fe3212bd7 /common/host_command.c
parent17152949a93eaa68748066e5ff386e3ca0077575 (diff)
downloadchrome-ec-5d970f4b536d0a47d9e638619fadd7c9a0272d51.tar.gz
command: Add sensor FIFO as an independant feature.
To ease driver loading in the kernel, add a bit in the feature field to indicate the EC has an internal software FIFO for sensor events. BRANCH=smaug BUG=chrome-os-partner:39900 TEST=compile, kernel modules load as expected on Smaug. Change-Id: I1ae0b9ebb587bb4939745e8a0e16d73d95ba31d7 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/285774 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common/host_command.c')
-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 bc40a68441..778eeab369 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -766,6 +766,9 @@ static int host_command_get_features(struct host_cmd_handler_args *args)
#ifdef CONFIG_USB_SWITCH_TSU6721
| EC_FEATURE_MASK_0(EC_FEATURE_USB_MUX)
#endif
+#ifdef CONFIG_ACCEL_FIFO
+ | EC_FEATURE_MASK_0(EC_FEATURE_MOTION_SENSE_FIFO)
+#endif
;
return EC_RES_SUCCESS;
}