nocturne: Set BMI160 speed to 400kHZ
When running at just 100kHz, the EC has difficulty to read samples in
time. It can take up to read the FIFO 5 times back to back to read the
samples:
[484.946134 14 bytes in FIFO ]
[484.949848 BMI160 ACC : int scan 2 times]
[484.957095 14 bytes in FIFO ]
[484.961614 14 bytes in FIFO ]
[484.966271 14 bytes in FIFO ]
[484.970900 14 bytes in FIFO ]
[484.974541 BMI160 ACC : int scan 5 times]
When 400kHz is enable it happens rarely. [Only when higher priority
threads are running in thight loop]:
[3341.194286 BMI160 GYRO ODR: 200000 - roundup 1 from config 0 [AP
200000]]
[3341.201762 HC 0x67 err 9]
[3341.202395 HC 0x67 err 9]
[3341.203439 HC 0x67 err 9]
[3341.204378 HC 0x67 err 9]
[[3341.205056 HC 0x67 err 9]
[3341.205654 HC 0x67 err 9]
3341.204881 14 bytes in FIFO ]
[3341.206493 HC 0x67 err 9]
[3341.209807 14 bytes in FIFO ]
[3341.212296 BMI160 ACC : int scan 3 times]
[3346.238588 BMI160 ACC ODR: 10000 - roundup 1 from config 1 [AP 0]]
BUG=b:78539498,b:110143516
BRANCH=none
TEST=Run CtsHardwareTestCases on Nocturne less tests fails.
Change-Id: I07d067d04f6db3cfaf23c47baf6cd6942e46c159
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1137238
Commit-Ready: Alexandru M Stan <amstan@chromium.org>
Tested-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
1 file changed