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" 17e357e81fSWilliam Breathitt Gray depends on PC104 && X86 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 32a55ebd47SOleksij Rempelconfig INTERRUPT_CNT 33a55ebd47SOleksij Rempel tristate "Interrupt counter driver" 34a55ebd47SOleksij Rempel depends on GPIOLIB 35a55ebd47SOleksij Rempel help 36a55ebd47SOleksij Rempel Select this option to enable interrupt counter driver. Any interrupt 37a55ebd47SOleksij Rempel source can be used by this driver as the event source. 38a55ebd47SOleksij Rempel 39a55ebd47SOleksij Rempel To compile this driver as a module, choose M here: the 40a55ebd47SOleksij Rempel module will be called interrupt-cnt. 41a55ebd47SOleksij Rempel 42ad29937eSBenjamin Gaignardconfig STM32_TIMER_CNT 43ad29937eSBenjamin Gaignard tristate "STM32 Timer encoder counter driver" 44ad29937eSBenjamin Gaignard depends on MFD_STM32_TIMERS || COMPILE_TEST 45ad29937eSBenjamin Gaignard help 46ad29937eSBenjamin Gaignard Select this option to enable STM32 Timer quadrature encoder 47ad29937eSBenjamin Gaignard and counter driver. 48ad29937eSBenjamin Gaignard 49ad29937eSBenjamin Gaignard To compile this driver as a module, choose M here: the 50ad29937eSBenjamin Gaignard module will be called stm32-timer-cnt. 51ad29937eSBenjamin Gaignard 52597f55e3SFabrice Gasnierconfig STM32_LPTIMER_CNT 53597f55e3SFabrice Gasnier tristate "STM32 LP Timer encoder counter driver" 5401f68f06SFabrice Gasnier depends on MFD_STM32_LPTIMER || COMPILE_TEST 55597f55e3SFabrice Gasnier help 56597f55e3SFabrice Gasnier Select this option to enable STM32 Low-Power Timer quadrature encoder 57597f55e3SFabrice Gasnier and counter driver. 58597f55e3SFabrice Gasnier 59597f55e3SFabrice Gasnier To compile this driver as a module, choose M here: the 60597f55e3SFabrice Gasnier module will be called stm32-lptimer-cnt. 61597f55e3SFabrice Gasnier 62f213729fSDavid Lechnerconfig TI_EQEP 63f213729fSDavid Lechner tristate "TI eQEP counter driver" 64f213729fSDavid Lechner depends on (SOC_AM33XX || COMPILE_TEST) 65f213729fSDavid Lechner select REGMAP_MMIO 66f213729fSDavid Lechner help 67f213729fSDavid Lechner Select this option to enable the Texas Instruments Enhanced Quadrature 68f213729fSDavid Lechner Encoder Pulse (eQEP) counter driver. 69f213729fSDavid Lechner 70f213729fSDavid Lechner To compile this driver as a module, choose M here: the module will be 71f213729fSDavid Lechner called ti-eqep. 72f213729fSDavid Lechner 73a3b9a999SPatrick Havelangeconfig FTM_QUADDEC 74a3b9a999SPatrick Havelange tristate "Flex Timer Module Quadrature decoder driver" 750c75376fSPatrick Havelange depends on HAS_IOMEM && OF 76a3b9a999SPatrick Havelange help 77a3b9a999SPatrick Havelange Select this option to enable the Flex Timer Quadrature decoder 78a3b9a999SPatrick Havelange driver. 79a3b9a999SPatrick Havelange 80a3b9a999SPatrick Havelange To compile this driver as a module, choose M here: the 81a3b9a999SPatrick Havelange module will be called ftm-quaddec. 82a3b9a999SPatrick Havelange 83106b1041SKamel Bouharaconfig MICROCHIP_TCB_CAPTURE 84106b1041SKamel Bouhara tristate "Microchip Timer Counter Capture driver" 85106b1041SKamel Bouhara depends on HAS_IOMEM && OF 86106b1041SKamel Bouhara select REGMAP_MMIO 87106b1041SKamel Bouhara help 88106b1041SKamel Bouhara Select this option to enable the Microchip Timer Counter Block 89106b1041SKamel Bouhara capture driver. 90106b1041SKamel Bouhara 91106b1041SKamel Bouhara To compile this driver as a module, choose M here: the 92106b1041SKamel Bouhara module will be called microchip-tcb-capture. 93106b1041SKamel Bouhara 94*b711f687SJarkko Nikulaconfig INTEL_QEP 95*b711f687SJarkko Nikula tristate "Intel Quadrature Encoder Peripheral driver" 96*b711f687SJarkko Nikula depends on PCI 97*b711f687SJarkko Nikula help 98*b711f687SJarkko Nikula Select this option to enable the Intel Quadrature Encoder Peripheral 99*b711f687SJarkko Nikula driver. 100*b711f687SJarkko Nikula 101*b711f687SJarkko Nikula To compile this driver as a module, choose M here: the module 102*b711f687SJarkko Nikula will be called intel-qep. 103*b711f687SJarkko Nikula 104f1d8a071SWilliam Breathitt Grayendif # COUNTER 105