blob: 4011effe4c05d972959fb8fe9c3db297ee248421 [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
Christoph Jaeger6341e622014-12-20 15:41:11 -050024 bool "IIO callback buffer used for push in-kernel interfaces"
Jonathan Cameron92d10792012-06-30 20:06:00 +010025 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
Jonathan Camerona980e042012-04-25 15:54:59 +010030 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
Christoph Jaeger6341e622014-12-20 15:41:11 -050046 bool "Enable triggered sampling support"
Jonathan Camerona980e042012-04-25 15:54:59 +010047 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"
Harald Geyer091a1212013-12-01 15:04:00 +000068source "drivers/iio/humidity/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"
Srinivas Pandruvada098d3be2013-11-06 00:11:00 +000072source "drivers/iio/orientation/Kconfig"
Jonathan Camerone64e7d52013-04-14 12:54:00 +010073if IIO_TRIGGER
74 source "drivers/iio/trigger/Kconfig"
75endif #IIO_TRIGGER
Denis CIOCCA217494e2013-06-03 15:58:00 +010076source "drivers/iio/pressure/Kconfig"
Matt Ranostay24ddb0e2014-12-03 12:53:00 +000077source "drivers/iio/proximity/Kconfig"
Peter Meerwalde5a63942013-08-08 17:39:00 +010078source "drivers/iio/temperature/Kconfig"
Michael Henneriche71d42e2012-05-11 11:36:54 +020079
Jonathan Camerona980e042012-04-25 15:54:59 +010080endif # IIO