summaryrefslogtreecommitdiff
path: root/drivers/iio/trigger/Kconfig
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2015-11-09 07:14:01 (GMT)
committerJonathan Cameron <jic23@kernel.org>2015-12-03 18:19:27 (GMT)
commitac5006a2a558a2441a840c7be1e0e717839d5e07 (patch)
tree5c285709eb45eb37cbdfa4e7f7661d790b646555 /drivers/iio/trigger/Kconfig
parentb662f809d41009749a9ee6f9a4db3d9af579e171 (diff)
downloadlinux-ac5006a2a558a2441a840c7be1e0e717839d5e07.tar.xz
iio: trigger: Introduce IIO hrtimer based trigger
This patch registers a new IIO software trigger interrupt source based on high resolution timers. Notice that if configfs is enabled we create sampling_frequency attribute allowing users to change hrtimer period (1/sampling_frequency). The IIO hrtimer trigger has a long history, this patch is based on an older version from Marten and Lars-Peter. Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/trigger/Kconfig')
-rw-r--r--drivers/iio/trigger/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/iio/trigger/Kconfig b/drivers/iio/trigger/Kconfig
index 7999612..519e677 100644
--- a/drivers/iio/trigger/Kconfig
+++ b/drivers/iio/trigger/Kconfig
@@ -5,6 +5,16 @@
menu "Triggers - standalone"
+config IIO_HRTIMER_TRIGGER
+ tristate "High resolution timer trigger"
+ depends on IIO_SW_TRIGGER
+ help
+ Provides a frequency based IIO trigger using high resolution
+ timers as interrupt source.
+
+ To compile this driver as a module, choose M here: the
+ module will be called iio-trig-hrtimer.
+
config IIO_INTERRUPT_TRIGGER
tristate "Generic interrupt trigger"
help