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:31:58 +0000
commit679ec2fca47fcc2f8ebf4e07eb7089e6bbc776f1 (patch)
tree303c42aa461e29713fc0445110cdffa7118293a9
parentd4f1476d55f842c87c649e98130a618e520826c1 (diff)
downloadchrome-ec-679ec2fca47fcc2f8ebf4e07eb7089e6bbc776f1.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/675784
-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 06be4addd9..279117193c 100644
--- a/driver/accelgyro_bmi160.h
+++ b/driver/accelgyro_bmi160.h
@@ -418,7 +418,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;