Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Counter devices
  4. #
  5. menuconfig COUNTER
  6. tristate "Counter support"
  7. help
  8. This enables counter device support through the Generic Counter
  9. interface. You only need to enable this, if you also want to enable
  10. one or more of the counter device drivers below.
  11. if COUNTER
  12. config 104_QUAD_8
  13. tristate "ACCES 104-QUAD-8 driver"
  14. depends on (PC104 && X86) || COMPILE_TEST
  15. select ISA_BUS_API
  16. help
  17. Say yes here to build support for the ACCES 104-QUAD-8 quadrature
  18. encoder counter/interface device family (104-QUAD-8, 104-QUAD-4).
  19. A counter's respective error flag may be cleared by performing a write
  20. operation on the respective count value attribute. Although the
  21. 104-QUAD-8 counters have a 25-bit range, only the lower 24 bits may be
  22. set, either directly or via the counter's preset attribute.
  23. The base port addresses for the devices may be configured via the base
  24. array module parameter. The interrupt line numbers for the devices may
  25. be configured via the irq array module parameter.
  26. config INTERRUPT_CNT
  27. tristate "Interrupt counter driver"
  28. depends on GPIOLIB
  29. help
  30. Select this option to enable interrupt counter driver. Any interrupt
  31. source can be used by this driver as the event source.
  32. To compile this driver as a module, choose M here: the
  33. module will be called interrupt-cnt.
  34. config STM32_TIMER_CNT
  35. tristate "STM32 Timer encoder counter driver"
  36. depends on MFD_STM32_TIMERS || COMPILE_TEST
  37. help
  38. Select this option to enable STM32 Timer quadrature encoder
  39. and counter driver.
  40. To compile this driver as a module, choose M here: the
  41. module will be called stm32-timer-cnt.
  42. config STM32_LPTIMER_CNT
  43. tristate "STM32 LP Timer encoder counter driver"
  44. depends on MFD_STM32_LPTIMER || COMPILE_TEST
  45. help
  46. Select this option to enable STM32 Low-Power Timer quadrature encoder
  47. and counter driver.
  48. To compile this driver as a module, choose M here: the
  49. module will be called stm32-lptimer-cnt.
  50. config TI_EQEP
  51. tristate "TI eQEP counter driver"
  52. depends on (SOC_AM33XX || COMPILE_TEST)
  53. select REGMAP_MMIO
  54. help
  55. Select this option to enable the Texas Instruments Enhanced Quadrature
  56. Encoder Pulse (eQEP) counter driver.
  57. To compile this driver as a module, choose M here: the module will be
  58. called ti-eqep.
  59. config FTM_QUADDEC
  60. tristate "Flex Timer Module Quadrature decoder driver"
  61. depends on HAS_IOMEM && OF
  62. help
  63. Select this option to enable the Flex Timer Quadrature decoder
  64. driver.
  65. To compile this driver as a module, choose M here: the
  66. module will be called ftm-quaddec.
  67. config MICROCHIP_TCB_CAPTURE
  68. tristate "Microchip Timer Counter Capture driver"
  69. depends on HAS_IOMEM && OF
  70. select REGMAP_MMIO
  71. help
  72. Select this option to enable the Microchip Timer Counter Block
  73. capture driver.
  74. To compile this driver as a module, choose M here: the
  75. module will be called microchip-tcb-capture.
  76. config INTEL_QEP
  77. tristate "Intel Quadrature Encoder Peripheral driver"
  78. depends on PCI
  79. help
  80. Select this option to enable the Intel Quadrature Encoder Peripheral
  81. driver.
  82. To compile this driver as a module, choose M here: the module
  83. will be called intel-qep.
  84. config TI_ECAP_CAPTURE
  85. tristate "TI eCAP capture driver"
  86. depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
  87. depends on HAS_IOMEM
  88. select REGMAP_MMIO
  89. help
  90. Select this option to enable the Texas Instruments Enhanced Capture
  91. (eCAP) driver in input mode.
  92. It can be used to timestamp events (falling/rising edges) detected
  93. on ECAP input signal.
  94. To compile this driver as a module, choose M here: the module
  95. will be called ti-ecap-capture.
  96. endif # COUNTER