blob: 90cf0cda50c49e8f5db63298f182dd50708d3e57 [file] [log] [blame]
Jonathan Camerona980e042012-04-25 15:54:59 +01001#
Peter Meerwalde58bf532012-08-27 22:12:00 +01002# Industrial I/O subsystem configuration
Jonathan Camerona980e042012-04-25 15:54:59 +01003#
4
5menuconfig IIO
6 tristate "Industrial I/O support"
Jonathan Camerona980e042012-04-25 15:54:59 +01007 help
8 The industrial I/O subsystem provides a unified framework for
9 drivers for many different types of embedded sensors using a
Jiri Kosinaa529ae42012-06-14 15:45:09 +020010 number of different physical interfaces (i2c, spi, etc).
Jonathan Camerona980e042012-04-25 15:54:59 +010011
12if IIO
13
14config IIO_BUFFER
15 bool "Enable buffer support within IIO"
16 help
17 Provide core support for various buffer based data
18 acquisition methods.
19
20if IIO_BUFFER
21
Jonathan Cameron92d10792012-06-30 20:06:00 +010022config IIO_BUFFER_CB
23boolean "IIO callback buffer used for push in-kernel interfaces"
24 help
Peter Meerwald93232cd2013-06-23 22:28:00 +010025 Should be selected by any drivers that do in-kernel push
Jonathan Cameron92d10792012-06-30 20:06:00 +010026 usage. That is, those where the data is pushed to the consumer.
27
Jonathan Camerona980e042012-04-25 15:54:59 +010028config IIO_KFIFO_BUF
29 select IIO_TRIGGER
30 tristate "Industrial I/O buffering based on kfifo"
31 help
Peter Meerwald1b2bbe32013-06-23 22:28:00 +010032 A simple fifo based on kfifo. Note that this currently provides
Jonathan Camerona980e042012-04-25 15:54:59 +010033 no buffer events so it is up to userspace to work out how
34 often to read from the buffer.
35
Lars-Peter Clausen23f2d732012-06-18 18:33:48 +020036config 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 Camerona980e042012-04-25 15:54:59 +010043endif # IIO_BUFFER
44
45config 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 Meerwald1b2bbe32013-06-23 22:28:00 +010050 buffers. The triggers are effectively a 'capture
Jonathan Camerona980e042012-04-25 15:54:59 +010051 data now' interrupt.
52
53config 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 pandruvada45fe6f72012-09-05 13:56:00 +010061source "drivers/iio/accel/Kconfig"
Maxime Ripard0e589d52012-05-11 15:35:33 +020062source "drivers/iio/adc/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020063source "drivers/iio/amplifiers/Kconfig"
srinivas pandruvada73c67682012-09-05 13:56:00 +010064source "drivers/iio/common/Kconfig"
Lars-Peter Clausenec04cb02012-11-13 13:28:00 +000065source "drivers/iio/dac/Kconfig"
66source "drivers/iio/frequency/Kconfig"
srinivas pandruvadac5bdbef2012-09-05 13:56:00 +010067source "drivers/iio/gyro/Kconfig"
Lars-Peter Clausenec04cb02012-11-13 13:28:00 +000068source "drivers/iio/imu/Kconfig"
69source "drivers/iio/light/Kconfig"
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010070source "drivers/iio/magnetometer/Kconfig"
Jonathan Camerone64e7d52013-04-14 12:54:00 +010071if IIO_TRIGGER
72 source "drivers/iio/trigger/Kconfig"
73endif #IIO_TRIGGER
Denis CIOCCA217494e2013-06-03 15:58:00 +010074source "drivers/iio/pressure/Kconfig"
Peter Meerwalde5a63942013-08-08 17:39:00 +010075source "drivers/iio/temperature/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020076
Jonathan Camerona980e042012-04-25 15:54:59 +010077endif # IIO