diff options
author | Ben Chen <ben.chen2@quanta.corp-partner.google.com> | 2020-12-31 14:05:20 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-09 05:24:57 +0000 |
commit | 0e0bbbafd7482aba297f9a681fd6869d66f48aab (patch) | |
tree | 2f80dde690a873863359064b5b1011e98fd5583f /board/voxel/board.h | |
parent | 251a1ee0ae893929f41c7afcd32741ea0f3805a2 (diff) | |
download | chrome-ec-0e0bbbafd7482aba297f9a681fd6869d66f48aab.tar.gz |
voxel: Add motion sensor config for kx022/icm-426xx
Add icm-426xx config for new second source base accel/gyro,
and lid accel config for new second source.
BUG=b:176039213, b:175843510
BRANCH=main
TEST=Using ectool 'motionsense' verified lid angle now goes
from 0 to 360 and swtiches to tablet mode after crossing 200
threshold on re-work kx022/icm-426xx DUT.
Change-Id: I6815a46f01f8334f4f8c1b07deee16046566fbce
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2607207
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/voxel/board.h')
-rw-r--r-- | board/voxel/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/voxel/board.h b/board/voxel/board.h index c868938778..f66a09becc 100644 --- a/board/voxel/board.h +++ b/board/voxel/board.h @@ -47,12 +47,17 @@ /* Sensors */ /* BMI160 Base accel/gyro */ #define CONFIG_ACCELGYRO_BMI160 +#define CONFIG_ACCELGYRO_ICM426XX /* Base accel second source*/ #define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) +#define CONFIG_ACCELGYRO_ICM426XX_INT_EVENT \ + TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) + /* Lid operates in forced mode, base in FIFO */ #define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL) /* BMA253 Lid accel */ +#define CONFIG_ACCEL_KX022 /* Lid accel */ #define CONFIG_ACCEL_BMA255 #define CONFIG_LID_ANGLE #define CONFIG_LID_ANGLE_UPDATE @@ -183,6 +188,8 @@ enum usbc_port { void board_reset_pd_mcu(void); +void motion_interrupt(enum gpio_signal signal); + #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BOARD_H */ |