diff options
author | Devin Lu <Devin.Lu@quantatw.com> | 2021-07-19 11:03:05 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-21 02:19:33 +0000 |
commit | edc228bf8103f9b5f557c1891131d87bf55e62a5 (patch) | |
tree | 769921ba04ec648ae3369487dd396ea0c6cef657 /board/redrix/board.h | |
parent | 5af62af356e2c9799899ffb9ddd7b9dfee18d662 (diff) | |
download | chrome-ec-edc228bf8103f9b5f557c1891131d87bf55e62a5.tar.gz |
redrix: Configure Motion Sensors
Regarding the lid accelerometer, change to Bosch BMA253 and remove
the interrupt pin.
And the base accelerometer changed to LSM6DSLU.
BUG=b:193744971
BRANCH=none
TEST=make buildall -j
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I2db5f981e86217ce1cf8e207c40040493071f5d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3037286
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/redrix/board.h')
-rw-r--r-- | board/redrix/board.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/board/redrix/board.h b/board/redrix/board.h index 04bb90ff5f..73b0e29a85 100644 --- a/board/redrix/board.h +++ b/board/redrix/board.h @@ -25,9 +25,13 @@ #define CONFIG_HIBERNATE_PSL_VCC1_RST_WAKEUP /* Sensors */ -#define CONFIG_ACCELGYRO_LSM6DSO /* Base accel */ -#define CONFIG_ACCEL_LSM6DSO_INT_EVENT \ +#define CONFIG_ACCEL_BMA255 /* Lid accel */ +#define CONFIG_ACCELGYRO_LSM6DSM /* Base accel */ +#define CONFIG_ACCEL_LSM6DSM_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) +#define CONFIG_LID_ANGLE +#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL +#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL /* TCS3400 ALS */ #define CONFIG_ALS @@ -47,15 +51,6 @@ #define CONFIG_ACCEL_FORCE_MODE_MASK \ (BIT(LID_ACCEL) | BIT(CLEAR_ALS)) -/* Lid accel */ -#define CONFIG_LID_ANGLE -#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL -#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL -#define CONFIG_ACCEL_LIS2DWL -#define CONFIG_ACCEL_LIS2DW_AS_BASE -#define CONFIG_ACCEL_LIS2DW12_INT_EVENT \ - TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL) - #define CONFIG_ACCEL_INTERRUPTS /* Sensor console commands */ |