diff options
author | Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | 2020-08-25 09:56:58 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-22 07:31:53 +0000 |
commit | 6779848657b5da5c6f16320d4de6768397c896be (patch) | |
tree | 34a005a633de6df50387eabbf5bea211833e102f | |
parent | 8f49f9313358785f0f49010cb7ab91f49b40e236 (diff) | |
download | chrome-ec-6779848657b5da5c6f16320d4de6768397c896be.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/+/2584557
Commit-Queue: Zhuohao Lee <zhuohao@chromium.org>
Tested-by: David Huang <david.huang@quanta.corp-partner.google.com>
Auto-Submit: David Huang <david.huang@quanta.corp-partner.google.com>
Reviewed-by: Zhuohao Lee <zhuohao@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 1f43bff89b..29c3cc190f 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2421,6 +2421,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_LSM6DSM = 14, MOTIONSENSE_CHIP_LIS2DE = 15, MOTIONSENSE_CHIP_LIS2MDL = 16, + MOTIONSENSE_CHIP_ICM426XX = 25, MOTIONSENSE_CHIP_MAX, }; diff --git a/util/ectool.c b/util/ectool.c index 80f62c90ba..71d9b395cd 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -4407,6 +4407,9 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_CHIP_LIS2MDL: printf("lis2mdl\n"); break; + case MOTIONSENSE_CHIP_ICM426XX: + printf("icm426xx\n"); + break; default: printf("unknown\n"); } |