Added hrtimer trigger support
Hi guys,
Added hrtimer trigger support for iio framework.
Thanks,
Denis
PATCH 1/1 iio:trigger: Added iio-hrtimer-trigger
This patch adds high resolution timer trigger support for iio framework.
Signed-off-by Denis Ciocca <[email protected]>
--- 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
@@ -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
@@ -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