summaryrefslogtreecommitdiffstats
path: root/drivers/iio/Kconfig
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@intel.com>2015-11-09 08:14:00 +0100
committerJonathan Cameron <jic23@kernel.org>2015-12-03 19:19:27 +0100
commitb662f809d41009749a9ee6f9a4db3d9af579e171 (patch)
tree0659aafbf7c3d51b871467f79f73f241f1e555cc /drivers/iio/Kconfig
parentiio: core: Introduce IIO configfs support (diff)
downloadlinux-b662f809d41009749a9ee6f9a4db3d9af579e171.tar.xz
linux-b662f809d41009749a9ee6f9a4db3d9af579e171.zip
iio: core: Introduce IIO software triggers
A software trigger associates an IIO device trigger with a software interrupt source (e.g: timer, sysfs). This patch adds the generic infrastructure for handling software triggers. Software interrupts sources are kept in a iio_trigger_types_list and registered separately when the associated kernel module is loaded. Software triggers can be created directly from drivers or from user space via configfs interface. To sum up, this dynamically creates "triggers" group to be found under /config/iio/triggers and offers the possibility of dynamically creating trigger types groups. The first supported trigger type is "hrtimer" found under /config/iio/triggers/hrtimer. Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/Kconfig')
-rw-r--r--drivers/iio/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig
index 9509b8a4c551..ac8715e56ba1 100644
--- a/drivers/iio/Kconfig
+++ b/drivers/iio/Kconfig
@@ -46,6 +46,14 @@ config IIO_CONSUMERS_PER_TRIGGER
This value controls the maximum number of consumers that a
given trigger may handle. Default is 2.
+config IIO_SW_TRIGGER
+ tristate "Enable software triggers support"
+ select IIO_CONFIGFS
+ help
+ Provides IIO core support for software triggers. A software
+ trigger can be created via configfs or directly by a driver
+ using the API provided.
+
config IIO_TRIGGERED_EVENT
tristate
select IIO_TRIGGER