diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-01-03 10:09:22 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-08 17:22:48 -0800 |
commit | c49334f1433e15ca2549c06b7aa283896249dd25 (patch) | |
tree | 6fe75a886f8bc7bfde3e15d0fa721ff4e6a0a34d /include/ec_commands.h | |
parent | f5798790ad05477f52ce0001bfc52a5512c87d9b (diff) | |
download | chrome-ec-c49334f1433e15ca2549c06b7aa283896249dd25.tar.gz |
ec_commands: Add sync sensor
SYNC motion sensor are use to count event.
It sends an event to the AP each time a GPIO goes low/high, the datum
contains a 16 bit counter.
The location indicates the source of the event, as Android sensor hal
will use this information (via sysfs location attribute) to link the
sensor with other subsystem.
BUG=b:67743747
BRANCH=none
TEST=Unit tests.
Change-Id: Ia808b25730ad4100efa216c6a86b7b090197c5a3
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/848496
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index c48c6f5ee3..e4ba2d0b96 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2241,6 +2241,7 @@ enum motionsensor_type { MOTIONSENSE_TYPE_LIGHT = 4, MOTIONSENSE_TYPE_ACTIVITY = 5, MOTIONSENSE_TYPE_BARO = 6, + MOTIONSENSE_TYPE_SYNC = 7, MOTIONSENSE_TYPE_MAX, }; @@ -2248,6 +2249,7 @@ enum motionsensor_type { enum motionsensor_location { MOTIONSENSE_LOC_BASE = 0, MOTIONSENSE_LOC_LID = 1, + MOTIONSENSE_LOC_CAMERA = 2, MOTIONSENSE_LOC_MAX, }; @@ -2265,6 +2267,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_BMP280 = 9, MOTIONSENSE_CHIP_OPT3001 = 10, MOTIONSENSE_CHIP_BH1730 = 11, + MOTIONSENSE_CHIP_GPIO = 12, }; /* List of orientation positions */ |