diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2021-01-28 14:43:46 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-13 01:33:27 +0000 |
commit | 0bbf86f74a0cfb2155cac12864b126dbf7c0be0d (patch) | |
tree | df57efcf8dec368b305c32a920261802a7f69d90 /board/dalboz/board.c | |
parent | 0fcc873b1a928176575fc406be3919f35cc4fa4f (diff) | |
download | chrome-ec-0bbf86f74a0cfb2155cac12864b126dbf7c0be0d.tar.gz |
board: Set Accelerometer range to 4g
For accelerometer presented to Android, set default range to 4g.
Required by Android CDD - Section 7.3.1 - Paragraph C.1.4.
mems_setup can correct it, but it is cleaner if the default setting is
right.
BUG=b:144004449
BRANCH=none
TEST=compile
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I781eafc003823e2595d46d7170f717aaee08dc6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657956
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/dalboz/board.c')
-rw-r--r-- | board/dalboz/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/dalboz/board.c b/board/dalboz/board.c index f9052f9ee5..b40c374b80 100644 --- a/board/dalboz/board.c +++ b/board/dalboz/board.c @@ -135,7 +135,7 @@ struct motion_sensor_t motion_sensors[] = { .flags = MOTIONSENSE_FLAG_INT_SIGNAL, .port = I2C_PORT_SENSOR, .i2c_spi_addr_flags = LSM6DSM_ADDR0_FLAGS, - .default_range = 4, /* g, enough for laptop */ + .default_range = 4, /* g, to meet CDD 7.3.1/C-1-4 reqs.*/ .rot_standard_ref = &base_standard_ref, .min_frequency = LSM6DSM_ODR_MIN_VAL, .max_frequency = LSM6DSM_ODR_MAX_VAL, |