Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 1 | # |
| 2 | # Industrial I/O subsytem configuration |
| 3 | # |
| 4 | |
| 5 | menuconfig IIO |
| 6 | tristate "Industrial I/O support" |
| 7 | depends on GENERIC_HARDIRQS |
| 8 | help |
| 9 | The industrial I/O subsystem provides a unified framework for |
| 10 | drivers for many different types of embedded sensors using a |
Jiri Kosina | a529ae4 | 2012-06-14 15:45:09 +0200 | [diff] [blame] | 11 | number of different physical interfaces (i2c, spi, etc). |
Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 12 | |
| 13 | if IIO |
| 14 | |
| 15 | config IIO_BUFFER |
| 16 | bool "Enable buffer support within IIO" |
| 17 | help |
| 18 | Provide core support for various buffer based data |
| 19 | acquisition methods. |
| 20 | |
| 21 | if IIO_BUFFER |
| 22 | |
| 23 | config IIO_KFIFO_BUF |
| 24 | select IIO_TRIGGER |
| 25 | tristate "Industrial I/O buffering based on kfifo" |
| 26 | help |
| 27 | A simple fifo based on kfifo. Use this if you want a fifo |
| 28 | rather than a ring buffer. Note that this currently provides |
| 29 | no buffer events so it is up to userspace to work out how |
| 30 | often to read from the buffer. |
| 31 | |
Lars-Peter Clausen | 23f2d73 | 2012-06-18 18:33:48 +0200 | [diff] [blame] | 32 | config IIO_TRIGGERED_BUFFER |
| 33 | tristate |
| 34 | select IIO_TRIGGER |
| 35 | select IIO_KFIFO_BUF |
| 36 | help |
| 37 | Provides helper functions for setting up triggered buffers. |
| 38 | |
Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 39 | endif # IIO_BUFFER |
| 40 | |
| 41 | config IIO_TRIGGER |
| 42 | boolean "Enable triggered sampling support" |
| 43 | help |
| 44 | Provides IIO core support for triggers. Currently these |
| 45 | are used to initialize capture of samples to push into |
| 46 | ring buffers. The triggers are effectively a 'capture |
| 47 | data now' interrupt. |
| 48 | |
| 49 | config IIO_CONSUMERS_PER_TRIGGER |
| 50 | int "Maximum number of consumers per trigger" |
| 51 | depends on IIO_TRIGGER |
| 52 | default "2" |
| 53 | help |
| 54 | This value controls the maximum number of consumers that a |
| 55 | given trigger may handle. Default is 2. |
| 56 | |
Maxime Ripard | 0e589d5 | 2012-05-11 15:35:33 +0200 | [diff] [blame] | 57 | source "drivers/iio/adc/Kconfig" |
Michael Hennerich | e71d42e | 2012-05-11 11:36:54 +0200 | [diff] [blame] | 58 | source "drivers/iio/amplifiers/Kconfig" |
Johan Hovold | 9c8ea1b | 2012-05-21 14:18:06 +0200 | [diff] [blame] | 59 | source "drivers/iio/light/Kconfig" |
Michael Hennerich | cd1678f | 2012-05-29 12:41:19 +0200 | [diff] [blame] | 60 | source "drivers/iio/frequency/Kconfig" |
Lars-Peter Clausen | dbdc025 | 2012-06-04 11:36:28 +0200 | [diff] [blame] | 61 | source "drivers/iio/dac/Kconfig" |
Michael Hennerich | e71d42e | 2012-05-11 11:36:54 +0200 | [diff] [blame] | 62 | |
Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 63 | endif # IIO |