Skip to contentSkip to conversation

Added hrtimer trigger support

PATCH New Denis CIOCCA 1 participant 2 messages Sep 23, 2013 IIO

lore
Share & tools
lore
#0 lore raw

Hi guys,

Added hrtimer trigger support for iio framework.
Thanks,
Denis

#1 lore raw

PATCH 1/1 iio:trigger: Added iio-hrtimer-trigger

This patch adds high resolution timer trigger support for iio framework.

---
 drivers/iio/trigger/Kconfig            |   11 ++
 drivers/iio/trigger/Makefile           |    1 +
 drivers/iio/trigger/iio-trig-hrtimer.c |  282 ++++++++++++++++++++++++++++++++
 3 files changed, 294 insertions(+)
 create mode 100644 drivers/iio/trigger/iio-trig-hrtimer.c
drivers/iio/trigger/Kconfig +11 -0
index 7999612..ba1d308 100644
@@ -25,4 +25,15 @@ config IIO_SYSFS_TRIGGER
 	  To compile this driver as a module, choose M here: the
 	  module will be called iio-trig-sysfs.
 
+config IIO_HRTIMER_TRIGGER
+	tristate "HRTIMER trigger"
+	#depends on HRTIMER
+	select IRQ_WORK
+	help
+	  Provides support for using HRTIMER entries as IIO triggers.
+	  If unsure, say N (but it's safe to say "Y").
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called iio-trig-hrtimer.
+
 endmenu
drivers/iio/trigger/Makefile +1 -0
index 0694dae..4e1876d 100644
@@ -5,3 +5,4 @@
 # When adding new entries keep the list in alphabetical order
 obj-$(CONFIG_IIO_INTERRUPT_TRIGGER) += iio-trig-interrupt.o
 obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o
+obj-$(CONFIG_IIO_HRTIMER_TRIGGER) += iio-trig-hrtimer.o
drivers/iio/trigger/iio-trig-hrtimer.c new file +282 -0

282 lines not on this page · raw message

Signature · 1 line
1.7.9.5