iio: trigger: Introduce IIO hrtimer based trigger
authorDaniel Baluta <daniel.baluta@intel.com>
Mon, 9 Nov 2015 07:14:01 +0000 (09:14 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 3 Dec 2015 18:19:27 +0000 (18:19 +0000)
commitac5006a2a558a2441a840c7be1e0e717839d5e07
tree5c285709eb45eb37cbdfa4e7f7661d790b646555
parentb662f809d41009749a9ee6f9a4db3d9af579e171
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>
drivers/iio/trigger/Kconfig
drivers/iio/trigger/Makefile
drivers/iio/trigger/iio-trig-hrtimer.c [new file with mode: 0644]