diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-03-09 14:43:47 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-16 13:29:58 -0700 |
commit | cf30d5c29dae458f1f616351b48f8d04aa4a777a (patch) | |
tree | 1fe94ec0472bb1b2856cc4707e4cae42b6d209ae /board/nautilus | |
parent | 09292f6a89b113775ac951afed022138b6b20026 (diff) | |
download | chrome-ec-cf30d5c29dae458f1f616351b48f8d04aa4a777a.tar.gz |
driver: bma2x2: Add perform_calib
Add fast compensation automatic calibration, like bmi160.
Use timestamp_expired for timeout measurement for both perform_calib
functions.
Remove driver offset field, remove private bma2x2 structure.
BUG=b:73205042
BRANCH=master
TEST=echo 1 > calibrate perform calibration.
Reading in_accel_*_calibbias is within range.
Check on Lami for both bma2x2 and bmi160.
Change-Id: I3472865287fa4769a05e6f872b92d7c3f933cb4e
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/957872
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/nautilus')
-rw-r--r-- | board/nautilus/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/nautilus/board.c b/board/nautilus/board.c index 654b8e50d2..215f0213a8 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -576,7 +576,7 @@ static struct mutex g_base_mutex; static struct bmi160_drv_data_t g_bmi160_data; /* BMA255 private data */ -static struct bma2x2_accel_data g_bma255_data; +static struct accelgyro_saved_data_t g_bma255_data; /* Matrix to rotate accelrator into standard reference frame */ const matrix_3x3_t base_standard_ref = { |