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 31ad29937eSBenjamin Gaignardconfig STM32_TIMER_CNT 32ad29937eSBenjamin Gaignard tristate "STM32 Timer encoder counter driver" 33ad29937eSBenjamin Gaignard depends on MFD_STM32_TIMERS || COMPILE_TEST 34ad29937eSBenjamin Gaignard help 35ad29937eSBenjamin Gaignard Select this option to enable STM32 Timer quadrature encoder 36ad29937eSBenjamin Gaignard and counter driver. 37ad29937eSBenjamin Gaignard 38ad29937eSBenjamin Gaignard To compile this driver as a module, choose M here: the 39ad29937eSBenjamin Gaignard module will be called stm32-timer-cnt. 40ad29937eSBenjamin Gaignard 41*597f55e3SFabrice Gasnierconfig STM32_LPTIMER_CNT 42*597f55e3SFabrice Gasnier tristate "STM32 LP Timer encoder counter driver" 43*597f55e3SFabrice Gasnier depends on (MFD_STM32_LPTIMER || COMPILE_TEST) && IIO 44*597f55e3SFabrice Gasnier help 45*597f55e3SFabrice Gasnier Select this option to enable STM32 Low-Power Timer quadrature encoder 46*597f55e3SFabrice Gasnier and counter driver. 47*597f55e3SFabrice Gasnier 48*597f55e3SFabrice Gasnier To compile this driver as a module, choose M here: the 49*597f55e3SFabrice Gasnier module will be called stm32-lptimer-cnt. 50*597f55e3SFabrice Gasnier 51f1d8a071SWilliam Breathitt Grayendif # COUNTER 52