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