backlight: add support for Pandora backlight
Subsystems (2)
PATCH v2 1/1 backlight: add support for Pandora backlight
This patch adds support for pandora (openpandora.org) backlight.
It might look like all this could be done using pwm_bl.c instead, but there is a need of special programming sequence when turning on the LED driver chip or else it will misbehave. Doing this using pwm_bl.c would require to use some register programming and pwm functions from platform code, and ARM maintainers are allergic to driver-like code in /arch/arm nowadays. The PMIC PWM driver is currently missing too, so pwm_bl.c can't be used anyway.
---
changed in v2: fixed a bug where setting brightness to 0 twice
would actually turn the backlight on.
We had this driver in pandora tree for a couple of years now, but while cleaning it up for mainline submission I've introduced this bug, sorry for the noise.
drivers/video/backlight/Kconfig | 7 ++ drivers/video/backlight/Makefile | 1 + drivers/video/backlight/pandora_bl.c | 171 ++++++++++++++++++++++++++++++++++ 3 files changed, 179 insertions(+), 0 deletions(-) create mode 100644 drivers/video/backlight/pandora_bl.c
drivers/video/backlight/Kconfig +7 -0
@@ -334,6 +334,13 @@ config BACKLIGHT_AAT2870 If you have a AnalogicTech AAT2870 say Y to enable the backlight driver. +config BACKLIGHT_PANDORA + tristate "Backlight driver for Pandora console" + depends on TWL4030_CORE + help + If you have a Pandora console, say Y to enable the + backlight driver. + endif # BACKLIGHT_CLASS_DEVICE endif # BACKLIGHT_LCD_SUPPORT
drivers/video/backlight/Makefile +1 -0
@@ -38,4 +38,5 @@ obj-$(CONFIG_BACKLIGHT_ADP8870) += adp8870_bl.o obj-$(CONFIG_BACKLIGHT_88PM860X) += 88pm860x_bl.o obj-$(CONFIG_BACKLIGHT_PCF50633) += pcf50633-backlight.o obj-$(CONFIG_BACKLIGHT_AAT2870) += aat2870_bl.o +obj-$(CONFIG_BACKLIGHT_PANDORA) += pandora_bl.o
drivers/video/backlight/pandora_bl.c new file +171 -0
171 lines not on this page · raw message
Signature · 1 line
1.7.0.4