Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 1 | # |
Peter Meerwald | e58bf53 | 2012-08-27 22:12:00 +0100 | [diff] [blame] | 2 | # Industrial I/O subsystem configuration |
Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 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 | |
Jonathan Cameron | 92d1079 | 2012-06-30 20:06:00 +0100 | [diff] [blame] | 23 | config IIO_BUFFER_CB |
| 24 | boolean "IIO callback buffer used for push in-kernel interfaces" |
| 25 | help |
| 26 | Should be selected by any drivers that do-inkernel push |
| 27 | usage. That is, those where the data is pushed to the consumer. |
| 28 | |
Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 29 | config IIO_KFIFO_BUF |
| 30 | select IIO_TRIGGER |
| 31 | tristate "Industrial I/O buffering based on kfifo" |
| 32 | help |
| 33 | A simple fifo based on kfifo. Use this if you want a fifo |
| 34 | rather than a ring buffer. Note that this currently provides |
| 35 | no buffer events so it is up to userspace to work out how |
| 36 | often to read from the buffer. |
| 37 | |
Lars-Peter Clausen | 23f2d73 | 2012-06-18 18:33:48 +0200 | [diff] [blame] | 38 | config IIO_TRIGGERED_BUFFER |
| 39 | tristate |
| 40 | select IIO_TRIGGER |
| 41 | select IIO_KFIFO_BUF |
| 42 | help |
| 43 | Provides helper functions for setting up triggered buffers. |
| 44 | |
Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 45 | endif # IIO_BUFFER |
| 46 | |
| 47 | config IIO_TRIGGER |
| 48 | boolean "Enable triggered sampling support" |
| 49 | help |
| 50 | Provides IIO core support for triggers. Currently these |
| 51 | are used to initialize capture of samples to push into |
| 52 | ring buffers. The triggers are effectively a 'capture |
| 53 | data now' interrupt. |
| 54 | |
| 55 | config IIO_CONSUMERS_PER_TRIGGER |
| 56 | int "Maximum number of consumers per trigger" |
| 57 | depends on IIO_TRIGGER |
| 58 | default "2" |
| 59 | help |
| 60 | This value controls the maximum number of consumers that a |
| 61 | given trigger may handle. Default is 2. |
| 62 | |
srinivas pandruvada | 45fe6f7 | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 63 | source "drivers/iio/accel/Kconfig" |
Maxime Ripard | 0e589d5 | 2012-05-11 15:35:33 +0200 | [diff] [blame] | 64 | source "drivers/iio/adc/Kconfig" |
Michael Hennerich | e71d42e | 2012-05-11 11:36:54 +0200 | [diff] [blame] | 65 | source "drivers/iio/amplifiers/Kconfig" |
srinivas pandruvada | 73c6768 | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 66 | source "drivers/iio/common/Kconfig" |
Lars-Peter Clausen | ec04cb0 | 2012-11-13 13:28:00 +0000 | [diff] [blame^] | 67 | source "drivers/iio/dac/Kconfig" |
| 68 | source "drivers/iio/frequency/Kconfig" |
srinivas pandruvada | c5bdbef | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 69 | source "drivers/iio/gyro/Kconfig" |
Lars-Peter Clausen | ec04cb0 | 2012-11-13 13:28:00 +0000 | [diff] [blame^] | 70 | source "drivers/iio/imu/Kconfig" |
| 71 | source "drivers/iio/light/Kconfig" |
srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 72 | source "drivers/iio/magnetometer/Kconfig" |
Michael Hennerich | e71d42e | 2012-05-11 11:36:54 +0200 | [diff] [blame] | 73 | |
Jonathan Cameron | a980e04 | 2012-04-25 15:54:59 +0100 | [diff] [blame] | 74 | endif # IIO |