From c5b6235a42f2d39117fe940ef766d0d78533de86 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 8 Sep 2015 10:00:10 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/298685 (cherry picked from commit 241c2cb42915a37ffc123fea6bc61a24620fc1dd) Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/301377 --- board/ryu/board.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'board') 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, -- cgit v1.2.1