mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
a9a84c37d1
On the sam9 EK boards, the LCD backlight is hooked up to a PWM output from the LCD controller. It's controlled by "contrast" registers though. This patch lets boards declare that they have that kind of backlight control. The driver can then export this control, letting screenblank and other operations actually take effect ... reducing the typically substantial power drain from the backlight. Note that it's not fully cooked - doesn't force backlight off during system suspend - the "power" and "blank" events may not be done right This should be easily added in the future. [nicolas.ferre@atmel.com: remove unneeded inline and rename functions] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Andrew Victor <linux@maxim.org.za> Cc: Russell King <rmk@arm.linux.org.uk> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
105 lines
3.3 KiB
Text
105 lines
3.3 KiB
Text
#
|
|
# Backlight & LCD drivers configuration
|
|
#
|
|
|
|
menuconfig BACKLIGHT_LCD_SUPPORT
|
|
bool "Backlight & LCD device support"
|
|
help
|
|
Enable this to be able to choose the drivers for controlling the
|
|
backlight and the LCD panel on some platforms, for example on PDAs.
|
|
|
|
#
|
|
# LCD
|
|
#
|
|
config LCD_CLASS_DEVICE
|
|
tristate "Lowlevel LCD controls"
|
|
depends on BACKLIGHT_LCD_SUPPORT
|
|
default m
|
|
help
|
|
This framework adds support for low-level control of LCD.
|
|
Some framebuffer devices connect to platform-specific LCD modules
|
|
in order to have a platform-specific way to control the flat panel
|
|
(contrast and applying power to the LCD (not to the backlight!)).
|
|
|
|
To have support for your specific LCD panel you will have to
|
|
select the proper drivers which depend on this option.
|
|
|
|
config LCD_LTV350QV
|
|
tristate "Samsung LTV350QV LCD Panel"
|
|
depends on LCD_CLASS_DEVICE && SPI_MASTER
|
|
default n
|
|
help
|
|
If you have a Samsung LTV350QV LCD panel, say y to include a
|
|
power control driver for it. The panel starts up in power
|
|
off state, so you need this driver in order to see any
|
|
output.
|
|
|
|
The LTV350QV panel is present on all ATSTK1000 boards.
|
|
|
|
#
|
|
# Backlight
|
|
#
|
|
config BACKLIGHT_CLASS_DEVICE
|
|
tristate "Lowlevel Backlight controls"
|
|
depends on BACKLIGHT_LCD_SUPPORT
|
|
default m
|
|
help
|
|
This framework adds support for low-level control of the LCD
|
|
backlight. This includes support for brightness and power.
|
|
|
|
To have support for your specific LCD panel you will have to
|
|
select the proper drivers which depend on this option.
|
|
|
|
config BACKLIGHT_ATMEL_LCDC
|
|
bool "Atmel LCDC Contrast-as-Backlight control"
|
|
depends on BACKLIGHT_CLASS_DEVICE && FB_ATMEL
|
|
default y if MACH_SAM9261EK || MACH_SAM9263EK
|
|
help
|
|
This provides a backlight control internal to the Atmel LCDC
|
|
driver. If the LCD "contrast control" on your board is wired
|
|
so it controls the backlight brightness, select this option to
|
|
export this as a PWM-based backlight control.
|
|
|
|
If in doubt, it's safe to enable this option; it doesn't kick
|
|
in unless the board's description says it's wired that way.
|
|
|
|
config BACKLIGHT_CORGI
|
|
tristate "Generic (aka Sharp Corgi) Backlight Driver"
|
|
depends on BACKLIGHT_CLASS_DEVICE
|
|
default n
|
|
help
|
|
Say y to enable the generic platform backlight driver previously
|
|
known as the Corgi backlight driver. If you have a Sharp Zaurus
|
|
SL-C7xx, SL-Cxx00 or SL-6000x say y. Most users can say n.
|
|
|
|
config BACKLIGHT_LOCOMO
|
|
tristate "Sharp LOCOMO LCD/Backlight Driver"
|
|
depends on BACKLIGHT_CLASS_DEVICE && SHARP_LOCOMO
|
|
default y
|
|
help
|
|
If you have a Sharp Zaurus SL-5500 (Collie) or SL-5600 (Poodle) say y to
|
|
enable the LCD/backlight driver.
|
|
|
|
config BACKLIGHT_HP680
|
|
tristate "HP Jornada 680 Backlight Driver"
|
|
depends on BACKLIGHT_CLASS_DEVICE && SH_HP6XX
|
|
default y
|
|
help
|
|
If you have a HP Jornada 680, say y to enable the
|
|
backlight driver.
|
|
|
|
config BACKLIGHT_PROGEAR
|
|
tristate "Frontpath ProGear Backlight Driver"
|
|
depends on BACKLIGHT_CLASS_DEVICE && PCI && X86
|
|
default n
|
|
help
|
|
If you have a Frontpath ProGear say Y to enable the
|
|
backlight driver.
|
|
|
|
config BACKLIGHT_CARILLO_RANCH
|
|
tristate "Intel Carillo Ranch Backlight Driver"
|
|
depends on BACKLIGHT_CLASS_DEVICE && LCD_CLASS_DEVICE && PCI && X86 && FB_LE80578
|
|
default n
|
|
help
|
|
If you have a Intel LE80578 (Carillo Ranch) say Y to enable the
|
|
backlight driver.
|