Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Counter devices
  4. #
  5. config I8254
  6. tristate
  7. select COUNTER
  8. select REGMAP
  9. help
  10. Enables support for the i8254 interface library functions. The i8254
  11. interface library provides functions to facilitate communication with
  12. interfaces compatible with the venerable Intel 8254 Programmable
  13. Interval Timer (PIT). The Intel 825x family of chips was first
  14. released in the early 1980s but compatible interfaces are nowadays
  15. typically found embedded in larger VLSI processing chips and FPGA
  16. components.
  17. If built as a module its name will be i8254.
  18. menuconfig COUNTER
  19. tristate "Counter support"
  20. help
  21. This enables counter device support through the Generic Counter
  22. interface. You only need to enable this, if you also want to enable
  23. one or more of the counter device drivers below.
  24. if COUNTER
  25. config 104_QUAD_8
  26. tristate "ACCES 104-QUAD-8 driver"
  27. depends on (PC104 && X86) || COMPILE_TEST
  28. depends on HAS_IOPORT_MAP
  29. select ISA_BUS_API
  30. select REGMAP_MMIO
  31. help
  32. Say yes here to build support for the ACCES 104-QUAD-8 quadrature
  33. encoder counter/interface device family (104-QUAD-8, 104-QUAD-4).
  34. A counter's respective error flag may be cleared by performing a write
  35. operation on the respective count value attribute. The 104-QUAD-8
  36. counters may be set either directly or via the counter's preset
  37. attribute.
  38. The base port addresses for the devices may be configured via the base
  39. array module parameter. The interrupt line numbers for the devices may
  40. be configured via the irq array module parameter.
  41. config FTM_QUADDEC
  42. tristate "Flex Timer Module Quadrature decoder driver"
  43. depends on SOC_LS1021A || COMPILE_TEST
  44. depends on HAS_IOMEM && OF
  45. help
  46. Select this option to enable the Flex Timer Quadrature decoder
  47. driver.
  48. To compile this driver as a module, choose M here: the
  49. module will be called ftm-quaddec.
  50. config INTEL_QEP
  51. tristate "Intel Quadrature Encoder Peripheral driver"
  52. depends on X86
  53. depends on PCI
  54. help
  55. Select this option to enable the Intel Quadrature Encoder Peripheral
  56. driver.
  57. To compile this driver as a module, choose M here: the module
  58. will be called intel-qep.
  59. config INTERRUPT_CNT
  60. tristate "Interrupt counter driver"
  61. depends on GPIOLIB
  62. help
  63. Select this option to enable interrupt counter driver. Any interrupt
  64. source can be used by this driver as the event source.
  65. To compile this driver as a module, choose M here: the
  66. module will be called interrupt-cnt.
  67. config MICROCHIP_TCB_CAPTURE
  68. tristate "Microchip Timer Counter Capture driver"
  69. depends on SOC_AT91SAM9 || SOC_SAM_V7 || COMPILE_TEST
  70. depends on HAS_IOMEM && OF
  71. select REGMAP_MMIO
  72. help
  73. Select this option to enable the Microchip Timer Counter Block
  74. capture driver.
  75. To compile this driver as a module, choose M here: the
  76. module will be called microchip-tcb-capture.
  77. config RZ_MTU3_CNT
  78. tristate "Renesas RZ/G2L MTU3a counter driver"
  79. depends on RZ_MTU3
  80. help
  81. Enable support for MTU3a counter driver found on Renesas RZ/G2L alike
  82. SoCs. This IP supports both 16-bit and 32-bit phase counting mode
  83. support.
  84. To compile this driver as a module, choose M here: the
  85. module will be called rz-mtu3-cnt.
  86. config STM32_LPTIMER_CNT
  87. tristate "STM32 LP Timer encoder counter driver"
  88. depends on MFD_STM32_LPTIMER || COMPILE_TEST
  89. help
  90. Select this option to enable STM32 Low-Power Timer quadrature encoder
  91. and counter driver.
  92. To compile this driver as a module, choose M here: the
  93. module will be called stm32-lptimer-cnt.
  94. config STM32_TIMER_CNT
  95. tristate "STM32 Timer encoder counter driver"
  96. depends on MFD_STM32_TIMERS || COMPILE_TEST
  97. help
  98. Select this option to enable STM32 Timer quadrature encoder
  99. and counter driver.
  100. To compile this driver as a module, choose M here: the
  101. module will be called stm32-timer-cnt.
  102. config TI_ECAP_CAPTURE
  103. tristate "TI eCAP capture driver"
  104. depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
  105. depends on HAS_IOMEM
  106. select REGMAP_MMIO
  107. help
  108. Select this option to enable the Texas Instruments Enhanced Capture
  109. (eCAP) driver in input mode.
  110. It can be used to timestamp events (falling/rising edges) detected
  111. on ECAP input signal.
  112. To compile this driver as a module, choose M here: the module
  113. will be called ti-ecap-capture.
  114. config TI_EQEP
  115. tristate "TI eQEP counter driver"
  116. depends on SOC_AM33XX || ARCH_K3 || COMPILE_TEST
  117. select REGMAP_MMIO
  118. help
  119. Select this option to enable the Texas Instruments Enhanced Quadrature
  120. Encoder Pulse (eQEP) counter driver.
  121. To compile this driver as a module, choose M here: the module will be
  122. called ti-eqep.
  123. endif # COUNTER