mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 16:45:13 +07:00
ac5006a2a5
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>
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
#
|
|
# Industrial I/O standalone triggers
|
|
#
|
|
# When adding new entries keep the list in alphabetical order
|
|
|
|
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
|
|
Provides support for using an interrupt of any type as an IIO
|
|
trigger. This may be provided by a gpio driver for example.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called iio-trig-interrupt.
|
|
|
|
config IIO_SYSFS_TRIGGER
|
|
tristate "SYSFS trigger"
|
|
depends on SYSFS
|
|
select IRQ_WORK
|
|
help
|
|
Provides support for using SYSFS 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-sysfs.
|
|
|
|
endmenu
|