summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>2020-08-25 09:56:58 +0000
committerCommit Bot <commit-bot@chromium.org>2021-01-08 01:21:43 +0000
commitd25840b3c217dddc12c8cdfdcac641840415421e (patch)
tree6b9c63998f8ba0f05d5c056a5beb0232ce2583f9
parente1d71c2be2740c25f5d567e6d1e26c84e35c60a2 (diff)
downloadchrome-ec-d25840b3c217dddc12c8cdfdcac641840415421e.tar.gz
driver: add icm426xx chip type define
Add new enum motionsensor_chip and update ectool motionsense. BUG=chromium:1117541 BRANCH=None TEST=ectool motionsense info Cq-Depend: chromium:2317888 Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Change-Id: I07736d61bdb7332bfdc44c8f7294233e43a6e00d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2374647 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org> Tested-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2598311 Reviewed-by: YH Lin <yueherngl@chromium.org> Tested-by: David Huang <david.huang@quanta.corp-partner.google.com> Commit-Queue: YH Lin <yueherngl@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 2883eb5eb6..0ac13fe7ca 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2308,6 +2308,7 @@ enum motionsensor_chip {
MOTIONSENSE_CHIP_LIS2DH = 13,
MOTIONSENSE_CHIP_LSM6DSM = 14,
MOTIONSENSE_CHIP_LIS2DE = 15,
+ MOTIONSENSE_CHIP_ICM426XX = 25,
MOTIONSENSE_CHIP_MAX,
};
diff --git a/util/ectool.c b/util/ectool.c
index 7bedb18226..181dd60b52 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -4035,6 +4035,9 @@ static int cmd_motionsense(int argc, char **argv)
case MOTIONSENSE_CHIP_LIS2DE:
printf("lis2de\n");
break;
+ case MOTIONSENSE_CHIP_ICM426XX:
+ printf("icm426xx\n");
+ break;
default:
printf("unknown\n");
}