summaryrefslogtreecommitdiff
path: root/drivers/counter/Kconfig
diff options
context:
space:
mode:
authorKamel Bouhara <kamel.bouhara@bootlin.com>2020-07-06 13:43:47 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-07-20 13:04:40 +0100
commit106b104137fd5f0dbcafadd7ad566b86ec183466 (patch)
treed25a252e00960f2fd587313069b96b06a69751fd /drivers/counter/Kconfig
parent7eb181cf06372311f58b237ce9e7434c427b56b7 (diff)
counter: Add microchip TCB capture counter
This drivers allows to use the capture mode of the Timer Counter Block hardware block available in Microchip SoCs through the counter subsystem. Two functions of the counter are supported for the moment: period capture and quadrature decoder. The latter is only supported by the SAMA5 series of SoCs. For the period capture mode a basic setup has been chosen that will reset the counter each time the period is actually reached. Of course the device offers much more possibilities. For quadrature mode, both channel 0 and 1 must be configured even if we only capture the position (no revolution/rotation). Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/counter/Kconfig')
-rw-r--r--drivers/counter/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig
index c80fa76bb531..2de53ab0dd25 100644
--- a/drivers/counter/Kconfig
+++ b/drivers/counter/Kconfig
@@ -70,4 +70,15 @@ config FTM_QUADDEC
To compile this driver as a module, choose M here: the
module will be called ftm-quaddec.
+config MICROCHIP_TCB_CAPTURE
+ tristate "Microchip Timer Counter Capture driver"
+ depends on HAS_IOMEM && OF
+ select REGMAP_MMIO
+ help
+ Select this option to enable the Microchip Timer Counter Block
+ capture driver.
+
+ To compile this driver as a module, choose M here: the
+ module will be called microchip-tcb-capture.
+
endif # COUNTER