lkml.org 
[lkml]   [2010]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] [PATCH] mfd: Support for TWL6030 PWM
Hi Hemanth,

On Thu, Jul 08, 2010 at 05:40:51PM +0530, Hemanth V wrote:
> From 2c6efcebf2790a4c968309360cfc3559b6d9c110 Mon Sep 17 00:00:00 2001
> From: Hemanth V <hemanthv@ti.com>
> Date: Thu, 8 Jul 2010 17:04:06 +0530
> Subject: [PATCH] Add support for TWL6030 PWM
>
> TWL6030 supports PWM (Pulse Width Modulator) which is used
> to control charging LED. PWM allows for controlling brightness.
> This patch implements the APIs required by leds-pwm driver.
>
> Signed-off-by: Hemanth V <hemanthv@ti.com>
> ---
> drivers/mfd/Kconfig | 9 +++
> drivers/mfd/Makefile | 3 +-
> drivers/mfd/twl6030-pwm.c | 163 +++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 174 insertions(+), 1 deletions(-)
> create mode 100644 drivers/mfd/twl6030-pwm.c
>
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index c7c11ef..4459fe5 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -162,6 +162,15 @@ config TWL6030_GPADC
> Say yes here if you want support for the TWL6030 General Purpose
> A/D Convertor.
>
> +config TWL6030_PWM
> + tristate "TWL6030 PWM (Pulse Width Modulator) Support"
> + depends on TWL4030_CORE
> + select HAVE_PWM
> + default n
> + help
> + Say yes here if you want support for TWL6030 PWM.
> + This is used to control charging LED brightness.
> +
> config MFD_TMIO
> bool
> default n
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index 204a974..e697101 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -34,6 +34,7 @@ obj-$(CONFIG_TWL4030_CORE) += twl-core.o twl4030-irq.o twl6030-irq.o
> obj-$(CONFIG_TWL4030_POWER) += twl4030-power.o
> obj-$(CONFIG_TWL4030_CODEC) += twl4030-codec.o
> obj-$(CONFIG_TWL6030_GPADC) += twl6030-gpadc.o
I don't have this one on my tree, so the patch didnt apply cleanly.
I fixed it up though, so the patch is applied.


> +obj-$(CONFIG_TWL6030_PWM) += twl6030-pwm.o
>
> obj-$(CONFIG_MFD_MC13783) += mc13783-core.o
>
> @@ -63,4 +64,4 @@ obj-$(CONFIG_AB3100_OTP) += ab3100-otp.o
> obj-$(CONFIG_AB4500_CORE) += ab4500-core.o
> obj-$(CONFIG_MFD_TIMBERDALE) += timberdale.o
> obj-$(CONFIG_PMIC_ADP5520) += adp5520.o
> -obj-$(CONFIG_LPC_SCH) += lpc_sch.o
> \ No newline at end of file
> +obj-$(CONFIG_LPC_SCH) += lpc_sch.o
Unrelated change, please avoid that.

Cheers,
Samuel.

--
Intel Open Source Technology Centre
http://oss.intel.com/


\
 
 \ /
  Last update: 2010-07-14 12:09    [W:0.051 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site