summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2019-01-31 13:43:04 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-11 19:53:06 -0700
commit554ba87174803e1ae52165ad46b9b22500b1ebb8 (patch)
treeda013d28d7da998255c11cbc120ca549c548a69b /include/ec_commands.h
parent31fb76dc641dfdcdbde2fd6447168967d6c5c1c2 (diff)
downloadchrome-ec-554ba87174803e1ae52165ad46b9b22500b1ebb8.tar.gz
driver: lis2dh: Add support for lng2dm
Looking at 4.19 kernel (drivers/iio/accel/st_accel_core.c), LNG2DM has the same interface as LIS2DH but a resolution of 8 bits only. In consequence, basic handling of LIS2DE and LNG2DM should be identical. FIFO and interrupt are not supported. BUG=b:122281217 BRANCH=none TEST=TBD Change-Id: I7b715cfccdaf147dcdc002e9be8f5231a3dd8f98 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1449112 Reviewed-by: Mathew King <mathewk@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 93dd9b8736..2a4331fb11 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2434,6 +2434,7 @@ enum motionsensor_chip {
MOTIONSENSE_CHIP_LIS2MDL = 16,
MOTIONSENSE_CHIP_LSM6DS3 = 17,
MOTIONSENSE_CHIP_LSM6DSO = 18,
+ MOTIONSENSE_CHIP_LNG2DM = 19,
MOTIONSENSE_CHIP_MAX,
};