blob: b2f963be39937d2f6fe0775f5c9510866e69f4ea [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"
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 Kosinaa529ae42012-06-14 15:45:09 +020011 number of different physical interfaces (i2c, spi, etc).
Jonathan Camerona980e042012-04-25 15:54:59 +010012
13if IIO
14
15config IIO_BUFFER
16 bool "Enable buffer support within IIO"
17 help
18 Provide core support for various buffer based data
19 acquisition methods.
20
21if IIO_BUFFER
22
Jonathan Cameron92d10792012-06-30 20:06:00 +010023config IIO_BUFFER_CB
24boolean "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 Camerona980e042012-04-25 15:54:59 +010029config 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 Clausen23f2d732012-06-18 18:33:48 +020038config 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 Camerona980e042012-04-25 15:54:59 +010045endif # IIO_BUFFER
46
47config 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
55config 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 pandruvada45fe6f72012-09-05 13:56:00 +010063source "drivers/iio/accel/Kconfig"
Maxime Ripard0e589d52012-05-11 15:35:33 +020064source "drivers/iio/adc/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020065source "drivers/iio/amplifiers/Kconfig"
srinivas pandruvada73c67682012-09-05 13:56:00 +010066source "drivers/iio/common/Kconfig"
Lars-Peter Clausenec04cb02012-11-13 13:28:00 +000067source "drivers/iio/dac/Kconfig"
68source "drivers/iio/frequency/Kconfig"
srinivas pandruvadac5bdbef2012-09-05 13:56:00 +010069source "drivers/iio/gyro/Kconfig"
Lars-Peter Clausenec04cb02012-11-13 13:28:00 +000070source "drivers/iio/imu/Kconfig"
71source "drivers/iio/light/Kconfig"
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010072source "drivers/iio/magnetometer/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020073
Jonathan Camerona980e042012-04-25 15:54:59 +010074endif # IIO