xref: /OK3568_Linux_fs/kernel/drivers/counter/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Counter devices
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunmenuconfig COUNTER
7*4882a593Smuzhiyun	tristate "Counter support"
8*4882a593Smuzhiyun	help
9*4882a593Smuzhiyun	  This enables counter device support through the Generic Counter
10*4882a593Smuzhiyun	  interface. You only need to enable this, if you also want to enable
11*4882a593Smuzhiyun	  one or more of the counter device drivers below.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunif COUNTER
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunconfig 104_QUAD_8
16*4882a593Smuzhiyun	tristate "ACCES 104-QUAD-8 driver"
17*4882a593Smuzhiyun	depends on PC104 && X86 && IIO
18*4882a593Smuzhiyun	select ISA_BUS_API
19*4882a593Smuzhiyun	help
20*4882a593Smuzhiyun	  Say yes here to build support for the ACCES 104-QUAD-8 quadrature
21*4882a593Smuzhiyun	  encoder counter/interface device family (104-QUAD-8, 104-QUAD-4).
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	  A counter's respective error flag may be cleared by performing a write
24*4882a593Smuzhiyun	  operation on the respective count value attribute. Although the
25*4882a593Smuzhiyun	  104-QUAD-8 counters have a 25-bit range, only the lower 24 bits may be
26*4882a593Smuzhiyun	  set, either directly or via the counter's preset attribute. Interrupts
27*4882a593Smuzhiyun	  are not supported by this driver.
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun	  The base port addresses for the devices may be configured via the base
30*4882a593Smuzhiyun	  array module parameter.
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunconfig STM32_TIMER_CNT
33*4882a593Smuzhiyun	tristate "STM32 Timer encoder counter driver"
34*4882a593Smuzhiyun	depends on MFD_STM32_TIMERS || COMPILE_TEST
35*4882a593Smuzhiyun	help
36*4882a593Smuzhiyun	  Select this option to enable STM32 Timer quadrature encoder
37*4882a593Smuzhiyun	  and counter driver.
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	  To compile this driver as a module, choose M here: the
40*4882a593Smuzhiyun	  module will be called stm32-timer-cnt.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunconfig STM32_LPTIMER_CNT
43*4882a593Smuzhiyun	tristate "STM32 LP Timer encoder counter driver"
44*4882a593Smuzhiyun	depends on MFD_STM32_LPTIMER || COMPILE_TEST
45*4882a593Smuzhiyun	help
46*4882a593Smuzhiyun	  Select this option to enable STM32 Low-Power Timer quadrature encoder
47*4882a593Smuzhiyun	  and counter driver.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	  To compile this driver as a module, choose M here: the
50*4882a593Smuzhiyun	  module will be called stm32-lptimer-cnt.
51*4882a593Smuzhiyun
52*4882a593Smuzhiyunconfig TI_EQEP
53*4882a593Smuzhiyun	tristate "TI eQEP counter driver"
54*4882a593Smuzhiyun	depends on (SOC_AM33XX || COMPILE_TEST)
55*4882a593Smuzhiyun	select REGMAP_MMIO
56*4882a593Smuzhiyun	help
57*4882a593Smuzhiyun	  Select this option to enable the Texas Instruments Enhanced Quadrature
58*4882a593Smuzhiyun	  Encoder Pulse (eQEP) counter driver.
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun	  To compile this driver as a module, choose M here: the module will be
61*4882a593Smuzhiyun	  called ti-eqep.
62*4882a593Smuzhiyun
63*4882a593Smuzhiyunconfig FTM_QUADDEC
64*4882a593Smuzhiyun	tristate "Flex Timer Module Quadrature decoder driver"
65*4882a593Smuzhiyun	depends on HAS_IOMEM && OF
66*4882a593Smuzhiyun	help
67*4882a593Smuzhiyun	  Select this option to enable the Flex Timer Quadrature decoder
68*4882a593Smuzhiyun	  driver.
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun	  To compile this driver as a module, choose M here: the
71*4882a593Smuzhiyun	  module will be called ftm-quaddec.
72*4882a593Smuzhiyun
73*4882a593Smuzhiyunconfig MICROCHIP_TCB_CAPTURE
74*4882a593Smuzhiyun	tristate "Microchip Timer Counter Capture driver"
75*4882a593Smuzhiyun	depends on HAS_IOMEM && OF
76*4882a593Smuzhiyun	select REGMAP_MMIO
77*4882a593Smuzhiyun	help
78*4882a593Smuzhiyun	  Select this option to enable the Microchip Timer Counter Block
79*4882a593Smuzhiyun	  capture driver.
80*4882a593Smuzhiyun
81*4882a593Smuzhiyun	  To compile this driver as a module, choose M here: the
82*4882a593Smuzhiyun	  module will be called microchip-tcb-capture.
83*4882a593Smuzhiyun
84*4882a593Smuzhiyunendif # COUNTER
85