diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2017-01-26 15:28:30 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-01-28 19:24:12 +0100 |
commit | f24a33b3e2a393856c315b23bbb5bebf422b0611 (patch) | |
tree | ed334b480eeb0951e148b03ae2f25a0454c76f3c /drivers/iio/adc/Kconfig | |
parent | iio: adc: stm32: add support for triggered buffer mode (diff) | |
download | linux-f24a33b3e2a393856c315b23bbb5bebf422b0611.tar.xz linux-f24a33b3e2a393856c315b23bbb5bebf422b0611.zip |
iio: adc: stm32: Enable use of stm32 timer triggers
STM32 ADC has external timer trigger sources. Use stm32 timer triggers
API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to
validate a trigger can be used.
This also provides correct trigger selection value (e.g. extsel).
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/Kconfig')
-rw-r--r-- | drivers/iio/adc/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 69e6cc4b40bf..210fa116842b 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -500,6 +500,8 @@ config STM32_ADC_CORE depends on OF depends on REGULATOR select IIO_BUFFER + select MFD_STM32_TIMERS + select IIO_STM32_TIMER_TRIGGER select IIO_TRIGGERED_BUFFER help Select this option to enable the core driver for STMicroelectronics |