1ec8f24b7SThomas 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" 44*01f68f06SFabrice Gasnier depends on MFD_STM32_LPTIMER || COMPILE_TEST 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 52f213729fSDavid Lechnerconfig TI_EQEP 53f213729fSDavid Lechner tristate "TI eQEP counter driver" 54f213729fSDavid Lechner depends on (SOC_AM33XX || COMPILE_TEST) 55f213729fSDavid Lechner select REGMAP_MMIO 56f213729fSDavid Lechner help 57f213729fSDavid Lechner Select this option to enable the Texas Instruments Enhanced Quadrature 58f213729fSDavid Lechner Encoder Pulse (eQEP) counter driver. 59f213729fSDavid Lechner 60f213729fSDavid Lechner To compile this driver as a module, choose M here: the module will be 61f213729fSDavid Lechner called ti-eqep. 62f213729fSDavid Lechner 63a3b9a999SPatrick Havelangeconfig FTM_QUADDEC 64a3b9a999SPatrick Havelange tristate "Flex Timer Module Quadrature decoder driver" 650c75376fSPatrick Havelange depends on HAS_IOMEM && OF 66a3b9a999SPatrick Havelange help 67a3b9a999SPatrick Havelange Select this option to enable the Flex Timer Quadrature decoder 68a3b9a999SPatrick Havelange driver. 69a3b9a999SPatrick Havelange 70a3b9a999SPatrick Havelange To compile this driver as a module, choose M here: the 71a3b9a999SPatrick Havelange module will be called ftm-quaddec. 72a3b9a999SPatrick Havelange 73106b1041SKamel Bouharaconfig MICROCHIP_TCB_CAPTURE 74106b1041SKamel Bouhara tristate "Microchip Timer Counter Capture driver" 75106b1041SKamel Bouhara depends on HAS_IOMEM && OF 76106b1041SKamel Bouhara select REGMAP_MMIO 77106b1041SKamel Bouhara help 78106b1041SKamel Bouhara Select this option to enable the Microchip Timer Counter Block 79106b1041SKamel Bouhara capture driver. 80106b1041SKamel Bouhara 81106b1041SKamel Bouhara To compile this driver as a module, choose M here: the 82106b1041SKamel Bouhara module will be called microchip-tcb-capture. 83106b1041SKamel Bouhara 84f1d8a071SWilliam Breathitt Grayendif # COUNTER 85