0001 # SPDX-License-Identifier: GPL-2.0-only
0002 #
0003 # Industrial I/O subsystem Dummy Driver configuration
0004 #
0005 menu "IIO dummy driver"
0006 depends on IIO
0007
0008 config IIO_DUMMY_EVGEN
0009 select IRQ_SIM
0010 tristate
0011
0012 config IIO_SIMPLE_DUMMY
0013 tristate "An example driver with no hardware requirements"
0014 depends on IIO_SW_DEVICE
0015 help
0016 Driver intended mainly as documentation for how to write
0017 a driver. May also be useful for testing userspace code
0018 without hardware.
0019
0020 if IIO_SIMPLE_DUMMY
0021
0022 config IIO_SIMPLE_DUMMY_EVENTS
0023 bool "Event generation support"
0024 select IIO_DUMMY_EVGEN
0025 help
0026 Add some dummy events to the simple dummy driver.
0027
0028 The purpose of this is to generate 'fake' event interrupts thus
0029 allowing that driver's code to be as close as possible to that
0030 a normal driver talking to hardware.
0031
0032 config IIO_SIMPLE_DUMMY_BUFFER
0033 bool "Buffered capture support"
0034 select IIO_BUFFER
0035 select IIO_TRIGGER
0036 select IIO_KFIFO_BUF
0037 select IIO_TRIGGERED_BUFFER
0038 help
0039 Add buffered data capture to the simple dummy driver.
0040
0041 Buffer handling elements of industrial I/O reference driver.
0042 Uses the kfifo buffer.
0043
0044 endif # IIO_SIMPLE_DUMMY
0045
0046 endmenu