summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-02-15 11:51:45 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-19 19:21:20 -0700
commitb87bea3289d8ea050f0b482972f6e04ecb8823b1 (patch)
tree788f8b99c974867bfdb96d89231cc96cae400671
parent88613a3aa27b6845faf6917c2c9ef950b974f51a (diff)
downloadchrome-ec-b87bea3289d8ea050f0b482972f6e04ecb8823b1.tar.gz
driver: lsm6dsm: Add ectool support.
BUG=b:73546254 BRANCH=master TEST=compile Change-Id: If914dfbf7bb30e934b711d8f89c46af2787f917c Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/924406 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--include/ec_commands.h1
-rw-r--r--util/ectool.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index fdbcf3dcf9..e1b5a77688 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2276,6 +2276,7 @@ enum motionsensor_chip {
MOTIONSENSE_CHIP_BH1730 = 11,
MOTIONSENSE_CHIP_GPIO = 12,
MOTIONSENSE_CHIP_LIS2DH = 13,
+ MOTIONSENSE_CHIP_LSM6DSM = 14,
};
/* List of orientation positions */
diff --git a/util/ectool.c b/util/ectool.c
index eaeee132a5..28b2eeb8c4 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -3988,6 +3988,9 @@ static int cmd_motionsense(int argc, char **argv)
case MOTIONSENSE_CHIP_LIS2DH:
printf("lis2dh\n");
break;
+ case MOTIONSENSE_CHIP_LSM6DSM:
+ printf("lsm6dsm\n");
+ break;
default:
printf("unknown\n");
}