diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2018-12-03 12:17:25 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2019-02-11 04:47:28 +0000 |
commit | a2cb7080f23aa4e6442400227fd14818800502a7 (patch) | |
tree | 5bded654adac68e80eebdf23bfc4e4a703819eea | |
parent | 14a5d41c6d1e82f47ed1545e703b23843b0eab18 (diff) | |
download | chrome-ec-a2cb7080f23aa4e6442400227fd14818800502a7.tar.gz |
ec_commands: Add missing definition for LIS2MDL
BUG=b:110143516,b:115587004
BRANCH=none
TEST=Check ectool display the proper chip in ectool motionsense info 3.
Change-Id: I236bd7f50d6edadbc5b2f238eb6882bd6fffc82d
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/1361990
Tested-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
(cherry picked from commit e84e5b983370cc5349dbd18d3380b09ff8fa3f31)
Reviewed-on: https://chromium-review.googlesource.com/c/1460282
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Commit-Queue: Justin TerAvest <teravest@chromium.org>
Tested-by: Justin TerAvest <teravest@chromium.org>
Trybot-Ready: Justin TerAvest <teravest@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 3f50a2628a..2becaecdce 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2417,6 +2417,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_LIS2DH = 13, MOTIONSENSE_CHIP_LSM6DSM = 14, MOTIONSENSE_CHIP_LIS2DE = 15, + MOTIONSENSE_CHIP_LIS2MDL = 16, MOTIONSENSE_CHIP_MAX, }; diff --git a/util/ectool.c b/util/ectool.c index 51cfd37d7b..64bbf86c67 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -4340,6 +4340,9 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_CHIP_LIS2DE: printf("lis2de\n"); break; + case MOTIONSENSE_CHIP_LIS2MDL: + printf("lis2mdl\n"); + break; default: printf("unknown\n"); } |