From 6779848657b5da5c6f16320d4de6768397c896be Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Maneyrol Date: Tue, 25 Aug 2020 09:56:58 +0000 Subject: 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 Change-Id: I07736d61bdb7332bfdc44c8f7294233e43a6e00d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2374647 Reviewed-by: Gwendal Grignou Commit-Queue: Gwendal Grignou Tested-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2584557 Commit-Queue: Zhuohao Lee Tested-by: David Huang Auto-Submit: David Huang Reviewed-by: Zhuohao Lee --- include/ec_commands.h | 1 + util/ectool.c | 3 +++ 2 files changed, 4 insertions(+) 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"); } -- cgit v1.2.1