summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com>2021-11-02 12:30:28 +0800
committerCommit Bot <commit-bot@chromium.org>2021-11-03 01:47:51 +0000
commitee290758caf172eca83431627acaafb65352a276 (patch)
tree56ffaee073a523c3e8b9e00a23d051bb67f80d28
parent154f35abbcaeab3ede541f4835ccb4fedbbbb43f (diff)
downloadchrome-ec-ee290758caf172eca83431627acaafb65352a276.tar.gz
hayato: Fix icm40608 will pending when gryo set offset value.
Because the configuration "icm426xx_base_gyro" miss setting "drv_data". It will cause icm40608 will pending when gyro set offset value. BUG=b:193752214 BRANCH=asurada TEST=manual 1. ectool motionsense offset 1 0 0 0 2. watch ectool motionsense => Check icm40608 sesnor. Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I895df941192c86a447c552f3872c9156d61bec80 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3256731 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com>
-rw-r--r--board/asurada/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/asurada/board.c b/board/asurada/board.c
index b57d327015..ea7da39fa6 100644
--- a/board/asurada/board.c
+++ b/board/asurada/board.c
@@ -194,6 +194,7 @@ struct motion_sensor_t icm426xx_base_gyro = {
.location = MOTIONSENSE_LOC_BASE,
.drv = &icm426xx_drv,
.mutex = &g_base_mutex,
+ .drv_data = &g_icm426xx_data,
.port = I2C_PORT_ACCEL,
.i2c_spi_addr_flags = ICM426XX_ADDR0_FLAGS,
.default_range = 1000, /* dps */