linux/drivers/iio/trigger
Fabrice Gasnier 90938ca432 iio: trigger: stm32-timer: add enable attribute
In order to use encoder mode, timers needs to be enabled (e.g. CEN bit)
along with peripheral clock.
Add IIO_CHAN_INFO_ENABLE attribute to handle this.
Also, in triggered mode, CEN bit is set automatically in hardware.
Then clock must be enabled before starting triggered mode.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-07-30 14:48:14 +01:00
..
iio-trig-hrtimer.c ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
iio-trig-interrupt.c iio: trigger: free trigger resource correctly 2017-01-22 16:14:21 +00:00
iio-trig-loop.c iio:trigger: Experimental kthread tight loop trigger (thread only) 2016-06-03 13:18:44 +01:00
iio-trig-sysfs.c iio: trigger: free trigger resource correctly 2017-01-22 16:14:21 +00:00
Kconfig iio: Add STM32 timer trigger driver 2017-01-25 16:11:56 +00:00
Makefile iio: Add STM32 timer trigger driver 2017-01-25 16:11:56 +00:00
stm32-timer-trigger.c iio: trigger: stm32-timer: add enable attribute 2017-07-30 14:48:14 +01:00