diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-05-30 11:52:28 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-10 03:40:19 +0000 |
commit | a7c4132d2581ec7fa0155d414c2c3e0b9729b34c (patch) | |
tree | a26cf1a1b925532e4e573f69ae40fa77cf7a3f59 /board | |
parent | b21efba26afaa1a8c5e7e7e8a71f31a51cbc230c (diff) | |
download | chrome-ec-a7c4132d2581ec7fa0155d414c2c3e0b9729b34c.tar.gz |
driver: bmi160: Add FIFO and interrupt support
Add FIFO support, where bmi160 hardware FIFO is copied in local fifo.
Add rudimentary support for single/double tap and lift detection.
BUG=chrome-os-partner:39900
BRANCH=smaug
TEST=Check on F411 that FIFO data is retrieved and correct.
Check on Smaug as well, with proper kernel the collect the FIFO:
- check that increasing sampling_frequency we are collecting
the FIFO less often
- check no frames are lost.
- check tap/lift interrupts are working
- if latency is less than 100ms, check we are collecting much faster.
Change-Id: Ic2317c27fad0ef31dacd6e18cd5f71ccd2cec807
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/274227
Diffstat (limited to 'board')
-rw-r--r-- | board/ryu/board.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/board/ryu/board.c b/board/ryu/board.c index 11f7753ccd..11ece706c7 100644 --- a/board/ryu/board.c +++ b/board/ryu/board.c @@ -275,9 +275,6 @@ const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /* Sensor mutex */ static struct mutex g_mutex; -/* local sensor data (per-sensor) */ -struct bmi160_drv_data_t g_bmi160_data; - struct motion_sensor_t motion_sensors[] = { /* |