summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBhanu Prakash Maiya <bhanumaiya@google.com>2021-06-23 00:37:58 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-09 22:09:06 +0000
commit845f3a732f29e777de779c08e54d90d857e1e076 (patch)
treea99800f53b65e7f75f29eb96707a073edd91f3ea /include
parent2c37de83e78e98820ce2a7473932afdec029d2a6 (diff)
downloadchrome-ec-845f3a732f29e777de779c08e54d90d857e1e076.tar.gz
driver: bmi3xx: Add support for BMI323 sensor
BMI323 is one of BMI3XX series accel sensor series. Adding defines, driver from Bosch APIs based initial patches submitted by Bosch team members in crrev/c/2966530. BRANCH=none BUG=b:178398789 TEST=Accel implementation tested on Guybrush EC commands: > accelinfo > acceldata Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Change-Id: I9fa9d80aa25231261994adb4ef0ac5d71ac2f81a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2984740 Reviewed-by: Diana Z <dzigterman@chromium.org> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Commit-Queue: Bhanu Prakash Maiya <bhanumaiya@google.com> Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/config.h2
-rw-r--r--include/ec_commands.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 8daf9025f6..9356e307c0 100644
--- a/include/config.h
+++ b/include/config.h
@@ -120,6 +120,7 @@
#undef CONFIG_ACCELGYRO_BMI160
#undef CONFIG_ACCELGYRO_BMI260
+#undef CONFIG_ACCELGYRO_BMI3XX
#undef CONFIG_ACCELGYRO_ICM426XX
#undef CONFIG_ACCELGYRO_LSM6DS0
/* Use CONFIG_ACCELGYRO_LSM6DSM for LSM6DSL, LSM6DSM, and/or LSM6DS3 */
@@ -364,6 +365,7 @@
*/
#undef CONFIG_ACCELGYRO_BMI160_INT_EVENT
#undef CONFIG_ACCELGYRO_BMI260_INT_EVENT
+#undef CONFIG_ACCELGYRO_BMI3XX_INT_EVENT
#undef CONFIG_ACCELGYRO_ICM426XX_INT_EVENT
#undef CONFIG_ACCEL_LSM6DSM_INT_EVENT
#undef CONFIG_ACCEL_LSM6DSO_INT_EVENT
diff --git a/include/ec_commands.h b/include/ec_commands.h
index d1b5b3ea90..441db29d74 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2680,6 +2680,7 @@ enum motionsensor_chip {
MOTIONSENSE_CHIP_ICM426XX = 25,
MOTIONSENSE_CHIP_ICM42607 = 26,
MOTIONSENSE_CHIP_BMA422 = 27,
+ MOTIONSENSE_CHIP_BMI323 = 28,
MOTIONSENSE_CHIP_MAX,
};