diff options
author | Jett Rink <jettrink@chromium.org> | 2019-01-30 10:19:16 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-13 14:43:01 -0800 |
commit | 573b4bd9b49af15a57ca05f6bd515807a1d58424 (patch) | |
tree | be7224091b0cfb6299c4ba36fe9d7694aec6cdd6 /include | |
parent | 13abae16925c01def0a177da5d853f6a416b52cf (diff) | |
download | chrome-ec-573b4bd9b49af15a57ca05f6bd515807a1d58424.tar.gz |
lsm6ds3: Add LDM6DS3 variant to existing LSM6DSM
The lsm6dsX where X is M/L/3 are very similar. The only differences
appear to be the who am I register value and fifo size.
BRANCH=none
BUG=b:122281217
TEST=Arcada with CL stack, can read sensor data via EC console using
`accelread 0` command
Change-Id: Iaa12d49616c66e574e069b43aba2618722f0dda0
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1446533
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Gwendal Grignou <gwendal@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 1 | ||||
-rw-r--r-- | include/ec_commands.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index ec02b51c68..9ebb0bc4de 100644 --- a/include/config.h +++ b/include/config.h @@ -77,6 +77,7 @@ #undef CONFIG_ACCEL_LIS2D_COMMON #undef CONFIG_ACCELGYRO_BMI160 #undef CONFIG_ACCELGYRO_LSM6DS0 +/* Use CONFIG_ACCELGYRO_LSM6DSM for LSM6DSL, LSM6DSM, and/or LSM6DS3 */ #undef CONFIG_ACCELGYRO_LSM6DSM /* Add sensorhub function for LSM6DSM, required if 2nd device attached. */ #undef CONFIG_SENSORHUB_LSM6DSM diff --git a/include/ec_commands.h b/include/ec_commands.h index 60ef2d1812..defa9f7edd 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2432,6 +2432,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_LSM6DSM = 14, MOTIONSENSE_CHIP_LIS2DE = 15, MOTIONSENSE_CHIP_LIS2MDL = 16, + MOTIONSENSE_CHIP_LSM6DS3 = 17, MOTIONSENSE_CHIP_MAX, }; |