diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-09-08 10:00:10 -0700 |
---|---|---|
committer | ChromeOS bot <3su6n15k.default@developer.gserviceaccount.com> | 2015-09-21 10:57:35 +0000 |
commit | c5b6235a42f2d39117fe940ef766d0d78533de86 (patch) | |
tree | 645ef5144ab24bafd15e29b7802cdd87e03f5cfa /board | |
parent | 1623c42bede805fd419a750f60aee3bc965f451a (diff) | |
download | chrome-ec-c5b6235a42f2d39117fe940ef766d0d78533de86.tar.gz |
driver: bmi160: Allow double tap to be set by the host.
In S0, allow the host to enable/disable double tap.
Set S0 accel frequency to 100Hz to track double tap event.
BRANCH=smaug
BUG=chrome-os-partner:44754
TEST=check CTS results are identical to previous runs.
Check we can enable/disable double tap from the host.
Change-Id: Ic36bdd77005a1152fd413fb3869c8a77ef680117
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/298685
(cherry picked from commit 241c2cb42915a37ffc123fea6bc61a24620fc1dd)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/301377
Diffstat (limited to 'board')
-rw-r--r-- | board/ryu/board.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/board/ryu/board.c b/board/ryu/board.c index 0eaaba6f0e..9da2ba157d 100644 --- a/board/ryu/board.c +++ b/board/ryu/board.c @@ -499,13 +499,12 @@ struct motion_sensor_t motion_sensors[] = { .odr = 0, .ec_rate = 0, }, - /* EC needs accel for activity recognition. */ + /* Used for double tap */ [SENSOR_CONFIG_EC_S0] = { - .odr = 12500, + .odr = 100000, /* Interrupt driven, no polling */ .ec_rate = 0, }, - /* Used for double tap */ [SENSOR_CONFIG_EC_S3] = { .odr = 100000, .ec_rate = 0, |