summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-03-22 17:30:39 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-29 19:07:38 +0000
commit4c84afb1cdb1d1da8155f1bc30ea93ecd7b8dd4b (patch)
tree21a4edcf7386e94e950acb588540f7f779b9d79e /include/ec_commands.h
parentf4b27032e1c508b693bba1f2d6572ad14d42f319 (diff)
downloadchrome-ec-4c84afb1cdb1d1da8155f1bc30ea93ecd7b8dd4b.tar.gz
common: motion_sense: Prevent on/off body from waking up device
Introduce a new flag: BYPASS_FIFO to raise an interrupt to the AP when an event is sent. It is not as strong as WAKEUP, as it does not wake up the AP. BYPASS_FIFO must be set when WAKEUP is set. It is applied to sync sensor as well as gesture/activity sensor. BUG=b:123434029 BRANCH=trogdor TEST=Compile Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: Id5aba71e6d11ef31f7fa2c67ba2e07178d088b1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2780834 Reviewed-by: Ching-Kang Yen <chingkang@chromium.org> Tested-by: Ching-Kang Yen <chingkang@chromium.org> Commit-Queue: Ching-Kang Yen <chingkang@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-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 8949077e8e..bd62d3a3ce 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2770,6 +2770,8 @@ struct ec_motion_sense_activity {
#define MOTIONSENSE_SENSOR_FLAG_TABLET_MODE BIT(3)
#define MOTIONSENSE_SENSOR_FLAG_ODR BIT(4)
+#define MOTIONSENSE_SENSOR_FLAG_BYPASS_FIFO BIT(7)
+
/*
* Send this value for the data element to only perform a read. If you
* send any other value, the EC will interpret it as data to set and will