2019-05-19 05:07:45 -07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2019-04-01 23:30:36 -07:00
|
|
|
#
|
|
|
|
# Counter devices
|
|
|
|
#
|
|
|
|
|
2023-04-16 10:36:53 -07:00
|
|
|
config I8254
|
|
|
|
tristate
|
|
|
|
select COUNTER
|
|
|
|
select REGMAP
|
|
|
|
help
|
|
|
|
Enables support for the i8254 interface library functions. The i8254
|
|
|
|
interface library provides functions to facilitate communication with
|
|
|
|
interfaces compatible with the venerable Intel 8254 Programmable
|
|
|
|
Interval Timer (PIT). The Intel 825x family of chips was first
|
|
|
|
released in the early 1980s but compatible interfaces are nowadays
|
|
|
|
typically found embedded in larger VLSI processing chips and FPGA
|
|
|
|
components.
|
|
|
|
|
|
|
|
If built as a module its name will be i8254.
|
|
|
|
|
2023-06-20 10:01:59 -07:00
|
|
|
menuconfig COUNTER
|
|
|
|
tristate "Counter support"
|
|
|
|
help
|
|
|
|
This enables counter device support through the Generic Counter
|
|
|
|
interface. You only need to enable this, if you also want to enable
|
|
|
|
one or more of the counter device drivers below.
|
|
|
|
|
2019-04-01 23:30:40 -07:00
|
|
|
if COUNTER
|
|
|
|
|
|
|
|
config 104_QUAD_8
|
|
|
|
tristate "ACCES 104-QUAD-8 driver"
|
2022-03-15 12:38:52 -07:00
|
|
|
depends on (PC104 && X86) || COMPILE_TEST
|
2023-05-22 03:50:12 -07:00
|
|
|
depends on HAS_IOPORT_MAP
|
2019-04-01 23:30:40 -07:00
|
|
|
select ISA_BUS_API
|
2023-04-17 12:50:50 -07:00
|
|
|
select REGMAP_MMIO
|
2019-04-01 23:30:40 -07:00
|
|
|
help
|
|
|
|
Say yes here to build support for the ACCES 104-QUAD-8 quadrature
|
|
|
|
encoder counter/interface device family (104-QUAD-8, 104-QUAD-4).
|
|
|
|
|
|
|
|
A counter's respective error flag may be cleared by performing a write
|
2023-04-10 06:45:16 -07:00
|
|
|
operation on the respective count value attribute. The 104-QUAD-8
|
|
|
|
counters may be set either directly or via the counter's preset
|
|
|
|
attribute.
|
2019-04-01 23:30:40 -07:00
|
|
|
|
|
|
|
The base port addresses for the devices may be configured via the base
|
2021-09-28 20:16:06 -07:00
|
|
|
array module parameter. The interrupt line numbers for the devices may
|
|
|
|
be configured via the irq array module parameter.
|
2019-04-01 23:30:40 -07:00
|
|
|
|
2023-01-08 00:47:47 -07:00
|
|
|
config FTM_QUADDEC
|
|
|
|
tristate "Flex Timer Module Quadrature decoder driver"
|
2023-01-08 00:47:49 -07:00
|
|
|
depends on SOC_LS1021A || COMPILE_TEST
|
2023-01-08 00:47:47 -07:00
|
|
|
depends on HAS_IOMEM && OF
|
|
|
|
help
|
|
|
|
Select this option to enable the Flex Timer Quadrature decoder
|
|
|
|
driver.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called ftm-quaddec.
|
|
|
|
|
|
|
|
config INTEL_QEP
|
|
|
|
tristate "Intel Quadrature Encoder Peripheral driver"
|
2023-01-08 00:47:48 -07:00
|
|
|
depends on X86
|
2023-01-08 00:47:47 -07:00
|
|
|
depends on PCI
|
|
|
|
help
|
|
|
|
Select this option to enable the Intel Quadrature Encoder Peripheral
|
|
|
|
driver.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called intel-qep.
|
|
|
|
|
2021-03-01 01:04:01 -07:00
|
|
|
config INTERRUPT_CNT
|
|
|
|
tristate "Interrupt counter driver"
|
|
|
|
depends on GPIOLIB
|
|
|
|
help
|
|
|
|
Select this option to enable interrupt counter driver. Any interrupt
|
|
|
|
source can be used by this driver as the event source.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called interrupt-cnt.
|
|
|
|
|
2023-01-08 00:47:47 -07:00
|
|
|
config MICROCHIP_TCB_CAPTURE
|
|
|
|
tristate "Microchip Timer Counter Capture driver"
|
2023-01-18 00:46:59 -07:00
|
|
|
depends on SOC_AT91SAM9 || SOC_SAM_V7 || COMPILE_TEST
|
2023-01-08 00:47:47 -07:00
|
|
|
depends on HAS_IOMEM && OF
|
|
|
|
select REGMAP_MMIO
|
2019-04-01 23:30:42 -07:00
|
|
|
help
|
2023-01-08 00:47:47 -07:00
|
|
|
Select this option to enable the Microchip Timer Counter Block
|
|
|
|
capture driver.
|
2019-04-01 23:30:42 -07:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
2023-01-08 00:47:47 -07:00
|
|
|
module will be called microchip-tcb-capture.
|
2019-04-01 23:30:42 -07:00
|
|
|
|
2023-03-30 04:16:30 -07:00
|
|
|
config RZ_MTU3_CNT
|
|
|
|
tristate "Renesas RZ/G2L MTU3a counter driver"
|
2023-07-19 02:02:23 -07:00
|
|
|
depends on RZ_MTU3
|
2023-03-30 04:16:30 -07:00
|
|
|
help
|
|
|
|
Enable support for MTU3a counter driver found on Renesas RZ/G2L alike
|
|
|
|
SoCs. This IP supports both 16-bit and 32-bit phase counting mode
|
|
|
|
support.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called rz-mtu3-cnt.
|
|
|
|
|
2019-04-01 23:30:44 -07:00
|
|
|
config STM32_LPTIMER_CNT
|
|
|
|
tristate "STM32 LP Timer encoder counter driver"
|
2021-01-29 06:22:22 -07:00
|
|
|
depends on MFD_STM32_LPTIMER || COMPILE_TEST
|
2019-04-01 23:30:44 -07:00
|
|
|
help
|
|
|
|
Select this option to enable STM32 Low-Power Timer quadrature encoder
|
|
|
|
and counter driver.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
module will be called stm32-lptimer-cnt.
|
|
|
|
|
2023-01-08 00:47:47 -07:00
|
|
|
config STM32_TIMER_CNT
|
|
|
|
tristate "STM32 Timer encoder counter driver"
|
|
|
|
depends on MFD_STM32_TIMERS || COMPILE_TEST
|
2020-07-06 04:43:47 -07:00
|
|
|
help
|
2023-01-08 00:47:47 -07:00
|
|
|
Select this option to enable STM32 Timer quadrature encoder
|
|
|
|
and counter driver.
|
2020-07-06 04:43:47 -07:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
2023-01-08 00:47:47 -07:00
|
|
|
module will be called stm32-timer-cnt.
|
2021-06-02 04:32:59 -07:00
|
|
|
|
2022-09-27 15:53:45 -07:00
|
|
|
config TI_ECAP_CAPTURE
|
|
|
|
tristate "TI eCAP capture driver"
|
|
|
|
depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
|
|
|
|
depends on HAS_IOMEM
|
|
|
|
select REGMAP_MMIO
|
|
|
|
help
|
|
|
|
Select this option to enable the Texas Instruments Enhanced Capture
|
|
|
|
(eCAP) driver in input mode.
|
|
|
|
|
|
|
|
It can be used to timestamp events (falling/rising edges) detected
|
|
|
|
on ECAP input signal.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called ti-ecap-capture.
|
|
|
|
|
2023-01-08 00:47:47 -07:00
|
|
|
config TI_EQEP
|
|
|
|
tristate "TI eQEP counter driver"
|
2024-06-12 06:55:38 -07:00
|
|
|
depends on SOC_AM33XX || ARCH_K3 || COMPILE_TEST
|
2023-01-08 00:47:47 -07:00
|
|
|
select REGMAP_MMIO
|
|
|
|
help
|
|
|
|
Select this option to enable the Texas Instruments Enhanced Quadrature
|
|
|
|
Encoder Pulse (eQEP) counter driver.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module will be
|
|
|
|
called ti-eqep.
|
|
|
|
|
2019-04-01 23:30:40 -07:00
|
|
|
endif # COUNTER
|