xref: /linux/drivers/counter/Kconfig (revision ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1)
1*ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
20040a390SWilliam Breathitt Gray#
30040a390SWilliam Breathitt Gray# Counter devices
40040a390SWilliam Breathitt Gray#
50040a390SWilliam Breathitt Gray
60040a390SWilliam Breathitt Graymenuconfig COUNTER
70040a390SWilliam Breathitt Gray	tristate "Counter support"
80040a390SWilliam Breathitt Gray	help
90040a390SWilliam Breathitt Gray	  This enables counter device support through the Generic Counter
100040a390SWilliam Breathitt Gray	  interface. You only need to enable this, if you also want to enable
110040a390SWilliam Breathitt Gray	  one or more of the counter device drivers below.
12f1d8a071SWilliam Breathitt Gray
13f1d8a071SWilliam Breathitt Grayif COUNTER
14f1d8a071SWilliam Breathitt Gray
15f1d8a071SWilliam Breathitt Grayconfig 104_QUAD_8
16f1d8a071SWilliam Breathitt Gray	tristate "ACCES 104-QUAD-8 driver"
17f1d8a071SWilliam Breathitt Gray	depends on PC104 && X86 && IIO
18f1d8a071SWilliam Breathitt Gray	select ISA_BUS_API
19f1d8a071SWilliam Breathitt Gray	help
20f1d8a071SWilliam Breathitt Gray	  Say yes here to build support for the ACCES 104-QUAD-8 quadrature
21f1d8a071SWilliam Breathitt Gray	  encoder counter/interface device family (104-QUAD-8, 104-QUAD-4).
22f1d8a071SWilliam Breathitt Gray
23f1d8a071SWilliam Breathitt Gray	  A counter's respective error flag may be cleared by performing a write
24f1d8a071SWilliam Breathitt Gray	  operation on the respective count value attribute. Although the
25f1d8a071SWilliam Breathitt Gray	  104-QUAD-8 counters have a 25-bit range, only the lower 24 bits may be
26f1d8a071SWilliam Breathitt Gray	  set, either directly or via the counter's preset attribute. Interrupts
27f1d8a071SWilliam Breathitt Gray	  are not supported by this driver.
28f1d8a071SWilliam Breathitt Gray
29f1d8a071SWilliam Breathitt Gray	  The base port addresses for the devices may be configured via the base
30f1d8a071SWilliam Breathitt Gray	  array module parameter.
31f1d8a071SWilliam Breathitt Gray
32ad29937eSBenjamin Gaignardconfig STM32_TIMER_CNT
33ad29937eSBenjamin Gaignard	tristate "STM32 Timer encoder counter driver"
34ad29937eSBenjamin Gaignard	depends on MFD_STM32_TIMERS || COMPILE_TEST
35ad29937eSBenjamin Gaignard	help
36ad29937eSBenjamin Gaignard	  Select this option to enable STM32 Timer quadrature encoder
37ad29937eSBenjamin Gaignard	  and counter driver.
38ad29937eSBenjamin Gaignard
39ad29937eSBenjamin Gaignard	  To compile this driver as a module, choose M here: the
40ad29937eSBenjamin Gaignard	  module will be called stm32-timer-cnt.
41ad29937eSBenjamin Gaignard
42597f55e3SFabrice Gasnierconfig STM32_LPTIMER_CNT
43597f55e3SFabrice Gasnier	tristate "STM32 LP Timer encoder counter driver"
44597f55e3SFabrice Gasnier	depends on (MFD_STM32_LPTIMER || COMPILE_TEST) && IIO
45597f55e3SFabrice Gasnier	help
46597f55e3SFabrice Gasnier	  Select this option to enable STM32 Low-Power Timer quadrature encoder
47597f55e3SFabrice Gasnier	  and counter driver.
48597f55e3SFabrice Gasnier
49597f55e3SFabrice Gasnier	  To compile this driver as a module, choose M here: the
50597f55e3SFabrice Gasnier	  module will be called stm32-lptimer-cnt.
51597f55e3SFabrice Gasnier
52a3b9a999SPatrick Havelangeconfig FTM_QUADDEC
53a3b9a999SPatrick Havelange	tristate "Flex Timer Module Quadrature decoder driver"
54a3b9a999SPatrick Havelange	help
55a3b9a999SPatrick Havelange	  Select this option to enable the Flex Timer Quadrature decoder
56a3b9a999SPatrick Havelange	  driver.
57a3b9a999SPatrick Havelange
58a3b9a999SPatrick Havelange	  To compile this driver as a module, choose M here: the
59a3b9a999SPatrick Havelange	  module will be called ftm-quaddec.
60a3b9a999SPatrick Havelange
61f1d8a071SWilliam Breathitt Grayendif # COUNTER
62