Skip to contentSkip to conversation

davinci: da8xx: eCAP driver for PWM signal generation

PATCH New sugumar 1 participant 1 message Oct 8, 2010 PWM

lore
Share & tools
lore

sugumar

author
#0 lore raw

PATCH 1/4 davinci: da8xx: eCAP driver for PWM signal generation

OMAPL138/DA850 contains three instances of eCAP module. Each eCAP module has one dedicated pin that can be used either in capture mode(input) or in PWM mode. For more information on eCAP module operation, please refer to the following url.

http://focus.ti.com/lit/ug/sprufl2a/sprufl2a.pdf

This patch adds eCAP driver support for PWM signal generation.

---
 drivers/pwm/Kconfig  |   10 ++
 drivers/pwm/Makefile |    1 +
 drivers/pwm/ecap.c   |  330 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 341 insertions(+), 0 deletions(-)
 create mode 100644 drivers/pwm/ecap.c
drivers/pwm/Kconfig +10 -0
index def003b..6f32dd6 100644
@@ -33,4 +33,14 @@ config GPIO_PWM
          This option enables a single-channel PWM device using
 	 a kernel interval timer and a GPIO pin.  If unsure, say N.
 
+config ECAP_PWM
+	tristate "eCAP PWM support"
+	depends on ARCH_DAVINCI_DA8XX
+	help
+	  This option enables device driver support for eCAP module found
+	  on DA8xx Processors. eCAP module is used to geenrate wide range
+	  of PWM waveforms. Maximum frequency generated is equal to half
+	  the system clock frequency.
+	  Say Y to enable the eCAP support. If you want to build it as a
+	  module, Say M.
 endif
drivers/pwm/Makefile +1 -0
index 03ae2cd..6f02c9b 100644
@@ -5,3 +5,4 @@ obj-$(CONFIG_GENERIC_PWM)	+= pwm.o
 obj-$(CONFIG_ATMEL_PWM)		+= atmel-pwm.o
 obj-$(CONFIG_PXA_PWM)		+= pxa-pwm.o
 obj-$(CONFIG_GPIO_PWM)		+= gpio.o
+obj-$(CONFIG_ECAP_PWM)		+= ecap.o
drivers/pwm/ecap.c new file +330 -0

330 lines not on this page · raw message

Signature · 1 line
1.5.6