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