diff options
author | James Simmons <jsimmons@infradead.org> | 2007-02-10 09:15:43 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-02-20 03:38:46 -0500 |
commit | e0e34ef7f02915cfe50e501e9f32c24217177a96 (patch) | |
tree | af8fba1d60e4c0f32a8baf1e71d2fb4dad1eb7ab /drivers/video | |
parent | 37ce69a57ff217a4ca0871e9ee5aa58c052b7d86 (diff) |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/Kconfig | 73 |
1 files changed, 36 insertions, 37 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 8874cf2fd279..cd2ef0a1c320 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
@@ -4,20 +4,9 @@ | |||
4 | 4 | ||
5 | menu "Graphics support" | 5 | menu "Graphics support" |
6 | 6 | ||
7 | config FIRMWARE_EDID | 7 | if SYSFS |
8 | bool "Enable firmware EDID" | 8 | source "drivers/video/backlight/Kconfig" |
9 | default y | 9 | endif |
10 | ---help--- | ||
11 | This enables access to the EDID transferred from the firmware. | ||
12 | On the i386, this is from the Video BIOS. Enable this if DDC/I2C | ||
13 | transfers do not work for your driver and if you are using | ||
14 | nvidiafb, i810fb or savagefb. | ||
15 | |||
16 | In general, choosing Y for this option is safe. If you | ||
17 | experience extremely long delays while booting before you get | ||
18 | something on your display, try setting this to N. Matrox cards in | ||
19 | combination with certain motherboards and monitors are known to | ||
20 | suffer from this problem. | ||
21 | 10 | ||
22 | config FB | 11 | config FB |
23 | tristate "Support for frame buffer devices" | 12 | tristate "Support for frame buffer devices" |
@@ -53,9 +42,27 @@ config FB | |||
53 | (e.g. an accelerated X server) and that are not frame buffer | 42 | (e.g. an accelerated X server) and that are not frame buffer |
54 | device-aware may cause unexpected results. If unsure, say N. | 43 | device-aware may cause unexpected results. If unsure, say N. |
55 | 44 | ||
45 | config FIRMWARE_EDID | ||
46 | bool "Enable firmware EDID" | ||
47 | depends on FB | ||
48 | default n | ||
49 | ---help--- | ||
50 | This enables access to the EDID transferred from the firmware. | ||
51 | On the i386, this is from the Video BIOS. Enable this if DDC/I2C | ||
52 | transfers do not work for your driver and if you are using | ||
53 | nvidiafb, i810fb or savagefb. | ||
54 | |||
55 | In general, choosing Y for this option is safe. If you | ||
56 | experience extremely long delays while booting before you get | ||
57 | something on your display, try setting this to N. Matrox cards in | ||
58 | combination with certain motherboards and monitors are known to | ||
59 | suffer from this problem. | ||
60 | |||
56 | config FB_DDC | 61 | config FB_DDC |
57 | tristate | 62 | tristate |
58 | depends on FB && I2C && I2C_ALGOBIT | 63 | depends on FB |
64 | select I2C_ALGOBIT | ||
65 | select I2C | ||
59 | default n | 66 | default n |
60 | 67 | ||
61 | config FB_CFB_FILLRECT | 68 | config FB_CFB_FILLRECT |
@@ -134,6 +141,9 @@ config FB_TILEBLITTING | |||
134 | This is particularly important to one driver, matroxfb. If | 141 | This is particularly important to one driver, matroxfb. If |
135 | unsure, say N. | 142 | unsure, say N. |
136 | 143 | ||
144 | comment "Frambuffer hardware drivers" | ||
145 | depends on FB | ||
146 | |||
137 | config FB_CIRRUS | 147 | config FB_CIRRUS |
138 | tristate "Cirrus Logic support" | 148 | tristate "Cirrus Logic support" |
139 | depends on FB && (ZORRO || PCI) | 149 | depends on FB && (ZORRO || PCI) |
@@ -671,6 +681,7 @@ config FB_NVIDIA | |||
671 | depends on FB && PCI | 681 | depends on FB && PCI |
672 | select I2C_ALGOBIT if FB_NVIDIA_I2C | 682 | select I2C_ALGOBIT if FB_NVIDIA_I2C |
673 | select I2C if FB_NVIDIA_I2C | 683 | select I2C if FB_NVIDIA_I2C |
684 | select FB_BACKLIGHT if FB_NVIDIA_BACKLIGHT | ||
674 | select FB_MODE_HELPERS | 685 | select FB_MODE_HELPERS |
675 | select FB_CFB_FILLRECT | 686 | select FB_CFB_FILLRECT |
676 | select FB_CFB_COPYAREA | 687 | select FB_CFB_COPYAREA |
@@ -699,8 +710,7 @@ config FB_NVIDIA_I2C | |||
699 | 710 | ||
700 | config FB_NVIDIA_BACKLIGHT | 711 | config FB_NVIDIA_BACKLIGHT |
701 | bool "Support for backlight control" | 712 | bool "Support for backlight control" |
702 | depends on FB_NVIDIA && PMAC_BACKLIGHT | 713 | depends on FB_NVIDIA |
703 | select FB_BACKLIGHT | ||
704 | default y | 714 | default y |
705 | help | 715 | help |
706 | Say Y here if you want to control the backlight of your display. | 716 | Say Y here if you want to control the backlight of your display. |
@@ -708,9 +718,8 @@ config FB_NVIDIA_BACKLIGHT | |||
708 | config FB_RIVA | 718 | config FB_RIVA |
709 | tristate "nVidia Riva support" | 719 | tristate "nVidia Riva support" |
710 | depends on FB && PCI | 720 | depends on FB && PCI |
711 | select I2C_ALGOBIT if FB_RIVA_I2C | ||
712 | select I2C if FB_RIVA_I2C | ||
713 | select FB_DDC if FB_RIVA_I2C | 721 | select FB_DDC if FB_RIVA_I2C |
722 | select FB_BACKLIGHT if FB_RIVA_BACKLIGHT | ||
714 | select FB_MODE_HELPERS | 723 | select FB_MODE_HELPERS |
715 | select FB_CFB_FILLRECT | 724 | select FB_CFB_FILLRECT |
716 | select FB_CFB_COPYAREA | 725 | select FB_CFB_COPYAREA |
@@ -747,8 +756,7 @@ config FB_RIVA_DEBUG | |||
747 | 756 | ||
748 | config FB_RIVA_BACKLIGHT | 757 | config FB_RIVA_BACKLIGHT |
749 | bool "Support for backlight control" | 758 | bool "Support for backlight control" |
750 | depends on FB_RIVA && PMAC_BACKLIGHT | 759 | depends on FB_RIVA |
751 | select FB_BACKLIGHT | ||
752 | default y | 760 | default y |
753 | help | 761 | help |
754 | Say Y here if you want to control the backlight of your display. | 762 | Say Y here if you want to control the backlight of your display. |
@@ -798,8 +806,6 @@ config FB_I810_GTF | |||
798 | config FB_I810_I2C | 806 | config FB_I810_I2C |
799 | bool "Enable DDC Support" | 807 | bool "Enable DDC Support" |
800 | depends on FB_I810 && FB_I810_GTF | 808 | depends on FB_I810 && FB_I810_GTF |
801 | select I2C | ||
802 | select I2C_ALGOBIT | ||
803 | select FB_DDC | 809 | select FB_DDC |
804 | help | 810 | help |
805 | 811 | ||
@@ -989,9 +995,8 @@ config FB_MATROX_MULTIHEAD | |||
989 | config FB_RADEON | 995 | config FB_RADEON |
990 | tristate "ATI Radeon display support" | 996 | tristate "ATI Radeon display support" |
991 | depends on FB && PCI | 997 | depends on FB && PCI |
992 | select I2C_ALGOBIT if FB_RADEON_I2C | ||
993 | select I2C if FB_RADEON_I2C | ||
994 | select FB_DDC if FB_RADEON_I2C | 998 | select FB_DDC if FB_RADEON_I2C |
999 | select FB_BACKLIGHT if FB_RADEON_BACKLIGHT | ||
995 | select FB_MODE_HELPERS | 1000 | select FB_MODE_HELPERS |
996 | select FB_CFB_FILLRECT | 1001 | select FB_CFB_FILLRECT |
997 | select FB_CFB_COPYAREA | 1002 | select FB_CFB_COPYAREA |
@@ -1021,8 +1026,7 @@ config FB_RADEON_I2C | |||
1021 | 1026 | ||
1022 | config FB_RADEON_BACKLIGHT | 1027 | config FB_RADEON_BACKLIGHT |
1023 | bool "Support for backlight control" | 1028 | bool "Support for backlight control" |
1024 | depends on FB_RADEON && PMAC_BACKLIGHT | 1029 | depends on FB_RADEON |
1025 | select FB_BACKLIGHT | ||
1026 | default y | 1030 | default y |
1027 | help | 1031 | help |
1028 | Say Y here if you want to control the backlight of your display. | 1032 | Say Y here if you want to control the backlight of your display. |
@@ -1042,6 +1046,7 @@ config FB_ATY128 | |||
1042 | select FB_CFB_FILLRECT | 1046 | select FB_CFB_FILLRECT |
1043 | select FB_CFB_COPYAREA | 1047 | select FB_CFB_COPYAREA |
1044 | select FB_CFB_IMAGEBLIT | 1048 | select FB_CFB_IMAGEBLIT |
1049 | select FB_BACKLIGHT if FB_ATY128_BACKLIGHT | ||
1045 | select FB_MACMODES if PPC_PMAC | 1050 | select FB_MACMODES if PPC_PMAC |
1046 | help | 1051 | help |
1047 | This driver supports graphics boards with the ATI Rage128 chips. | 1052 | This driver supports graphics boards with the ATI Rage128 chips. |
@@ -1053,8 +1058,7 @@ config FB_ATY128 | |||
1053 | 1058 | ||
1054 | config FB_ATY128_BACKLIGHT | 1059 | config FB_ATY128_BACKLIGHT |
1055 | bool "Support for backlight control" | 1060 | bool "Support for backlight control" |
1056 | depends on FB_ATY128 && PMAC_BACKLIGHT | 1061 | depends on FB_ATY128 |
1057 | select FB_BACKLIGHT | ||
1058 | default y | 1062 | default y |
1059 | help | 1063 | help |
1060 | Say Y here if you want to control the backlight of your display. | 1064 | Say Y here if you want to control the backlight of your display. |
@@ -1065,6 +1069,7 @@ config FB_ATY | |||
1065 | select FB_CFB_FILLRECT | 1069 | select FB_CFB_FILLRECT |
1066 | select FB_CFB_COPYAREA | 1070 | select FB_CFB_COPYAREA |
1067 | select FB_CFB_IMAGEBLIT | 1071 | select FB_CFB_IMAGEBLIT |
1072 | select FB_BACKLIGHT if FB_ATY_BACKLIGHT | ||
1068 | select FB_MACMODES if PPC | 1073 | select FB_MACMODES if PPC |
1069 | help | 1074 | help |
1070 | This driver supports graphics boards with the ATI Mach64 chips. | 1075 | This driver supports graphics boards with the ATI Mach64 chips. |
@@ -1103,8 +1108,7 @@ config FB_ATY_GX | |||
1103 | 1108 | ||
1104 | config FB_ATY_BACKLIGHT | 1109 | config FB_ATY_BACKLIGHT |
1105 | bool "Support for backlight control" | 1110 | bool "Support for backlight control" |
1106 | depends on FB_ATY && PMAC_BACKLIGHT | 1111 | depends on FB_ATY |
1107 | select FB_BACKLIGHT | ||
1108 | default y | 1112 | default y |
1109 | help | 1113 | help |
1110 | Say Y here if you want to control the backlight of your display. | 1114 | Say Y here if you want to control the backlight of your display. |
@@ -1123,8 +1127,6 @@ config FB_S3 | |||
1123 | config FB_SAVAGE | 1127 | config FB_SAVAGE |
1124 | tristate "S3 Savage support" | 1128 | tristate "S3 Savage support" |
1125 | depends on FB && PCI && EXPERIMENTAL | 1129 | depends on FB && PCI && EXPERIMENTAL |
1126 | select I2C_ALGOBIT if FB_SAVAGE_I2C | ||
1127 | select I2C if FB_SAVAGE_I2C | ||
1128 | select FB_DDC if FB_SAVAGE_I2C | 1130 | select FB_DDC if FB_SAVAGE_I2C |
1129 | select FB_MODE_HELPERS | 1131 | select FB_MODE_HELPERS |
1130 | select FB_CFB_FILLRECT | 1132 | select FB_CFB_FILLRECT |
@@ -1639,6 +1641,7 @@ config FB_VIRTUAL | |||
1639 | the vfb_enable=1 option. | 1641 | the vfb_enable=1 option. |
1640 | 1642 | ||
1641 | If unsure, say N. | 1643 | If unsure, say N. |
1644 | |||
1642 | if VT | 1645 | if VT |
1643 | source "drivers/video/console/Kconfig" | 1646 | source "drivers/video/console/Kconfig" |
1644 | endif | 1647 | endif |
@@ -1647,9 +1650,5 @@ if FB || SGI_NEWPORT_CONSOLE | |||
1647 | source "drivers/video/logo/Kconfig" | 1650 | source "drivers/video/logo/Kconfig" |
1648 | endif | 1651 | endif |
1649 | 1652 | ||
1650 | if SYSFS | ||
1651 | source "drivers/video/backlight/Kconfig" | ||
1652 | endif | ||
1653 | |||
1654 | endmenu | 1653 | endmenu |
1655 | 1654 | ||