Kconfig 1.1 KB

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