xref: /openbmc/linux/drivers/iio/Kconfig (revision c0e297dc)
1#
2# Industrial I/O subsystem configuration
3#
4
5menuconfig IIO
6	tristate "Industrial I/O support"
7	select ANON_INODES
8	help
9	  The industrial I/O subsystem provides a unified framework for
10	  drivers for many different types of embedded sensors using a
11	  number of different physical interfaces (i2c, spi, etc).
12
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
23config IIO_BUFFER_CB
24	bool "IIO callback buffer used for push in-kernel interfaces"
25	help
26	  Should be selected by any drivers that do in-kernel push
27	  usage.  That is, those where the data is pushed to the consumer.
28
29config IIO_KFIFO_BUF
30	tristate "Industrial I/O buffering based on kfifo"
31	help
32	  A simple fifo based on kfifo.  Note that this currently provides
33	  no buffer events so it is up to userspace to work out how
34	  often to read from the buffer.
35
36config 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
43endif # IIO_BUFFER
44
45config IIO_TRIGGER
46	bool "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
50	  buffers.  The triggers are effectively a 'capture
51	  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
61source "drivers/iio/accel/Kconfig"
62source "drivers/iio/adc/Kconfig"
63source "drivers/iio/amplifiers/Kconfig"
64source "drivers/iio/common/Kconfig"
65source "drivers/iio/dac/Kconfig"
66source "drivers/iio/frequency/Kconfig"
67source "drivers/iio/gyro/Kconfig"
68source "drivers/iio/humidity/Kconfig"
69source "drivers/iio/imu/Kconfig"
70source "drivers/iio/light/Kconfig"
71source "drivers/iio/magnetometer/Kconfig"
72source "drivers/iio/orientation/Kconfig"
73if IIO_TRIGGER
74   source "drivers/iio/trigger/Kconfig"
75endif #IIO_TRIGGER
76source "drivers/iio/pressure/Kconfig"
77source "drivers/iio/proximity/Kconfig"
78source "drivers/iio/temperature/Kconfig"
79
80endif # IIO
81