diff options
author | Bhanu Prakash Maiya <bhanumaiya@google.com> | 2021-07-14 17:38:19 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-15 19:57:44 +0000 |
commit | 85f12144f23e44ffa33326252c915dd32b147d09 (patch) | |
tree | 99629f0a0b0f34feadf0399b107055a5b1864d85 | |
parent | e14e67127a9cb710c4415b3248d8cef7b8f4c8c4 (diff) | |
download | chrome-ec-85f12144f23e44ffa33326252c915dd32b147d09.tar.gz |
guybrush: Fix default ODR of motion sensors
BMI323 and BMA422 support 12500 as the lowest ODR.
BRANCH=none
BUG=b:178400750
TEST=Accel implementation tested on Guybrush
EC commands:
> accelinfo
> acceldata
Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org>
Signed-off-by: Latchiamaran Senram <latchiamaran.senram@bosch.corp-partner.google.com>
Change-Id: Ic3cd5c304360b31abc4124e417b42a2262337e3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3029006
Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com>
Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | board/guybrush/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/guybrush/board.c b/board/guybrush/board.c index f8dd4f3768..b91512f3b5 100644 --- a/board/guybrush/board.c +++ b/board/guybrush/board.c @@ -71,12 +71,12 @@ struct motion_sensor_t motion_sensors[] = { .config = { /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { - .odr = 10000 | ROUND_UP_FLAG, + .odr = 12500 | ROUND_UP_FLAG, .ec_rate = 100 * MSEC, }, /* Sensor on in S3 */ [SENSOR_CONFIG_EC_S3] = { - .odr = 10000 | ROUND_UP_FLAG, + .odr = 12500 | ROUND_UP_FLAG, .ec_rate = 0, }, }, @@ -99,12 +99,12 @@ struct motion_sensor_t motion_sensors[] = { .config = { /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { - .odr = 10000 | ROUND_UP_FLAG, + .odr = 12500 | ROUND_UP_FLAG, .ec_rate = 100 * MSEC, }, /* Sensor on in S3 */ [SENSOR_CONFIG_EC_S3] = { - .odr = 10000 | ROUND_UP_FLAG, + .odr = 12500 | ROUND_UP_FLAG, .ec_rate = 0, }, }, |