Re: [PATCH 0/3] u8500: led and backlight driver

Previous thread: [PATCH 2/3] backlight: u8500: backlight driver based on ab8500 pwm by Arun Murthy on Wednesday, August 25, 2010 - 11:50 pm. (1 message)

Next thread: [git pull] Input updates for 2.6.36-rc2 by Dmitry Torokhov on Thursday, August 26, 2010 - 12:27 am. (1 message)
From: Arun Murthy
Date: Wednesday, August 25, 2010 - 11:50 pm

Arun Murthy (3):
  mfd: ab8500-pwm: ab8500 pwm management
  backlight: u8500: backlight driver based on ab8500 pwm
  leds: ab8500-led: led driver based on ab8500 pwm

 drivers/leds/Kconfig                  |    9 ++
 drivers/leds/Makefile                 |    1 +
 drivers/leds/leds-ab8500.c            |  201 +++++++++++++++++++++++++++++++
 drivers/mfd/Kconfig                   |    8 ++
 drivers/mfd/Makefile                  |    1 +
 drivers/mfd/ab8500-core.c             |    7 +-
 drivers/mfd/ab8500-pwm.c              |  191 ++++++++++++++++++++++++++++++
 drivers/video/backlight/Kconfig       |   10 ++
 drivers/video/backlight/Makefile      |    2 +-
 drivers/video/backlight/ab8500_bl.c   |  209 +++++++++++++++++++++++++++++++++
 include/linux/mfd/ab8500.h            |    5 +
 include/linux/mfd/abx500/ab8500-pwm.h |   32 +++++
 12 files changed, 674 insertions(+), 2 deletions(-)
 create mode 100644 drivers/leds/leds-ab8500.c
 create mode 100644 drivers/mfd/ab8500-pwm.c
 create mode 100644 drivers/video/backlight/ab8500_bl.c
 create mode 100644 include/linux/mfd/abx500/ab8500-pwm.h

--

From: Arun Murthy
Date: Wednesday, August 25, 2010 - 11:50 pm

This patch exports functions to set and get ab8500 pwm intensity,
which in turn is used by backlight/led driver.

Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Acked-by: Mattias Wallin <mattias.wallin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
---
 drivers/mfd/Kconfig                   |    8 ++
 drivers/mfd/Makefile                  |    1 +
 drivers/mfd/ab8500-pwm.c              |  191 +++++++++++++++++++++++++++++++++
 include/linux/mfd/abx500/ab8500-pwm.h |   32 ++++++
 4 files changed, 232 insertions(+), 0 deletions(-)
 create mode 100644 drivers/mfd/ab8500-pwm.c
 create mode 100644 include/linux/mfd/abx500/ab8500-pwm.h

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 82d013f..6e73227 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -515,6 +515,14 @@ config AB3550_CORE
 	  LEDs, vibrator, system power and temperature, power management
 	  and ALSA sound.
 
+config AB8500_PWM
+	bool
+	depends on AB8500_CORE
+	help
+	  This driver exports function to set and get AB8500 Pulse
+	  Width Modulation pwm intensity in Analog Baseband chip AB8500.
+	  It is used to control the led and lcd backlight intensity.
+
 config MFD_TIMBERDALE
 	tristate "Support for the Timberdale FPGA"
 	select MFD_CORE
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index 9aa8a2d..949c5bb 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -71,6 +71,7 @@ obj-$(CONFIG_AB3550_CORE)	+= ab3550-core.o
 obj-$(CONFIG_AB8500_CORE)	+= ab8500-core.o ab8500-spi.o
 obj-$(CONFIG_AB8500_I2C_CORE)	+= ab8500-i2c.o
 obj-$(CONFIG_AB8500_DEBUG)	+= ab8500-debugfs.o
+obj-$(CONFIG_AB8500_PWM)	+= ab8500-pwm.o
 obj-$(CONFIG_MFD_TIMBERDALE)    += timberdale.o
 obj-$(CONFIG_PMIC_ADP5520)	+= adp5520.o
 obj-$(CONFIG_LPC_SCH)		+= lpc_sch.o
diff --git a/drivers/mfd/ab8500-pwm.c b/drivers/mfd/ab8500-pwm.c
new file mode 100644
index 0000000..91eea95
--- /dev/null
+++ b/drivers/mfd/ab8500-pwm.c
@@ -0,0 +1,191 @@
+/*
+ * Copyright (C) ...
From: Mike Rapoport
Date: Thursday, August 26, 2010 - 3:15 am

There are drivers/leds/leds-pwm.c and drivers/video/backlight/pwm_bl.c that 
implement led and backlight drivers based on generic pwm interface.


-- 
Sincerely yours,
Mike.
--

Previous thread: [PATCH 2/3] backlight: u8500: backlight driver based on ab8500 pwm by Arun Murthy on Wednesday, August 25, 2010 - 11:50 pm. (1 message)

Next thread: [git pull] Input updates for 2.6.36-rc2 by Dmitry Torokhov on Thursday, August 26, 2010 - 12:27 am. (1 message)