From e8ee2f0509190b20e43d9d5b071503497ec3a1aa Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Mon, 20 May 2019 11:51:28 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1621507 Reviewed-by: Enrico Granata --- driver/accel_bma2x2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.1