backlight: Improve backlight selection for fbdev drivers
Improve backlight selection for fbdev drivers Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
This commit is contained in:
parent
37ce69a57f
commit
e0e34ef7f0
1 changed files with 36 additions and 37 deletions
|
@ -4,20 +4,9 @@
|
||||||
|
|
||||||
menu "Graphics support"
|
menu "Graphics support"
|
||||||
|
|
||||||
config FIRMWARE_EDID
|
if SYSFS
|
||||||
bool "Enable firmware EDID"
|
source "drivers/video/backlight/Kconfig"
|
||||||
default y
|
endif
|
||||||
---help---
|
|
||||||
This enables access to the EDID transferred from the firmware.
|
|
||||||
On the i386, this is from the Video BIOS. Enable this if DDC/I2C
|
|
||||||
transfers do not work for your driver and if you are using
|
|
||||||
nvidiafb, i810fb or savagefb.
|
|
||||||
|
|
||||||
In general, choosing Y for this option is safe. If you
|
|
||||||
experience extremely long delays while booting before you get
|
|
||||||
something on your display, try setting this to N. Matrox cards in
|
|
||||||
combination with certain motherboards and monitors are known to
|
|
||||||
suffer from this problem.
|
|
||||||
|
|
||||||
config FB
|
config FB
|
||||||
tristate "Support for frame buffer devices"
|
tristate "Support for frame buffer devices"
|
||||||
|
@ -53,9 +42,27 @@ config FB
|
||||||
(e.g. an accelerated X server) and that are not frame buffer
|
(e.g. an accelerated X server) and that are not frame buffer
|
||||||
device-aware may cause unexpected results. If unsure, say N.
|
device-aware may cause unexpected results. If unsure, say N.
|
||||||
|
|
||||||
|
config FIRMWARE_EDID
|
||||||
|
bool "Enable firmware EDID"
|
||||||
|
depends on FB
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This enables access to the EDID transferred from the firmware.
|
||||||
|
On the i386, this is from the Video BIOS. Enable this if DDC/I2C
|
||||||
|
transfers do not work for your driver and if you are using
|
||||||
|
nvidiafb, i810fb or savagefb.
|
||||||
|
|
||||||
|
In general, choosing Y for this option is safe. If you
|
||||||
|
experience extremely long delays while booting before you get
|
||||||
|
something on your display, try setting this to N. Matrox cards in
|
||||||
|
combination with certain motherboards and monitors are known to
|
||||||
|
suffer from this problem.
|
||||||
|
|
||||||
config FB_DDC
|
config FB_DDC
|
||||||
tristate
|
tristate
|
||||||
depends on FB && I2C && I2C_ALGOBIT
|
depends on FB
|
||||||
|
select I2C_ALGOBIT
|
||||||
|
select I2C
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config FB_CFB_FILLRECT
|
config FB_CFB_FILLRECT
|
||||||
|
@ -134,6 +141,9 @@ config FB_TILEBLITTING
|
||||||
This is particularly important to one driver, matroxfb. If
|
This is particularly important to one driver, matroxfb. If
|
||||||
unsure, say N.
|
unsure, say N.
|
||||||
|
|
||||||
|
comment "Frambuffer hardware drivers"
|
||||||
|
depends on FB
|
||||||
|
|
||||||
config FB_CIRRUS
|
config FB_CIRRUS
|
||||||
tristate "Cirrus Logic support"
|
tristate "Cirrus Logic support"
|
||||||
depends on FB && (ZORRO || PCI)
|
depends on FB && (ZORRO || PCI)
|
||||||
|
@ -671,6 +681,7 @@ config FB_NVIDIA
|
||||||
depends on FB && PCI
|
depends on FB && PCI
|
||||||
select I2C_ALGOBIT if FB_NVIDIA_I2C
|
select I2C_ALGOBIT if FB_NVIDIA_I2C
|
||||||
select I2C if FB_NVIDIA_I2C
|
select I2C if FB_NVIDIA_I2C
|
||||||
|
select FB_BACKLIGHT if FB_NVIDIA_BACKLIGHT
|
||||||
select FB_MODE_HELPERS
|
select FB_MODE_HELPERS
|
||||||
select FB_CFB_FILLRECT
|
select FB_CFB_FILLRECT
|
||||||
select FB_CFB_COPYAREA
|
select FB_CFB_COPYAREA
|
||||||
|
@ -699,8 +710,7 @@ config FB_NVIDIA_I2C
|
||||||
|
|
||||||
config FB_NVIDIA_BACKLIGHT
|
config FB_NVIDIA_BACKLIGHT
|
||||||
bool "Support for backlight control"
|
bool "Support for backlight control"
|
||||||
depends on FB_NVIDIA && PMAC_BACKLIGHT
|
depends on FB_NVIDIA
|
||||||
select FB_BACKLIGHT
|
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Say Y here if you want to control the backlight of your display.
|
Say Y here if you want to control the backlight of your display.
|
||||||
|
@ -708,9 +718,8 @@ config FB_NVIDIA_BACKLIGHT
|
||||||
config FB_RIVA
|
config FB_RIVA
|
||||||
tristate "nVidia Riva support"
|
tristate "nVidia Riva support"
|
||||||
depends on FB && PCI
|
depends on FB && PCI
|
||||||
select I2C_ALGOBIT if FB_RIVA_I2C
|
|
||||||
select I2C if FB_RIVA_I2C
|
|
||||||
select FB_DDC if FB_RIVA_I2C
|
select FB_DDC if FB_RIVA_I2C
|
||||||
|
select FB_BACKLIGHT if FB_RIVA_BACKLIGHT
|
||||||
select FB_MODE_HELPERS
|
select FB_MODE_HELPERS
|
||||||
select FB_CFB_FILLRECT
|
select FB_CFB_FILLRECT
|
||||||
select FB_CFB_COPYAREA
|
select FB_CFB_COPYAREA
|
||||||
|
@ -747,8 +756,7 @@ config FB_RIVA_DEBUG
|
||||||
|
|
||||||
config FB_RIVA_BACKLIGHT
|
config FB_RIVA_BACKLIGHT
|
||||||
bool "Support for backlight control"
|
bool "Support for backlight control"
|
||||||
depends on FB_RIVA && PMAC_BACKLIGHT
|
depends on FB_RIVA
|
||||||
select FB_BACKLIGHT
|
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Say Y here if you want to control the backlight of your display.
|
Say Y here if you want to control the backlight of your display.
|
||||||
|
@ -798,8 +806,6 @@ config FB_I810_GTF
|
||||||
config FB_I810_I2C
|
config FB_I810_I2C
|
||||||
bool "Enable DDC Support"
|
bool "Enable DDC Support"
|
||||||
depends on FB_I810 && FB_I810_GTF
|
depends on FB_I810 && FB_I810_GTF
|
||||||
select I2C
|
|
||||||
select I2C_ALGOBIT
|
|
||||||
select FB_DDC
|
select FB_DDC
|
||||||
help
|
help
|
||||||
|
|
||||||
|
@ -989,9 +995,8 @@ config FB_MATROX_MULTIHEAD
|
||||||
config FB_RADEON
|
config FB_RADEON
|
||||||
tristate "ATI Radeon display support"
|
tristate "ATI Radeon display support"
|
||||||
depends on FB && PCI
|
depends on FB && PCI
|
||||||
select I2C_ALGOBIT if FB_RADEON_I2C
|
|
||||||
select I2C if FB_RADEON_I2C
|
|
||||||
select FB_DDC if FB_RADEON_I2C
|
select FB_DDC if FB_RADEON_I2C
|
||||||
|
select FB_BACKLIGHT if FB_RADEON_BACKLIGHT
|
||||||
select FB_MODE_HELPERS
|
select FB_MODE_HELPERS
|
||||||
select FB_CFB_FILLRECT
|
select FB_CFB_FILLRECT
|
||||||
select FB_CFB_COPYAREA
|
select FB_CFB_COPYAREA
|
||||||
|
@ -1021,8 +1026,7 @@ config FB_RADEON_I2C
|
||||||
|
|
||||||
config FB_RADEON_BACKLIGHT
|
config FB_RADEON_BACKLIGHT
|
||||||
bool "Support for backlight control"
|
bool "Support for backlight control"
|
||||||
depends on FB_RADEON && PMAC_BACKLIGHT
|
depends on FB_RADEON
|
||||||
select FB_BACKLIGHT
|
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Say Y here if you want to control the backlight of your display.
|
Say Y here if you want to control the backlight of your display.
|
||||||
|
@ -1042,6 +1046,7 @@ config FB_ATY128
|
||||||
select FB_CFB_FILLRECT
|
select FB_CFB_FILLRECT
|
||||||
select FB_CFB_COPYAREA
|
select FB_CFB_COPYAREA
|
||||||
select FB_CFB_IMAGEBLIT
|
select FB_CFB_IMAGEBLIT
|
||||||
|
select FB_BACKLIGHT if FB_ATY128_BACKLIGHT
|
||||||
select FB_MACMODES if PPC_PMAC
|
select FB_MACMODES if PPC_PMAC
|
||||||
help
|
help
|
||||||
This driver supports graphics boards with the ATI Rage128 chips.
|
This driver supports graphics boards with the ATI Rage128 chips.
|
||||||
|
@ -1053,8 +1058,7 @@ config FB_ATY128
|
||||||
|
|
||||||
config FB_ATY128_BACKLIGHT
|
config FB_ATY128_BACKLIGHT
|
||||||
bool "Support for backlight control"
|
bool "Support for backlight control"
|
||||||
depends on FB_ATY128 && PMAC_BACKLIGHT
|
depends on FB_ATY128
|
||||||
select FB_BACKLIGHT
|
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Say Y here if you want to control the backlight of your display.
|
Say Y here if you want to control the backlight of your display.
|
||||||
|
@ -1065,6 +1069,7 @@ config FB_ATY
|
||||||
select FB_CFB_FILLRECT
|
select FB_CFB_FILLRECT
|
||||||
select FB_CFB_COPYAREA
|
select FB_CFB_COPYAREA
|
||||||
select FB_CFB_IMAGEBLIT
|
select FB_CFB_IMAGEBLIT
|
||||||
|
select FB_BACKLIGHT if FB_ATY_BACKLIGHT
|
||||||
select FB_MACMODES if PPC
|
select FB_MACMODES if PPC
|
||||||
help
|
help
|
||||||
This driver supports graphics boards with the ATI Mach64 chips.
|
This driver supports graphics boards with the ATI Mach64 chips.
|
||||||
|
@ -1103,8 +1108,7 @@ config FB_ATY_GX
|
||||||
|
|
||||||
config FB_ATY_BACKLIGHT
|
config FB_ATY_BACKLIGHT
|
||||||
bool "Support for backlight control"
|
bool "Support for backlight control"
|
||||||
depends on FB_ATY && PMAC_BACKLIGHT
|
depends on FB_ATY
|
||||||
select FB_BACKLIGHT
|
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Say Y here if you want to control the backlight of your display.
|
Say Y here if you want to control the backlight of your display.
|
||||||
|
@ -1123,8 +1127,6 @@ config FB_S3
|
||||||
config FB_SAVAGE
|
config FB_SAVAGE
|
||||||
tristate "S3 Savage support"
|
tristate "S3 Savage support"
|
||||||
depends on FB && PCI && EXPERIMENTAL
|
depends on FB && PCI && EXPERIMENTAL
|
||||||
select I2C_ALGOBIT if FB_SAVAGE_I2C
|
|
||||||
select I2C if FB_SAVAGE_I2C
|
|
||||||
select FB_DDC if FB_SAVAGE_I2C
|
select FB_DDC if FB_SAVAGE_I2C
|
||||||
select FB_MODE_HELPERS
|
select FB_MODE_HELPERS
|
||||||
select FB_CFB_FILLRECT
|
select FB_CFB_FILLRECT
|
||||||
|
@ -1639,6 +1641,7 @@ config FB_VIRTUAL
|
||||||
the vfb_enable=1 option.
|
the vfb_enable=1 option.
|
||||||
|
|
||||||
If unsure, say N.
|
If unsure, say N.
|
||||||
|
|
||||||
if VT
|
if VT
|
||||||
source "drivers/video/console/Kconfig"
|
source "drivers/video/console/Kconfig"
|
||||||
endif
|
endif
|
||||||
|
@ -1647,9 +1650,5 @@ if FB || SGI_NEWPORT_CONSOLE
|
||||||
source "drivers/video/logo/Kconfig"
|
source "drivers/video/logo/Kconfig"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SYSFS
|
|
||||||
source "drivers/video/backlight/Kconfig"
|
|
||||||
endif
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
|
Reference in a new issue