Jonathan Cameron | 847ec80 | 2009-08-18 18:06:19 +0100 | [diff] [blame] | 1 | # |
| 2 | # Industrial I/O subsytem configuration |
| 3 | # |
| 4 | |
| 5 | menuconfig IIO |
| 6 | tristate "Industrial I/O support" |
Geert Uytterhoeven | 928f911 | 2011-05-31 11:37:40 +0200 | [diff] [blame] | 7 | depends on GENERIC_HARDIRQS |
Jonathan Cameron | db60697 | 2011-05-18 14:42:41 +0100 | [diff] [blame] | 8 | help |
Jonathan Cameron | 847ec80 | 2009-08-18 18:06:19 +0100 | [diff] [blame] | 9 | The industrial I/O subsystem provides a unified framework for |
| 10 | drivers for many different types of embedded sensors using a |
Randy Dunlap | 7e04638 | 2009-10-04 19:32:27 -0700 | [diff] [blame] | 11 | number of different physical interfaces (i2c, spi, etc). See |
Jonathan Cameron | db60697 | 2011-05-18 14:42:41 +0100 | [diff] [blame] | 12 | drivers/staging/iio/Documentation for more information. |
Jonathan Cameron | d1325cf | 2009-08-18 18:06:20 +0100 | [diff] [blame] | 13 | if IIO |
Jonathan Cameron | e0f8a24 | 2012-02-15 19:48:03 +0000 | [diff] [blame] | 14 | config IIO_ST_HWMON |
| 15 | tristate "Hwmon driver that uses channels specified via iio maps" |
| 16 | depends on HWMON |
| 17 | help |
| 18 | This is a platform driver that in combination with a suitable |
| 19 | map allows IIO devices to provide basic hwmon functionality |
| 20 | for those channels specified in the map. |
Jonathan Cameron | d1325cf | 2009-08-18 18:06:20 +0100 | [diff] [blame] | 21 | |
Jonathan Cameron | f2a9624 | 2011-09-21 11:15:55 +0100 | [diff] [blame] | 22 | config IIO_BUFFER |
Jonathan Cameron | db60697 | 2011-05-18 14:42:41 +0100 | [diff] [blame] | 23 | bool "Enable buffer support within IIO" |
Jonathan Cameron | 7026ea4 | 2009-08-18 18:06:24 +0100 | [diff] [blame] | 24 | help |
Jonathan Cameron | db60697 | 2011-05-18 14:42:41 +0100 | [diff] [blame] | 25 | Provide core support for various buffer based data |
Jonathan Cameron | 7026ea4 | 2009-08-18 18:06:24 +0100 | [diff] [blame] | 26 | acquisition methods. |
| 27 | |
Jonathan Cameron | f2a9624 | 2011-09-21 11:15:55 +0100 | [diff] [blame] | 28 | if IIO_BUFFER |
Jonathan Cameron | 2235acb | 2009-08-18 18:06:27 +0100 | [diff] [blame] | 29 | |
| 30 | config IIO_SW_RING |
Jonathan Cameron | d3bf812 | 2010-07-29 17:50:49 +0100 | [diff] [blame] | 31 | select IIO_TRIGGER |
Jonathan Cameron | 2235acb | 2009-08-18 18:06:27 +0100 | [diff] [blame] | 32 | tristate "Industrial I/O lock free software ring" |
| 33 | help |
Randy Dunlap | 7e04638 | 2009-10-04 19:32:27 -0700 | [diff] [blame] | 34 | Example software ring buffer implementation. The design aim |
| 35 | of this particular realization was to minimize write locking |
| 36 | with the intention that some devices would be able to write |
| 37 | in interrupt context. |
Jonathan Cameron | 2235acb | 2009-08-18 18:06:27 +0100 | [diff] [blame] | 38 | |
Jonathan Cameron | b174baf | 2011-02-11 13:09:10 +0000 | [diff] [blame] | 39 | config IIO_KFIFO_BUF |
| 40 | select IIO_TRIGGER |
| 41 | tristate "Industrial I/O buffering based on kfifo" |
| 42 | help |
| 43 | A simple fifo based on kfifo. Use this if you want a fifo |
| 44 | rather than a ring buffer. Note that this currently provides |
| 45 | no buffer events so it is up to userspace to work out how |
| 46 | often to read from the buffer. |
| 47 | |
Jonathan Cameron | f2a9624 | 2011-09-21 11:15:55 +0100 | [diff] [blame] | 48 | endif # IIO_BUFFER |
Jonathan Cameron | 2235acb | 2009-08-18 18:06:27 +0100 | [diff] [blame] | 49 | |
Jonathan Cameron | 1637db4 | 2009-08-18 18:06:26 +0100 | [diff] [blame] | 50 | config IIO_TRIGGER |
| 51 | boolean "Enable triggered sampling support" |
| 52 | help |
| 53 | Provides IIO core support for triggers. Currently these |
| 54 | are used to initialize capture of samples to push into |
| 55 | ring buffers. The triggers are effectively a 'capture |
| 56 | data now' interrupt. |
| 57 | |
Jonathan Cameron | d96d133 | 2011-05-18 14:41:18 +0100 | [diff] [blame] | 58 | config IIO_CONSUMERS_PER_TRIGGER |
| 59 | int "Maximum number of consumers per trigger" |
| 60 | depends on IIO_TRIGGER |
| 61 | default "2" |
| 62 | help |
| 63 | This value controls the maximum number of consumers that a |
| 64 | given trigger may handle. Default is 2. |
Jonathan Cameron | 7f3a1fb | 2009-08-18 18:06:30 +0100 | [diff] [blame] | 65 | |
Jonathan Cameron | 66533b4 | 2009-08-18 18:06:22 +0100 | [diff] [blame] | 66 | source "drivers/staging/iio/accel/Kconfig" |
Jonathan Cameron | d1325cf | 2009-08-18 18:06:20 +0100 | [diff] [blame] | 67 | source "drivers/staging/iio/adc/Kconfig" |
Sonic Zhang | 35f6b6b | 2010-10-27 21:43:52 -0400 | [diff] [blame] | 68 | source "drivers/staging/iio/addac/Kconfig" |
Michael Hennerich | 5c48cb9 | 2011-10-19 13:02:03 +0200 | [diff] [blame] | 69 | source "drivers/staging/iio/cdc/Kconfig" |
Barry Song | 6790e29 | 2010-10-27 21:44:07 -0400 | [diff] [blame] | 70 | source "drivers/staging/iio/dac/Kconfig" |
Cliff Cai | da6fcbd | 2010-10-27 21:44:08 -0400 | [diff] [blame] | 71 | source "drivers/staging/iio/dds/Kconfig" |
Barry Song | 089a419 | 2010-05-12 19:34:06 +0100 | [diff] [blame] | 72 | source "drivers/staging/iio/gyro/Kconfig" |
Michael Hennerich | f94aa354d | 2011-08-02 08:48:22 +0200 | [diff] [blame] | 73 | source "drivers/staging/iio/impedance-analyzer/Kconfig" |
Barry Song | 1e3864e | 2010-05-04 14:43:14 +0100 | [diff] [blame] | 74 | source "drivers/staging/iio/imu/Kconfig" |
Jonathan Cameron | 78632b6 | 2009-08-18 18:06:21 +0100 | [diff] [blame] | 75 | source "drivers/staging/iio/light/Kconfig" |
Shubhrajyoti D | b4e1782 | 2010-07-17 18:32:52 +0530 | [diff] [blame] | 76 | source "drivers/staging/iio/magnetometer/Kconfig" |
Barry Song | 09434ef | 2010-10-27 21:44:14 -0400 | [diff] [blame] | 77 | source "drivers/staging/iio/meter/Kconfig" |
Graf Yang | f46d9f1 | 2010-10-27 21:44:19 -0400 | [diff] [blame] | 78 | source "drivers/staging/iio/resolver/Kconfig" |
Jonathan Cameron | 7f3a1fb | 2009-08-18 18:06:30 +0100 | [diff] [blame] | 79 | source "drivers/staging/iio/trigger/Kconfig" |
| 80 | |
Jonathan Cameron | e647700 | 2011-10-14 16:34:14 +0100 | [diff] [blame] | 81 | config IIO_DUMMY_EVGEN |
| 82 | tristate |
| 83 | |
Jonathan Cameron | 3a84331 | 2011-10-14 16:34:13 +0100 | [diff] [blame] | 84 | config IIO_SIMPLE_DUMMY |
| 85 | tristate "An example driver with no hardware requirements" |
| 86 | help |
Jonathan Cameron | e647700 | 2011-10-14 16:34:14 +0100 | [diff] [blame] | 87 | Driver intended mainly as documentation for how to write |
| 88 | a driver. May also be useful for testing userspace code |
Justin P. Mattock | 4abf6f8 | 2012-02-29 22:00:38 -0800 | [diff] [blame] | 89 | without hardware. |
Jonathan Cameron | 3a84331 | 2011-10-14 16:34:13 +0100 | [diff] [blame] | 90 | |
Jonathan Cameron | e647700 | 2011-10-14 16:34:14 +0100 | [diff] [blame] | 91 | if IIO_SIMPLE_DUMMY |
| 92 | |
| 93 | config IIO_SIMPLE_DUMMY_EVENTS |
| 94 | boolean "Event generation support" |
| 95 | select IIO_DUMMY_EVGEN |
| 96 | help |
| 97 | Add some dummy events to the simple dummy driver. |
| 98 | |
Jonathan Cameron | 9ad2e2e | 2011-10-14 16:34:15 +0100 | [diff] [blame] | 99 | config IIO_SIMPLE_DUMMY_BUFFER |
| 100 | boolean "Buffered capture support" |
| 101 | depends on IIO_KFIFO_BUF |
| 102 | help |
| 103 | Add buffered data capture to the simple dummy driver. |
Jonathan Cameron | e647700 | 2011-10-14 16:34:14 +0100 | [diff] [blame] | 104 | |
| 105 | endif # IIO_SIMPLE_DUMMY |
Jonathan Cameron | 3a84331 | 2011-10-14 16:34:13 +0100 | [diff] [blame] | 106 | |
Jonathan Cameron | d1325cf | 2009-08-18 18:06:20 +0100 | [diff] [blame] | 107 | endif # IIO |