Skip to contentSkip to conversation

aat2870: Adding backlight, regulator and mfd driver

PATCH Jin Park 2 participants 2 messages May 31, 2011

Subsystems (4)
lore
Share & tools
lore

Jin Park

author
#0 lore raw

Joe, thanks for your code review.

Samuel,
Re-sending the driver what applied Joe's comment.
Please review the driver.

Thanks,
Jinyoung.

Adding backlight, regulator and mfd driver for AnalogicTech AAT2870.

---
 drivers/mfd/Kconfig                   |   10 +
 drivers/mfd/Makefile                  |    1 +
 drivers/mfd/aat2870-core.c            |  532 +++++++++++++++++++++++++++++++++
 drivers/regulator/Kconfig             |    7 +
 drivers/regulator/Makefile            |    1 +
 drivers/regulator/aat2870-regulator.c |  265 ++++++++++++++++
 drivers/video/backlight/Kconfig       |    7 +
 drivers/video/backlight/Makefile      |    1 +
 drivers/video/backlight/aat2870_bl.c  |  246 +++++++++++++++
 include/linux/mfd/aat2870.h           |  182 +++++++++++
 10 files changed, 1252 insertions(+), 0 deletions(-)
 create mode 100644 drivers/mfd/aat2870-core.c
 create mode 100644 drivers/regulator/aat2870-regulator.c
 create mode 100644 drivers/video/backlight/aat2870_bl.c
 create mode 100644 include/linux/mfd/aat2870.h
drivers/mfd/Kconfig +10 -0
index 0f09c05..6039ba2 100644
@@ -728,6 +728,16 @@ config MFD_TPS65910
 	  if you say yes here you get support for the TPS65910 series of
 	  Power Management chips.
 
+config MFD_AAT2870_CORE
+	bool "Support for the AnalogicTech AAT2870"
+	select MFD_CORE
+	depends on I2C=y && GPIOLIB
+	help
+	  If you say yes here you get support for the AAT2870.
+	  This driver provides common support for accessing the device,
+	  additional drivers must be enabled in order to use the
+	  functionality of the device.
+
 endif # MFD_SUPPORT
 
 menu "Multimedia Capabilities Port drivers"
drivers/mfd/Makefile +1 -0
index efe3cc3..498eb42 100644
@@ -94,3 +94,4 @@ obj-$(CONFIG_MFD_OMAP_USB_HOST)	+= omap-usb-host.o
 obj-$(CONFIG_MFD_PM8921_CORE) 	+= pm8921-core.o
 obj-$(CONFIG_MFD_PM8XXX_IRQ) 	+= pm8xxx-irq.o
 obj-$(CONFIG_MFD_TPS65910)	+= tps65910.o tps65910-irq.o
+obj-$(CONFIG_MFD_AAT2870_CORE)	+= aat2870-core.o
drivers/mfd/aat2870-core.c new file +532 -0

532 lines not on this page · raw message

drivers/regulator/Kconfig +7 -0
index d7ed20f..0f37466 100644
@@ -303,5 +303,12 @@ config REGULATOR_TPS65910
 	help
 	  This driver supports TPS65910 voltage regulator chips.
 
+config REGULATOR_AAT2870
+	bool "AnalogicTech AAT2870 Regulators"
+	depends on MFD_AAT2870_CORE
+	help
+	  If you have a AnalogicTech AAT2870 say Y to enable the
+	  regulator driver.
+
 endif
 
drivers/regulator/Makefile +1 -0
index 3932d2e..8b8f3bc 100644
@@ -43,5 +43,6 @@ obj-$(CONFIG_REGULATOR_ISL6271A) += isl6271a-regulator.o
 obj-$(CONFIG_REGULATOR_AB8500)	+= ab8500.o
 obj-$(CONFIG_REGULATOR_DB8500_PRCMU) += db8500-prcmu.o
 obj-$(CONFIG_REGULATOR_TPS65910) += tps65910-regulator.o
+obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o
 
 ccflags-$(CONFIG_REGULATOR_DEBUG) += -DDEBUG
drivers/regulator/aat2870-regulator.c new file +265 -0

265 lines not on this page · raw message

drivers/video/backlight/Kconfig +7 -0
index 0c9373b..3fde1ec 100644
@@ -315,6 +315,13 @@ config BACKLIGHT_PCF50633
 	  If you have a backlight driven by a NXP PCF50633 MFD, say Y here to
 	  enable its driver.
 
+config BACKLIGHT_AAT2870
+	bool "AnalogicTech AAT2870 Backlight"
+	depends on ( BACKLIGHT_CLASS_DEVICE = y ) && MFD_AAT2870_CORE
+	help
+	  If you have a AnalogicTech AAT2870 say Y to enable the
+	  backlight driver.
+
 endif # BACKLIGHT_CLASS_DEVICE
 
 endif # BACKLIGHT_LCD_SUPPORT
drivers/video/backlight/Makefile +1 -0
index b9ca849..2a08271 100644
@@ -36,4 +36,5 @@ obj-$(CONFIG_BACKLIGHT_ADP5520)	+= adp5520_bl.o
 obj-$(CONFIG_BACKLIGHT_ADP8860)	+= adp8860_bl.o
 obj-$(CONFIG_BACKLIGHT_88PM860X) += 88pm860x_bl.o
 obj-$(CONFIG_BACKLIGHT_PCF50633)	+= pcf50633-backlight.o
+obj-$(CONFIG_BACKLIGHT_AAT2870) += aat2870_bl.o
 
drivers/video/backlight/aat2870_bl.c new file +246 -0

246 lines not on this page · raw message

include/linux/mfd/aat2870.h new file +182 -0

182 lines not on this page · raw message

Signature · 1 line
1.7.1
#1 lore raw

drivers/regulator/aat2870-regulator.c line 1

Quoted 6 lines · Jin Park

Please review the driver.
Adding backlight, regulator and mfd driver for AnalogicTech AAT2870.

drivers/regulator/aat2870-regulator.c +2 -0
+++ b/drivers/regulator/aat2870-regulator.c
@@ -0,0 +1,265 @@
+/*

[]

drivers/regulator/aat2870-regulator.c line 20

Quoted 5 lines
drivers/regulator/aat2870-regulator.c +5 -0
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */X-NVConfidentiality: public

This stray "X-NVConfidentiality: public" should be removed.