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