blob: 524380c9ae6cbb9d7fce512ea9a4b40635e8b41c [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
Peter Meerwald93232cd2013-06-23 22:28:00 +010026 Should be selected by any drivers that do in-kernel push
Jonathan Cameron92d10792012-06-30 20:06:00 +010027 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
Peter Meerwald1b2bbe32013-06-23 22:28:00 +010033 A simple fifo based on kfifo. Note that this currently provides
Jonathan Camerona980e042012-04-25 15:54:59 +010034 no buffer events so it is up to userspace to work out how
35 often to read from the buffer.
36
Lars-Peter Clausen23f2d732012-06-18 18:33:48 +020037config IIO_TRIGGERED_BUFFER
38 tristate
39 select IIO_TRIGGER
40 select IIO_KFIFO_BUF
41 help
42 Provides helper functions for setting up triggered buffers.
43
Jonathan Camerona980e042012-04-25 15:54:59 +010044endif # IIO_BUFFER
45
46config IIO_TRIGGER
47 boolean "Enable triggered sampling support"
48 help
49 Provides IIO core support for triggers. Currently these
50 are used to initialize capture of samples to push into
Peter Meerwald1b2bbe32013-06-23 22:28:00 +010051 buffers. The triggers are effectively a 'capture
Jonathan Camerona980e042012-04-25 15:54:59 +010052 data now' interrupt.
53
54config IIO_CONSUMERS_PER_TRIGGER
55 int "Maximum number of consumers per trigger"
56 depends on IIO_TRIGGER
57 default "2"
58 help
59 This value controls the maximum number of consumers that a
60 given trigger may handle. Default is 2.
61
srinivas pandruvada45fe6f72012-09-05 13:56:00 +010062source "drivers/iio/accel/Kconfig"
Maxime Ripard0e589d52012-05-11 15:35:33 +020063source "drivers/iio/adc/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020064source "drivers/iio/amplifiers/Kconfig"
srinivas pandruvada73c67682012-09-05 13:56:00 +010065source "drivers/iio/common/Kconfig"
Lars-Peter Clausenec04cb02012-11-13 13:28:00 +000066source "drivers/iio/dac/Kconfig"
67source "drivers/iio/frequency/Kconfig"
srinivas pandruvadac5bdbef2012-09-05 13:56:00 +010068source "drivers/iio/gyro/Kconfig"
Lars-Peter Clausenec04cb02012-11-13 13:28:00 +000069source "drivers/iio/imu/Kconfig"
70source "drivers/iio/light/Kconfig"
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010071source "drivers/iio/magnetometer/Kconfig"
Jonathan Camerone64e7d52013-04-14 12:54:00 +010072if IIO_TRIGGER
73 source "drivers/iio/trigger/Kconfig"
74endif #IIO_TRIGGER
Denis CIOCCA217494e2013-06-03 15:58:00 +010075source "drivers/iio/pressure/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020076
Jonathan Camerona980e042012-04-25 15:54:59 +010077endif # IIO