diff options
author | Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | 2020-08-25 09:56:58 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-29 01:00:18 +0000 |
commit | deed6c7cd265fe0cbfd2d64e3082cd8d8b9a2f38 (patch) | |
tree | 264507561ee12e177e7261f40a9d693dba866e7a | |
parent | b5613d0f007651f9b5adeb498150bf51672984f9 (diff) | |
download | chrome-ec-deed6c7cd265fe0cbfd2d64e3082cd8d8b9a2f38.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>
-rw-r--r-- | include/ec_commands.h | 1 | ||||
-rw-r--r-- | util/ectool.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index edc0d8010f..d592dc2e18 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2589,6 +2589,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_LIS2DWL = 22, MOTIONSENSE_CHIP_LIS2DS = 23, MOTIONSENSE_CHIP_BMI260 = 24, + MOTIONSENSE_CHIP_ICM426XX = 25, MOTIONSENSE_CHIP_MAX, }; diff --git a/util/ectool.c b/util/ectool.c index 61219c6b9e..af9870dcf1 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -5113,6 +5113,9 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_CHIP_BMI260: printf("bmi260\n"); break; + case MOTIONSENSE_CHIP_ICM426XX: + printf("icm426xx\n"); + break; default: printf("unknown\n"); } |