From f551f050e1254a9aab9a0a997dbde71f84fe1fad 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/+/2600804 Tested-by: David Huang Auto-Submit: David Huang Reviewed-by: YH Lin Commit-Queue: YH Lin --- 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 94edd18db4..9650701695 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2434,6 +2434,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_TCS3400 = 20, MOTIONSENSE_CHIP_LIS2DW12 = 21, MOTIONSENSE_CHIP_LIS2DWL = 22, + MOTIONSENSE_CHIP_ICM426XX = 25, MOTIONSENSE_CHIP_MAX, }; diff --git a/util/ectool.c b/util/ectool.c index 057c261ed3..294c00e903 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -4304,6 +4304,9 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_CHIP_LIS2DWL: printf("lis2dwl\n"); break; + case MOTIONSENSE_CHIP_ICM426XX: + printf("icm426xx\n"); + break; default: printf("unknown\n"); } -- cgit v1.2.1