summaryrefslogtreecommitdiff
path: root/board/kakadu/board.h
diff options
context:
space:
mode:
authorwen zhang <zhangwen6@huaqin.corp-partner.google.com>2021-05-25 10:14:46 +0800
committerCommit Bot <commit-bot@chromium.org>2021-05-25 04:35:57 +0000
commitedc2839d0d6315c8f00280fd4fe523910c1bd939 (patch)
treec8f78442a8174c661e68deca4ac1f29ba0ff7ac0 /board/kakadu/board.h
parent127233d26369b0565ef3839fd4560e97b4703f96 (diff)
downloadchrome-ec-edc2839d0d6315c8f00280fd4fe523910c1bd939.tar.gz
Kakadu: add the support for ICM42607
Bosh notice that BMI160 are going EOL, so we intend to import ICM42607 for Kakadu BUG=b:189077747 BRANCH=kukui TEST=1.make BOARD=kakadu 2.ectool motionsense can get the sensor data Change-Id: If73306784e276c21f158c6977e02b532087b2b22 Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2910568 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kakadu/board.h')
-rw-r--r--board/kakadu/board.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/kakadu/board.h b/board/kakadu/board.h
index 6cecfaed2b..1a7d8c3507 100644
--- a/board/kakadu/board.h
+++ b/board/kakadu/board.h
@@ -38,6 +38,9 @@
#define CONFIG_ACCEL_INTERRUPTS
#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \
TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL)
+#define CONFIG_ACCELGYRO_ICM42607 /* Base accel second source*/
+#define CONFIG_ACCELGYRO_ICM42607_INT_EVENT \
+ TASK_EVENT_MOTION_SENSOR_INTERRUPT(LID_ACCEL)
/* Camera VSYNC */
#define CONFIG_SYNC
@@ -116,10 +119,10 @@ void board_reset_pd_mcu(void);
int board_get_version(void);
void pogo_adc_interrupt(enum gpio_signal signal);
int board_discharge_on_ac(int enable);
+void motion_interrupt(enum gpio_signal signal);
/* Enable double tap detection */
#define CONFIG_GESTURE_DETECTION
-#define CONFIG_GESTURE_HOST_DETECTION
#define CONFIG_GESTURE_SENSOR_DOUBLE_TAP
#define CONFIG_GESTURE_TAP_SENSOR 0
#define CONFIG_GESTURE_SENSOR_DOUBLE_TAP_FOR_HOST