summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMario Tesi <mario.tesi@st.com>2017-04-19 10:32:05 +0200
committerCommit Bot <commit-bot@chromium.org>2020-03-27 17:31:41 +0000
commit21b0abea499c4b7d9638c86f1e8284711493f6a5 (patch)
treef3de9ee4ed692280a60aeaee35baa35ce0251d07 /include
parentd4bc8b52d0562e1a05baea2531f735f5e3b723f4 (diff)
downloadchrome-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 'include')
-rw-r--r--include/config.h2
-rw-r--r--include/ec_commands.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index dc137bac87..1b6e27cc90 100644
--- a/include/config.h
+++ b/include/config.h
@@ -82,6 +82,7 @@
*/
#undef CONFIG_ACCEL_LIS2DE
#undef CONFIG_ACCEL_LIS2DH
+#undef CONFIG_ACCEL_LIS2DS
#undef CONFIG_ACCEL_LNG2DM
#undef CONFIG_ACCEL_LIS2D_COMMON
@@ -311,6 +312,7 @@
#undef CONFIG_ACCELGYRO_BMI160_INT_EVENT
#undef CONFIG_ACCEL_LSM6DSM_INT_EVENT
#undef CONFIG_ACCEL_LSM6DSO_INT_EVENT
+#undef CONFIG_ACCEL_LIS2DS_INT_EVENT
#undef CONFIG_ACCEL_LIS2DW12_INT_EVENT
#undef CONFIG_ALS_SI114X_INT_EVENT
#undef CONFIG_ALS_TCS3400_INT_EVENT
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 055432a431..b43fdd0812 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2575,6 +2575,7 @@ enum motionsensor_chip {
MOTIONSENSE_CHIP_TCS3400 = 20,
MOTIONSENSE_CHIP_LIS2DW12 = 21,
MOTIONSENSE_CHIP_LIS2DWL = 22,
+ MOTIONSENSE_CHIP_LIS2DS = 23,
MOTIONSENSE_CHIP_MAX,
};