summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/bma400.h
diff options
context:
space:
mode:
authorJagath Jog J <jagathjog1996@gmail.com>2022-05-05 16:30:17 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-11 16:35:26 +0300
commitd024af5b3970b9a9e7ae01629edf2e36827462e4 (patch)
treee7542003921f843738374b2a1218c4e62082e3e1 /drivers/iio/accel/bma400.h
parentd221de60eee374f00ede8a182ae4b3db7427c19c (diff)
downloadlinux-d024af5b3970b9a9e7ae01629edf2e36827462e4.tar.xz
iio: accel: bma400: Add step change event
Added support for event when there is a detection of step change. INT1 pin is used to interrupt and event is pushed to userspace. Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com> Link: https://lore.kernel.org/r/20220505133021.22362-7-jagathjog1996@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/bma400.h')
-rw-r--r--drivers/iio/accel/bma400.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/accel/bma400.h b/drivers/iio/accel/bma400.h
index 32c08f8b0b98..0faa40fdbbf8 100644
--- a/drivers/iio/accel/bma400.h
+++ b/drivers/iio/accel/bma400.h
@@ -39,6 +39,7 @@
#define BMA400_INT_STAT0_REG 0x0e
#define BMA400_INT_STAT1_REG 0x0f
#define BMA400_INT_STAT2_REG 0x10
+#define BMA400_INT12_MAP_REG 0x23
/* Temperature register */
#define BMA400_TEMP_DATA_REG 0x11
@@ -55,6 +56,7 @@
#define BMA400_STEP_STAT_REG 0x18
#define BMA400_STEP_INT_MSK BIT(0)
#define BMA400_STEP_RAW_LEN 0x03
+#define BMA400_STEP_STAT_MASK GENMASK(9, 8)
/*
* Read-write configuration registers