diff options
author | Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | 2020-08-25 09:56:58 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-07 15:41:27 +0000 |
commit | f551f050e1254a9aab9a0a997dbde71f84fe1fad (patch) | |
tree | 52a1f1d4390f04400606929c974a20034ae66bf3 | |
parent | cef49c7810418f39af60358bf32dc0326c42f962 (diff) | |
download | chrome-ec-f551f050e1254a9aab9a0a997dbde71f84fe1fad.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/+/2600804
Tested-by: David Huang <david.huang@quanta.corp-partner.google.com>
Auto-Submit: David Huang <david.huang@quanta.corp-partner.google.com>
Reviewed-by: YH Lin <yueherngl@chromium.org>
Commit-Queue: YH Lin <yueherngl@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 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"); } |