summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2019-05-20 11:51:28 -0700
committerCommit Bot <commit-bot@chromium.org>2019-05-30 23:19:39 +0000
commite8ee2f0509190b20e43d9d5b071503497ec3a1aa (patch)
tree0041f8486069f5bbe4e9df61ff43d37dabd1b951
parentab565efc144889dcd7a437e297c0a0fb0a061ec2 (diff)
downloadchrome-ec-e8ee2f0509190b20e43d9d5b071503497ec3a1aa.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/c/chromiumos/platform/ec/+/1621507 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 */