summaryrefslogtreecommitdiff
path: root/driver/build.mk
diff options
context:
space:
mode:
authorMario Tesi <mario.tesi@st.com>2016-11-18 09:48:42 +0100
committerchrome-bot <chrome-bot@chromium.org>2017-02-09 03:10:22 -0800
commit8db50ce410cd71a6b4429fb91a3be9e103312f8f (patch)
treedef49c0684d3d0b1e10491ed475afb9ebbc1eb22 /driver/build.mk
parentb6c5e8e7a2edee6f167fe1282db6e1263fa6988e (diff)
downloadchrome-ec-8db50ce410cd71a6b4429fb91a3be9e103312f8f.tar.gz
driver: accel: Add acc driver basics and FIFO for LIS2DH/LIS2DH12
Add driver for acc sensor ST lis2dh/lis2dh12 Support interrupt management for FIFO watermark Starting to share common code with other devices like lsm6dsm/lsm6dsl (acc/gyro) or new lis2mdl (mag) TODO: Add all embedded functions support (click, tap and so on) BUG=none BRANCH=master TEST=Tested on discovery BOARD with sensor connected on EC i2c master bus. Added motion sense task on discovery board task list, added gpio info in board configuration file and tested with motion sense console commands. Data for acc seems ok: can successfully change ODR and full scale range. Also FIFO and interrupt tested Device tested is lis2dh (lis2dh12 simply differs for low pin count but share the same registers) Change-Id: I16abeac3f139a604094b38d8d8b857a62c93a242 Signed-off-by: Mario Tesi <mario.tesi@st.com> Reviewed-on: https://chromium-review.googlesource.com/412700 Commit-Ready: mario tesi <mario.tesi@st.com> Tested-by: mario tesi <mario.tesi@st.com> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'driver/build.mk')
-rw-r--r--driver/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/build.mk b/driver/build.mk
index 32da5f9686..687c5f5bba 100644
--- a/driver/build.mk
+++ b/driver/build.mk
@@ -14,6 +14,7 @@ driver-$(CONFIG_ACCELGYRO_LSM6DS0)+=accelgyro_lsm6ds0.o
driver-$(CONFIG_ACCELGYRO_BMI160)+=accelgyro_bmi160.o
driver-$(CONFIG_MAG_BMI160_BMM150)+=mag_bmm150.o
driver-$(CONFIG_ACCELGYRO_LSM6DSM)+=accelgyro_lsm6dsm.o
+driver-$(CONFIG_ACCEL_LIS2DH)+=accel_lis2dh.o stm_mems_common.o
# Gyrometers
driver-$(CONFIG_GYRO_L3GD20H)+=gyro_l3gd20h.o