diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2015-11-09 08:14:01 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-12-03 19:19:27 +0100 |
commit | ac5006a2a558a2441a840c7be1e0e717839d5e07 (patch) | |
tree | 5c285709eb45eb37cbdfa4e7f7661d790b646555 /drivers/iio/trigger/Kconfig | |
parent | iio: core: Introduce IIO software triggers (diff) | |
download | linux-ac5006a2a558a2441a840c7be1e0e717839d5e07.tar.xz linux-ac5006a2a558a2441a840c7be1e0e717839d5e07.zip |
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/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/iio/trigger/Kconfig b/drivers/iio/trigger/Kconfig index 79996123a71b..519e6772f6f5 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 |