xref: /openbmc/linux/drivers/iio/dummy/Kconfig (revision 8d753db5)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Industrial I/O subsystem Dummy Driver configuration
4#
5menu "IIO dummy driver"
6	depends on IIO
7
8config IIO_DUMMY_EVGEN
9	select IRQ_SIM
10	tristate
11
12config IIO_SIMPLE_DUMMY
13	tristate "An example driver with no hardware requirements"
14	depends on IIO_SW_DEVICE
15	help
16	  Driver intended mainly as documentation for how to write
17	  a driver. May also be useful for testing userspace code
18	  without hardware.
19
20if IIO_SIMPLE_DUMMY
21
22config IIO_SIMPLE_DUMMY_EVENTS
23	bool "Event generation support"
24	select IIO_DUMMY_EVGEN
25	help
26	  Add some dummy events to the simple dummy driver.
27
28	  The purpose of this is to generate 'fake' event interrupts thus
29	  allowing that driver's code to be as close as possible to that
30	  a normal driver talking to hardware.
31
32config IIO_SIMPLE_DUMMY_BUFFER
33	bool "Buffered capture support"
34	select IIO_BUFFER
35	select IIO_TRIGGER
36	select IIO_KFIFO_BUF
37	select IIO_TRIGGERED_BUFFER
38	help
39	  Add buffered data capture to the simple dummy driver.
40
41	  Buffer handling elements of industrial I/O reference driver.
42	  Uses the kfifo buffer.
43
44endif # IIO_SIMPLE_DUMMY
45
46endmenu
47