xref: /linux/drivers/counter/Kconfig (revision ad29937e206f5e3fb7ef0d123902505a680f8969)
10040a390SWilliam Breathitt Gray#
20040a390SWilliam Breathitt Gray# Counter devices
30040a390SWilliam Breathitt Gray#
40040a390SWilliam Breathitt Gray
50040a390SWilliam Breathitt Graymenuconfig COUNTER
60040a390SWilliam Breathitt Gray	tristate "Counter support"
70040a390SWilliam Breathitt Gray	help
80040a390SWilliam Breathitt Gray	  This enables counter device support through the Generic Counter
90040a390SWilliam Breathitt Gray	  interface. You only need to enable this, if you also want to enable
100040a390SWilliam Breathitt Gray	  one or more of the counter device drivers below.
11f1d8a071SWilliam Breathitt Gray
12f1d8a071SWilliam Breathitt Grayif COUNTER
13f1d8a071SWilliam Breathitt Gray
14f1d8a071SWilliam Breathitt Grayconfig 104_QUAD_8
15f1d8a071SWilliam Breathitt Gray	tristate "ACCES 104-QUAD-8 driver"
16f1d8a071SWilliam Breathitt Gray	depends on PC104 && X86 && IIO
17f1d8a071SWilliam Breathitt Gray	select ISA_BUS_API
18f1d8a071SWilliam Breathitt Gray	help
19f1d8a071SWilliam Breathitt Gray	  Say yes here to build support for the ACCES 104-QUAD-8 quadrature
20f1d8a071SWilliam Breathitt Gray	  encoder counter/interface device family (104-QUAD-8, 104-QUAD-4).
21f1d8a071SWilliam Breathitt Gray
22f1d8a071SWilliam Breathitt Gray	  A counter's respective error flag may be cleared by performing a write
23f1d8a071SWilliam Breathitt Gray	  operation on the respective count value attribute. Although the
24f1d8a071SWilliam Breathitt Gray	  104-QUAD-8 counters have a 25-bit range, only the lower 24 bits may be
25f1d8a071SWilliam Breathitt Gray	  set, either directly or via the counter's preset attribute. Interrupts
26f1d8a071SWilliam Breathitt Gray	  are not supported by this driver.
27f1d8a071SWilliam Breathitt Gray
28f1d8a071SWilliam Breathitt Gray	  The base port addresses for the devices may be configured via the base
29f1d8a071SWilliam Breathitt Gray	  array module parameter.
30f1d8a071SWilliam Breathitt Gray
31*ad29937eSBenjamin Gaignardconfig STM32_TIMER_CNT
32*ad29937eSBenjamin Gaignard	tristate "STM32 Timer encoder counter driver"
33*ad29937eSBenjamin Gaignard	depends on MFD_STM32_TIMERS || COMPILE_TEST
34*ad29937eSBenjamin Gaignard	help
35*ad29937eSBenjamin Gaignard	  Select this option to enable STM32 Timer quadrature encoder
36*ad29937eSBenjamin Gaignard	  and counter driver.
37*ad29937eSBenjamin Gaignard
38*ad29937eSBenjamin Gaignard	  To compile this driver as a module, choose M here: the
39*ad29937eSBenjamin Gaignard	  module will be called stm32-timer-cnt.
40*ad29937eSBenjamin Gaignard
41f1d8a071SWilliam Breathitt Grayendif # COUNTER
42