summaryrefslogtreecommitdiff
path: root/util
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 /util
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 'util')
-rw-r--r--util/ectool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c
index d86233e33b..35dab22114 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -4347,6 +4347,9 @@ static int cmd_motionsense(int argc, char **argv)
case MOTIONSENSE_CHIP_LSM6DSO:
printf("lsm6dso\n");
break;
+ case MOTIONSENSE_CHIP_LNG2DM:
+ printf("lng2dm\n");
+ break;
default:
printf("unknown\n");
}