blob: 345395e9dc6e9feb509676e7db8a6de7b6eefc0f [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"
Arnd Bergmanncc8b49f2014-08-05 15:56:00 +01007 select ANON_INODES
Jonathan Camerona980e042012-04-25 15:54:59 +01008 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"
Harald Geyer091a1212013-12-01 15:04:00 +000069source "drivers/iio/humidity/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"
Srinivas Pandruvada098d3be2013-11-06 00:11:00 +000073source "drivers/iio/orientation/Kconfig"
Jonathan Camerone64e7d52013-04-14 12:54:00 +010074if IIO_TRIGGER
75 source "drivers/iio/trigger/Kconfig"
76endif #IIO_TRIGGER
Denis CIOCCA217494e2013-06-03 15:58:00 +010077source "drivers/iio/pressure/Kconfig"
Matt Ranostay24ddb0e2014-12-03 12:53:00 +000078source "drivers/iio/proximity/Kconfig"
Peter Meerwalde5a63942013-08-08 17:39:00 +010079source "drivers/iio/temperature/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020080
Jonathan Camerona980e042012-04-25 15:54:59 +010081endif # IIO