summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-07-02 13:17:47 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-07-03 22:31:05 -0700
commitfec3c3c7ec17aaa92332b3128ce3afd352585bed (patch)
tree59157ab3eac4cf5f6f0ffb6c395f2e78e0dbab45 /include
parent797146cb4c63a00a9535ad92fcbb75e65d98d688 (diff)
downloadchrome-ec-fec3c3c7ec17aaa92332b3128ce3afd352585bed.tar.gz
sensor: Add flag for tight timestamping
Kernel needs to be aware of the the new timestamp code to apply proper filtering/spreading. This flag set means that timestamps are always after every sensor sample, and both timestamps (sensor sample and fifo info) are recorded with minimal latency and jitter. TEST=Add 'dev_err(dev, "feature 36 = %d\n", cros_ec_check_features(ec, 36));' in kernel/drivers/platform/chrome/cros_ec_dev.c See the bit set (16, not 0) in dmesg. BUG=b/111079027, b/109786990 Change-Id: Ia71703e035d7a6eac1e0a483caa62b7c75e5cb2a Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Alexandru M Stan <amstan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1123218
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 3379fd7441..b67f93dde2 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1265,6 +1265,8 @@ enum ec_feature_code {
EC_FEATURE_EXEC_IN_RAM = 34,
/* EC supports CEC commands */
EC_FEATURE_CEC = 35,
+ /* EC supports tight sensor timestamping. */
+ EC_FEATURE_MOTION_SENSE_TIGHT_TIMESTAMPS = 36,
};
#define EC_FEATURE_MASK_0(event_code) (1UL << (event_code % 32))