summaryrefslogtreecommitdiff
path: root/drivers/iio/gyro/Kconfig
diff options
context:
space:
mode:
authorNishant Malpani <nish.malpani25@gmail.com>2020-09-10 23:34:48 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-09-13 10:51:23 +0100
commit672555807f6f62c1604f866743eaedadaa557b23 (patch)
treea514cd798e518ecc56c175ced35aeb025aafbfd4 /drivers/iio/gyro/Kconfig
parent5ac65da27ea8631d2032d47c0b9ef06c79d3446a (diff)
iio: gyro: adxrs290: Add triggered buffer support
Provide a way for continuous data capture by setting up buffer support. The data ready signal exposed at the SYNC pin of the ADXRS290 is exploited as a hardware interrupt which triggers to fill the buffer. Triggered buffer setup was tested with both hardware trigger (DATA_RDY) and software triggers (sysfs-trig & hrtimer). Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20200910180450.29696-2-nish.malpani25@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/gyro/Kconfig')
-rw-r--r--drivers/iio/gyro/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
index 024a34139875..5824f2edf975 100644
--- a/drivers/iio/gyro/Kconfig
+++ b/drivers/iio/gyro/Kconfig
@@ -44,6 +44,8 @@ config ADIS16260
config ADXRS290
tristate "Analog Devices ADXRS290 Dual-Axis MEMS Gyroscope SPI driver"
depends on SPI
+ select IIO_BUFFER
+ select IIO_TRIGGERED_BUFFER
help
Say yes here to build support for Analog Devices ADXRS290 programmable
digital output gyroscope.