summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2017-09-19 16:02:34 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-09-20 18:32:01 +0000
commitd04fd6dd37b9d9fb4fe84f92d0f940fa8878dda6 (patch)
treeaabf1337bfb0ebdfdda87810bff8b3f0e77f7592
parent0e3f4120fa5bd42358c2aab9cb77bbdae6528370 (diff)
downloadchrome-ec-d04fd6dd37b9d9fb4fe84f92d0f940fa8878dda6.tar.gz
driver: bm160: Fix minimal gyro frequency
Was set in Hz unit instead of mHz. The minimal frequency of the gyroscope is 25Hz. By setting it at 25mHz, we make believe that the gyro was also supporting 5Hz or 10Hz: the test would complain when instead the samples came with a 25Hz. Fix up of cl/482703 BUG=b:65000611 TEST=compile BRANCH=caroline,eve,twinkie Change-Id: I162d0d2e9b545af82698d8d484875761f426efe4 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/675783
-rw-r--r--driver/accelgyro_bmi160.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accelgyro_bmi160.h b/driver/accelgyro_bmi160.h
index 6031d8fb4e..89365488aa 100644
--- a/driver/accelgyro_bmi160.h
+++ b/driver/accelgyro_bmi160.h
@@ -420,7 +420,7 @@ enum fifo_header {
/* Min and Max sampling frequency in mHz */
#define BMI160_ACCEL_MIN_FREQ 12500
#define BMI160_ACCEL_MAX_FREQ 1600000
-#define BMI160_GYRO_MIN_FREQ 25
+#define BMI160_GYRO_MIN_FREQ 25000
#define BMI160_GYRO_MAX_FREQ 3200000
extern const struct accelgyro_drv bmi160_drv;