Skip to contentSkip to conversation

IIO: trigger: New Blackfin specific trigger driver iio-trig-bfin-timer

PATCH New [email protected] 1 participant 1 message Feb 23, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IIO: trigger: New Blackfin specific trigger driver iio-trig-bfin-timer

From: Michael Hennerich <[email protected]>

This driver allows any Blackfin system timer to be used as IIO trigger. It supports trigger rates from 0 to 100kHz in Hz resolution.

Changes since V1:
IIO: trigger: Apply review feedback

Add comment explaining Blackfin hardware timer configurations Fix frequency_store, don't return -EINVAL for frequency set to 0

---
 drivers/staging/iio/trigger/Kconfig               |   10 +
 drivers/staging/iio/trigger/Makefile              |    1 +
 drivers/staging/iio/trigger/iio-trig-bfin-timer.c |  252 +++++++++++++++++++++
 3 files changed, 263 insertions(+), 0 deletions(-)
 create mode 100644 drivers/staging/iio/trigger/iio-trig-bfin-timer.c
drivers/staging/iio/trigger/Kconfig +10 -0
index 3a82013..c33777e 100644
@@ -28,4 +28,14 @@ config IIO_SYSFS_TRIGGER
 	  To compile this driver as a module, choose M here: the
 	  module will be called iio-trig-sysfs.
 
+config IIO_BFIN_TMR_TRIGGER
+	tristate "Blackfin TIMER trigger"
+	depends on BLACKFIN
+	help
+	  Provides support for using a Blackfin timer 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-bfin-timer.
+
 endif # IIO_TRIGGER
drivers/staging/iio/trigger/Makefile +1 -0
index 504b9c0..b088b57 100644
@@ -5,3 +5,4 @@
 obj-$(CONFIG_IIO_PERIODIC_RTC_TRIGGER) += iio-trig-periodic-rtc.o
 obj-$(CONFIG_IIO_GPIO_TRIGGER) += iio-trig-gpio.o
 obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o
+obj-$(CONFIG_IIO_BFIN_TMR_TRIGGER) += iio-trig-bfin-timer.o
drivers/staging/iio/trigger/iio-trig-bfin-timer.c new file +252 -0

252 lines not on this page · raw message

--
1.6.0.2