counter: Fix menuconfig "Counter support" submenu entries disappearance
[linux-block.git] / drivers / counter / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Counter devices
4 #
5
6 config I8254
7         tristate
8         select COUNTER
9         select REGMAP
10         help
11           Enables support for the i8254 interface library functions. The i8254
12           interface library provides functions to facilitate communication with
13           interfaces compatible with the venerable Intel 8254 Programmable
14           Interval Timer (PIT). The Intel 825x family of chips was first
15           released in the early 1980s but compatible interfaces are nowadays
16           typically found embedded in larger VLSI processing chips and FPGA
17           components.
18
19           If built as a module its name will be i8254.
20
21 menuconfig COUNTER
22         tristate "Counter support"
23         help
24           This enables counter device support through the Generic Counter
25           interface. You only need to enable this, if you also want to enable
26           one or more of the counter device drivers below.
27
28 if COUNTER
29
30 config 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
48 config 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
59 config 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
70 config 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
80 config 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
92 config 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
103 config 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
113 config 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
123 config 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
138 config 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
149 endif # COUNTER