Kconfig 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # Industrial I/O subsytem configuration
  3. #
  4. menuconfig IIO
  5. tristate "Industrial I/O support"
  6. depends on GENERIC_HARDIRQS
  7. help
  8. The industrial I/O subsystem provides a unified framework for
  9. drivers for many different types of embedded sensors using a
  10. number of different physical interfaces (i2c, spi, etc).
  11. if IIO
  12. config IIO_BUFFER
  13. bool "Enable buffer support within IIO"
  14. help
  15. Provide core support for various buffer based data
  16. acquisition methods.
  17. if IIO_BUFFER
  18. config IIO_KFIFO_BUF
  19. select IIO_TRIGGER
  20. tristate "Industrial I/O buffering based on kfifo"
  21. help
  22. A simple fifo based on kfifo. Use this if you want a fifo
  23. rather than a ring buffer. Note that this currently provides
  24. no buffer events so it is up to userspace to work out how
  25. often to read from the buffer.
  26. config IIO_TRIGGERED_BUFFER
  27. tristate
  28. select IIO_TRIGGER
  29. select IIO_KFIFO_BUF
  30. help
  31. Provides helper functions for setting up triggered buffers.
  32. endif # IIO_BUFFER
  33. config IIO_TRIGGER
  34. boolean "Enable triggered sampling support"
  35. help
  36. Provides IIO core support for triggers. Currently these
  37. are used to initialize capture of samples to push into
  38. ring buffers. The triggers are effectively a 'capture
  39. data now' interrupt.
  40. config IIO_CONSUMERS_PER_TRIGGER
  41. int "Maximum number of consumers per trigger"
  42. depends on IIO_TRIGGER
  43. default "2"
  44. help
  45. This value controls the maximum number of consumers that a
  46. given trigger may handle. Default is 2.
  47. source "drivers/iio/adc/Kconfig"
  48. source "drivers/iio/amplifiers/Kconfig"
  49. source "drivers/iio/light/Kconfig"
  50. source "drivers/iio/frequency/Kconfig"
  51. source "drivers/iio/dac/Kconfig"
  52. endif # IIO