[PATCH] backlight: Add Cirrus EP93xx backlight driver

Previous thread: [PATCH 2.6.34-rc5] HID: Prodikeys PC-MIDI HID Driver by dhprince.devel@yahoo on Wednesday, May 5, 2010 - 9:54 am. (4 messages)

Next thread: [PATCH]460EX on-chip SATA driver <Kernel 2.6.33> < resubmission > by Rupjyoti Sarmah on Wednesday, May 5, 2010 - 10:57 am. (9 messages)
From: H Hartley Sweeten
Date: Wednesday, May 5, 2010 - 10:13 am

The EP9307, EP9312, and EP9315 processors include a framebuffer
peripheral.  This peripheral has a dedicated pwm output called
BRIGHT that can be used to control the backlight on an LCD.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Cc: Ryan Mallon &lt;ryan@bluewatersys.com&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;

---

diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig
index 4dfb5f4..625a464 100644
--- a/drivers/video/backlight/Kconfig
+++ b/drivers/video/backlight/Kconfig
@@ -142,6 +142,16 @@ config BACKLIGHT_ATMEL_PWM
 	  To compile this driver as a module, choose M here: the module will be
 	  called atmel-pwm-bl.
 
+config BACKLIGHT_EP93XX
+	tristate &quot;Cirrus EP93xx Backlight Driver&quot;
+	depends on FB_EP93XX
+	help
+	  If you have a LCD backlight connected to the BRIGHT output of
+	  the EP93xx, say Y here to enable this driver.
+
+	  To compile this driver as a module, choose M here: the module will
+	  be called ep93xx_bl.
+
 config BACKLIGHT_GENERIC
 	tristate &quot;Generic (aka Sharp Corgi) Backlight Driver&quot;
 	default y
diff --git a/drivers/video/backlight/Makefile b/drivers/video/backlight/Makefile
index 09d1f14..c89dc92 100644
--- a/drivers/video/backlight/Makefile
+++ b/drivers/video/backlight/Makefile
@@ -14,6 +14,7 @@ obj-$(CONFIG_LCD_TOSA)		   += tosa_lcd.o
 
 obj-$(CONFIG_BACKLIGHT_CLASS_DEVICE) += backlight.o
 obj-$(CONFIG_BACKLIGHT_ATMEL_PWM)    += atmel-pwm-bl.o
+obj-$(CONFIG_BACKLIGHT_EP93XX)	+= ep93xx_bl.o
 obj-$(CONFIG_BACKLIGHT_GENERIC)	+= generic_bl.o
 obj-$(CONFIG_BACKLIGHT_HP700)	+= jornada720_bl.o
 obj-$(CONFIG_BACKLIGHT_HP680)	+= hp680_bl.o
diff --git a/drivers/video/backlight/ep93xx_bl.c b/drivers/video/backlight/ep93xx_bl.c
new file mode 100644
index 0000000..b0cc491
--- /dev/null
+++ b/drivers/video/backlight/ep93xx_bl.c
@@ -0,0 +1,160 @@
+/*
+ * Driver for the Cirrus EP93xx lcd backlight
+ *
+ * Copyright (c) 2010 H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
+ *
+ * This program is free ...
From: Richard Purdie
Date: Saturday, May 8, 2010 - 6:43 am

Queued in the backlight tree, thanks.

Richard

--

Previous thread: [PATCH 2.6.34-rc5] HID: Prodikeys PC-MIDI HID Driver by dhprince.devel@yahoo on Wednesday, May 5, 2010 - 9:54 am. (4 messages)

Next thread: [PATCH]460EX on-chip SATA driver <Kernel 2.6.33> < resubmission > by Rupjyoti Sarmah on Wednesday, May 5, 2010 - 10:57 am. (9 messages)