blob: e6235d172cb76a159906daa3bed68660a945c29e [file] [log] [blame]
Jonathan Cameron847ec802009-08-18 18:06:19 +01001#
2# Industrial I/O subsytem configuration
3#
4
5menuconfig IIO
6 tristate "Industrial I/O support"
Jeff Mahoney1c115eb2009-10-08 17:32:42 -04007 depends on !S390
Jonathan Cameron847ec802009-08-18 18:06:19 +01008 ---help---
9 The industrial I/O subsystem provides a unified framework for
10 drivers for many different types of embedded sensors using a
Randy Dunlap7e046382009-10-04 19:32:27 -070011 number of different physical interfaces (i2c, spi, etc). See
Jonathan Cameron847ec802009-08-18 18:06:19 +010012 Documentation/industrialio for more information.
Jonathan Camerond1325cf2009-08-18 18:06:20 +010013if IIO
14
Jonathan Cameron7026ea42009-08-18 18:06:24 +010015config IIO_RING_BUFFER
16 bool "Enable ring buffer support within IIO"
17 help
18 Provide core support for various ring buffer based data
19 acquisition methods.
20
Jonathan Cameron2235acb2009-08-18 18:06:27 +010021if IIO_RING_BUFFER
22
23config IIO_SW_RING
Jonathan Camerond3bf8122010-07-29 17:50:49 +010024 select IIO_TRIGGER
Jonathan Cameron2235acb2009-08-18 18:06:27 +010025 tristate "Industrial I/O lock free software ring"
26 help
Randy Dunlap7e046382009-10-04 19:32:27 -070027 Example software ring buffer implementation. The design aim
28 of this particular realization was to minimize write locking
29 with the intention that some devices would be able to write
30 in interrupt context.
Jonathan Cameron2235acb2009-08-18 18:06:27 +010031
Jonathan Cameronb174baf2011-02-11 13:09:10 +000032config IIO_KFIFO_BUF
33 select IIO_TRIGGER
34 tristate "Industrial I/O buffering based on kfifo"
35 help
36 A simple fifo based on kfifo. Use this if you want a fifo
37 rather than a ring buffer. Note that this currently provides
38 no buffer events so it is up to userspace to work out how
39 often to read from the buffer.
40
Jonathan Cameron2235acb2009-08-18 18:06:27 +010041endif # IIO_RINGBUFFER
42
Jonathan Cameron1637db42009-08-18 18:06:26 +010043config IIO_TRIGGER
44 boolean "Enable triggered sampling support"
45 help
46 Provides IIO core support for triggers. Currently these
47 are used to initialize capture of samples to push into
48 ring buffers. The triggers are effectively a 'capture
49 data now' interrupt.
50
Jonathan Camerond96d1332011-05-18 14:41:18 +010051config IIO_CONSUMERS_PER_TRIGGER
52 int "Maximum number of consumers per trigger"
53 depends on IIO_TRIGGER
54 default "2"
55 help
56 This value controls the maximum number of consumers that a
57 given trigger may handle. Default is 2.
Jonathan Cameron7f3a1fb2009-08-18 18:06:30 +010058
Jonathan Cameron66533b42009-08-18 18:06:22 +010059source "drivers/staging/iio/accel/Kconfig"
Jonathan Camerond1325cf2009-08-18 18:06:20 +010060source "drivers/staging/iio/adc/Kconfig"
Sonic Zhang35f6b6b2010-10-27 21:43:52 -040061source "drivers/staging/iio/addac/Kconfig"
Barry Song6790e292010-10-27 21:44:07 -040062source "drivers/staging/iio/dac/Kconfig"
Cliff Caida6fcbd2010-10-27 21:44:08 -040063source "drivers/staging/iio/dds/Kconfig"
Barry Song089a4192010-05-12 19:34:06 +010064source "drivers/staging/iio/gyro/Kconfig"
Barry Song1e3864e2010-05-04 14:43:14 +010065source "drivers/staging/iio/imu/Kconfig"
Jonathan Cameron78632b62009-08-18 18:06:21 +010066source "drivers/staging/iio/light/Kconfig"
Shubhrajyoti Db4e17822010-07-17 18:32:52 +053067source "drivers/staging/iio/magnetometer/Kconfig"
Barry Song09434ef2010-10-27 21:44:14 -040068source "drivers/staging/iio/meter/Kconfig"
Graf Yangf46d9f12010-10-27 21:44:19 -040069source "drivers/staging/iio/resolver/Kconfig"
Jonathan Cameron7f3a1fb2009-08-18 18:06:30 +010070source "drivers/staging/iio/trigger/Kconfig"
71
Jonathan Camerond1325cf2009-08-18 18:06:20 +010072endif # IIO