xref: /openbmc/linux/drivers/iio/Kconfig (revision 23f2d735)
1a980e046SJonathan Cameron#
2a980e046SJonathan Cameron# Industrial I/O subsytem configuration
3a980e046SJonathan Cameron#
4a980e046SJonathan Cameron
5a980e046SJonathan Cameronmenuconfig IIO
6a980e046SJonathan Cameron	tristate "Industrial I/O support"
7a980e046SJonathan Cameron	depends on GENERIC_HARDIRQS
8a980e046SJonathan Cameron	help
9a980e046SJonathan Cameron	  The industrial I/O subsystem provides a unified framework for
10a980e046SJonathan Cameron	  drivers for many different types of embedded sensors using a
11a980e046SJonathan Cameron	  number of different physical interfaces (i2c, spi, etc). See
12a980e046SJonathan Cameron	  Documentation/iio for more information.
13a980e046SJonathan Cameron
14a980e046SJonathan Cameronif IIO
15a980e046SJonathan Cameron
16a980e046SJonathan Cameronconfig IIO_BUFFER
17a980e046SJonathan Cameron	bool "Enable buffer support within IIO"
18a980e046SJonathan Cameron	help
19a980e046SJonathan Cameron	  Provide core support for various buffer based data
20a980e046SJonathan Cameron	  acquisition methods.
21a980e046SJonathan Cameron
22a980e046SJonathan Cameronif IIO_BUFFER
23a980e046SJonathan Cameron
24a980e046SJonathan Cameronconfig IIO_KFIFO_BUF
25a980e046SJonathan Cameron	select IIO_TRIGGER
26a980e046SJonathan Cameron	tristate "Industrial I/O buffering based on kfifo"
27a980e046SJonathan Cameron	help
28a980e046SJonathan Cameron	  A simple fifo based on kfifo.  Use this if you want a fifo
29a980e046SJonathan Cameron	  rather than a ring buffer. Note that this currently provides
30a980e046SJonathan Cameron	  no buffer events so it is up to userspace to work out how
31a980e046SJonathan Cameron	  often to read from the buffer.
32a980e046SJonathan Cameron
3323f2d735SLars-Peter Clausenconfig IIO_TRIGGERED_BUFFER
3423f2d735SLars-Peter Clausen	tristate
3523f2d735SLars-Peter Clausen	select IIO_TRIGGER
3623f2d735SLars-Peter Clausen	select IIO_KFIFO_BUF
3723f2d735SLars-Peter Clausen	help
3823f2d735SLars-Peter Clausen	  Provides helper functions for setting up triggered buffers.
3923f2d735SLars-Peter Clausen
40a980e046SJonathan Cameronendif # IIO_BUFFER
41a980e046SJonathan Cameron
42a980e046SJonathan Cameronconfig IIO_TRIGGER
43a980e046SJonathan Cameron	boolean "Enable triggered sampling support"
44a980e046SJonathan Cameron	help
45a980e046SJonathan Cameron	  Provides IIO core support for triggers.  Currently these
46a980e046SJonathan Cameron	  are used to initialize capture of samples to push into
47a980e046SJonathan Cameron	  ring buffers.  The triggers are effectively a 'capture
48a980e046SJonathan Cameron	  data now' interrupt.
49a980e046SJonathan Cameron
50a980e046SJonathan Cameronconfig IIO_CONSUMERS_PER_TRIGGER
51a980e046SJonathan Cameron       int "Maximum number of consumers per trigger"
52a980e046SJonathan Cameron       depends on IIO_TRIGGER
53a980e046SJonathan Cameron       default "2"
54a980e046SJonathan Cameron       help
55a980e046SJonathan Cameron	This value controls the maximum number of consumers that a
56a980e046SJonathan Cameron	given trigger may handle. Default is 2.
57a980e046SJonathan Cameron
580e589d5fSMaxime Ripardsource "drivers/iio/adc/Kconfig"
59e71d42e0SMichael Hennerichsource "drivers/iio/amplifiers/Kconfig"
609c8ea1b2SJohan Hovoldsource "drivers/iio/light/Kconfig"
61cd1678f9SMichael Hennerichsource "drivers/iio/frequency/Kconfig"
62dbdc025bSLars-Peter Clausensource "drivers/iio/dac/Kconfig"
63e71d42e0SMichael Hennerich
64a980e046SJonathan Cameronendif # IIO
65