summaryrefslogtreecommitdiff
path: root/driver/accel_bma2x2.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/accel_bma2x2.h')
-rw-r--r--driver/accel_bma2x2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/accel_bma2x2.h b/driver/accel_bma2x2.h
index 2fcbfadfdc..dbb8347c94 100644
--- a/driver/accel_bma2x2.h
+++ b/driver/accel_bma2x2.h
@@ -160,5 +160,6 @@ 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 1000000
+#define BMA255_ACCEL_MAX_FREQ \
+ MOTION_MAX_SENSOR_FREQUENCY(1000000, 125000)
#endif /* __CROS_EC_ACCEL_BMA2x2_H */