diff options
author | xiong.huang <xiong.huang@bitland.corp-partner.google.com> | 2019-08-05 15:28:57 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-16 11:57:30 +0000 |
commit | 19db4647c0a1258a061d0b92da3bb25022ee0fc8 (patch) | |
tree | b5474a22c85116551cede551786d4e63d2d6ef5f /board/kodama/board.h | |
parent | 090c47f8f16588f5e216804f890e1f94009b6ddc (diff) | |
download | chrome-ec-19db4647c0a1258a061d0b92da3bb25022ee0fc8.tar.gz |
kodama: Add ACCEL and GYRO sensor LSM6DS3TR-C driver
Kodama project uses chip LSM6DS3TR-C instead of BMI160, and modify its
driver information to support LSM6DS3TR-C well.
BUG=b:136977971
BRANCH=master
TEST=1) At EC RW stage, accel and gyro init successfully.
2) It can get accel sensor XYZ datas with command 'ectool motionsense'
in VT2.
Cq-Depend:chromium:1730377
Change-Id: I32d5fb7ea1b305e42e1e5bbe9e1f22c9e6220abd
Signed-off-by: Xiong Huang <xiong.huang@bitland.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1736408
Reviewed-by: Paul Ma <magf@bitland.corp-partner.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kodama/board.h')
-rw-r--r-- | board/kodama/board.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/kodama/board.h b/board/kodama/board.h index 4e12a2b3f7..d865edefcd 100644 --- a/board/kodama/board.h +++ b/board/kodama/board.h @@ -34,9 +34,9 @@ /* Motion Sensors */ #ifdef SECTION_IS_RW -#define CONFIG_ACCELGYRO_BMI160 +#define CONFIG_ACCELGYRO_LSM6DSM #define CONFIG_ACCEL_INTERRUPTS -#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ +#define CONFIG_ACCEL_LSM6DSM_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL) /* Camera VSYNC */ |