summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2019-05-20 11:51:28 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-24 15:10:43 -0700
commitcb9f4e1337c36d9e00869568610d5774a0bbf7bc (patch)
treed29b73d7396ba4ed871dde4a34b626ab826f01bf
parent74924114a5b3762424aec95e009b1106714f6f9b (diff)
downloadchrome-ec-cb9f4e1337c36d9e00869568610d5774a0bbf7bc.tar.gz
FIXUP: sensor: Adjust max_frequency based on EC performance
When chaning the macro fro BMA255, the step was set to 125Hz, so it assumes the EC can support MEMS ODR set to 125Hz. This is not the case on poppy and nautilus in the poppy branch. BRANCH=poppy BUG=b:118205424,b:118851581,chromium:615059,b:131705379 TEST=Compile Change-Id: Ib60abb3919dc1ce049211d848fc4e4de2e5e51c0 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1621188 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Enrico Granata <egranata@chromium.org>
-rw-r--r--driver/accel_bma2x2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accel_bma2x2.h b/driver/accel_bma2x2.h
index dbb8347c94..09a4ea2452 100644
--- a/driver/accel_bma2x2.h
+++ b/driver/accel_bma2x2.h
@@ -161,5 +161,5 @@ extern const struct accelgyro_drv bma2x2_accel_drv;
/* Min and Max sampling frequency in mHz */
#define BMA255_ACCEL_MIN_FREQ 7810
#define BMA255_ACCEL_MAX_FREQ \
- MOTION_MAX_SENSOR_FREQUENCY(1000000, 125000)
+ MOTION_MAX_SENSOR_FREQUENCY(1000000, 15625)
#endif /* __CROS_EC_ACCEL_BMA2x2_H */