diff options
author | Mario Tesi <mario.tesi@st.com> | 2017-04-19 10:32:05 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-27 17:31:41 +0000 |
commit | 21b0abea499c4b7d9638c86f1e8284711493f6a5 (patch) | |
tree | f3de9ee4ed692280a60aeaee35baa35ce0251d07 /util/ectool.c | |
parent | d4bc8b52d0562e1a05baea2531f735f5e3b723f4 (diff) | |
download | chrome-ec-21b0abea499c4b7d9638c86f1e8284711493f6a5.tar.gz |
driver: lis2ds12: Add driver support
Added ACC LIS2DS/LIS2DS12 driver support.
Features included:
- FIFO support with watermark interrupt events
- Uses shared function with other ST MEMs devices
BUG=none
BRANCH=master
TEST=Tested on discovery_stmems target BOARD with LIS2DS
connected to EC i2c master bus and motion sense task running.
All basic features tested including changing in ODR and Full
Scale Range. Also tested FIFO features and interrupt management.
Change-Id: I8a9e96f59ebdca7e622cff29676c5e1a9e0d58f5
Signed-off-by: Mario Tesi <mario.tesi@st.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/481480
Commit-Queue: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: Inno.Park <ih.yoo.park@samsung.corp-partner.google.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'util/ectool.c')
-rw-r--r-- | util/ectool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c index fe681b675f..63b8477db1 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -5036,6 +5036,9 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_CHIP_LIS2DWL: printf("lis2dwl\n"); break; + case MOTIONSENSE_CHIP_LIS2DS: + printf("lis2ds\n"); + break; default: printf("unknown\n"); } |