Skip to content

Commit 4e2f42a

Browse files
jpanisblgregkh
authored andcommitted
counter: ti-ecap-capture: capture driver support for ECAP
ECAP hardware on TI AM62x SoC supports capture feature. It can be used to timestamp events (falling/rising edges) detected on input signal. This commit adds capture driver support for ECAP hardware on AM62x SoC. In the ECAP hardware, capture pin can also be configured to be in PWM mode. Current implementation only supports capture operating mode. Hardware also supports timebase sync between multiple instances, but this driver supports simple independent capture functionality. Signed-off-by: Julien Panis <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: William Breathitt Gray <[email protected]> Link: https://lore.kernel.org/r/25644ce1f2fd15d116977770ede20e024f658513.1664318353.git.william.gray@linaro.org Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5a47aed commit 4e2f42a

File tree

3 files changed

+630
-0
lines changed

3 files changed

+630
-0
lines changed

drivers/counter/Kconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,19 @@ config INTEL_QEP
101101
To compile this driver as a module, choose M here: the module
102102
will be called intel-qep.
103103

104+
config TI_ECAP_CAPTURE
105+
tristate "TI eCAP capture driver"
106+
depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
107+
depends on HAS_IOMEM
108+
select REGMAP_MMIO
109+
help
110+
Select this option to enable the Texas Instruments Enhanced Capture
111+
(eCAP) driver in input mode.
112+
113+
It can be used to timestamp events (falling/rising edges) detected
114+
on ECAP input signal.
115+
116+
To compile this driver as a module, choose M here: the module
117+
will be called ti-ecap-capture.
118+
104119
endif # COUNTER

drivers/counter/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ obj-$(CONFIG_TI_EQEP) += ti-eqep.o
1414
obj-$(CONFIG_FTM_QUADDEC) += ftm-quaddec.o
1515
obj-$(CONFIG_MICROCHIP_TCB_CAPTURE) += microchip-tcb-capture.o
1616
obj-$(CONFIG_INTEL_QEP) += intel-qep.o
17+
obj-$(CONFIG_TI_ECAP_CAPTURE) += ti-ecap-capture.o

0 commit comments

Comments
 (0)