summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}