summaryrefslogtreecommitdiff
path: root/board/drallion_ish
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2019-12-08 02:02:00 -0800
committerCommit Bot <commit-bot@chromium.org>2019-12-17 23:07:30 +0000
commit992810a77dd3698e69bcedd84f8259a08a753cb9 (patch)
treeb4f968f0916ed96bcbd10a206c02ae4328cf8ff6 /board/drallion_ish
parentb8d97655fc0c5b19042fc1c28384c0580debb9c0 (diff)
downloadchrome-ec-992810a77dd3698e69bcedd84f8259a08a753cb9.tar.gz
board: Set Accelerometer range to 4g
Required by Android CDD - Section 7.3.1 - Paragraph C.1.4 Modified mechanically with: for i in $(grep -lr "\.default_range" board); do sed -i '/.default_range =/s#\(.*\.default_range = \).* /\ \* g.*#\14, /* g, to meet CDD 7.3.1/C-1-4 reqs */#' $i done Manually reworked to only change the accelerometer that matters to android: The lid accelerometer or the base accelerometer if the base also hosts the gyroscope. This is only for future EC, no need to land the change on branches: mems_setup will take care to set accelerometer ranges at 4g on startup. BUG=b:144004449 BRANCH=none TEST=compile Change-Id: If8c14b2e928c9c70c0ce51451adcfcd674a9e73b Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1957375 Reviewed-by: Justin TerAvest <teravest@chromium.org> Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/drallion_ish')
-rw-r--r--board/drallion_ish/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/drallion_ish/board.c b/board/drallion_ish/board.c
index 933f3d26d5..659e9c0529 100644
--- a/board/drallion_ish/board.c
+++ b/board/drallion_ish/board.c
@@ -66,7 +66,7 @@ struct motion_sensor_t motion_sensors[] = {
.port = I2C_PORT_SENSOR,
.i2c_spi_addr_flags = LSM6DSM_ADDR0_FLAGS,
.rot_standard_ref = &lid_rot_ref,
- .default_range = 4, /* g */
+ .default_range = 4, /* g, to meet CDD 7.3.1/C-1-4 reqs */
.min_frequency = LSM6DSM_ODR_MIN_VAL,
.max_frequency = LSM6DSM_ODR_MAX_VAL,
.config = {