aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2007-05-08 03:38:38 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:29 -0400
commitb2f594fd7adff7aae2d1664e72044926b0b906aa (patch)
tree94ebe01c6bc44e9c4b4101cd604c62c069187bae /drivers/video
parent22d832edcace45b26ced76efef6c863449e4e060 (diff)
fbdev: link vgastate.o using Kconfig
Instead of directly linking vgastate.o by individual drivers, create a Kconfig option VGASTATE which can be 'SELECT'ed by individual drivers instead. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/Kconfig11
-rw-r--r--drivers/video/Makefile14
2 files changed, 18 insertions, 7 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index bc9a12be1e33..d9aed1033442 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -7,6 +7,10 @@ menu "Graphics support"
7source "drivers/video/backlight/Kconfig" 7source "drivers/video/backlight/Kconfig"
8source "drivers/video/display/Kconfig" 8source "drivers/video/display/Kconfig"
9 9
10config VGASTATE
11 tristate
12 default n
13
10config FB 14config FB
11 tristate "Support for frame buffer devices" 15 tristate "Support for frame buffer devices"
12 ---help--- 16 ---help---
@@ -481,6 +485,7 @@ config FB_VGA16
481 select FB_CFB_FILLRECT 485 select FB_CFB_FILLRECT
482 select FB_CFB_COPYAREA 486 select FB_CFB_COPYAREA
483 select FB_CFB_IMAGEBLIT 487 select FB_CFB_IMAGEBLIT
488 select VGASTATE
484 help 489 help
485 This is the frame buffer device driver for VGA 16 color graphic 490 This is the frame buffer device driver for VGA 16 color graphic
486 cards. Say Y if you have such a card. 491 cards. Say Y if you have such a card.
@@ -716,6 +721,7 @@ config FB_NVIDIA
716 select FB_CFB_COPYAREA 721 select FB_CFB_COPYAREA
717 select FB_CFB_IMAGEBLIT 722 select FB_CFB_IMAGEBLIT
718 select BITREVERSE 723 select BITREVERSE
724 select VGASTATE
719 help 725 help
720 This driver supports graphics boards with the nVidia chips, TNT 726 This driver supports graphics boards with the nVidia chips, TNT
721 and newer. For very old chipsets, such as the RIVA128, then use 727 and newer. For very old chipsets, such as the RIVA128, then use
@@ -754,6 +760,7 @@ config FB_RIVA
754 select FB_CFB_COPYAREA 760 select FB_CFB_COPYAREA
755 select FB_CFB_IMAGEBLIT 761 select FB_CFB_IMAGEBLIT
756 select BITREVERSE 762 select BITREVERSE
763 select VGASTATE
757 help 764 help
758 This driver supports graphics boards with the nVidia Riva/Geforce 765 This driver supports graphics boards with the nVidia Riva/Geforce
759 chips. 766 chips.
@@ -800,6 +807,7 @@ config FB_I810
800 select FB_CFB_FILLRECT 807 select FB_CFB_FILLRECT
801 select FB_CFB_COPYAREA 808 select FB_CFB_COPYAREA
802 select FB_CFB_IMAGEBLIT 809 select FB_CFB_IMAGEBLIT
810 select VGASTATE
803 help 811 help
804 This driver supports the on-board graphics built in to the Intel 810 812 This driver supports the on-board graphics built in to the Intel 810
805 and 815 chipsets. Say Y if you have and plan to use such a board. 813 and 815 chipsets. Say Y if you have and plan to use such a board.
@@ -1150,6 +1158,7 @@ config FB_S3
1150 select FB_CFB_IMAGEBLIT 1158 select FB_CFB_IMAGEBLIT
1151 select FB_TILEBLITTING 1159 select FB_TILEBLITTING
1152 select FB_SVGALIB 1160 select FB_SVGALIB
1161 select VGASTATE
1153 ---help--- 1162 ---help---
1154 Driver for graphics boards with S3 Trio / S3 Virge chip. 1163 Driver for graphics boards with S3 Trio / S3 Virge chip.
1155 1164
@@ -1160,6 +1169,7 @@ config FB_SAVAGE
1160 select FB_CFB_FILLRECT 1169 select FB_CFB_FILLRECT
1161 select FB_CFB_COPYAREA 1170 select FB_CFB_COPYAREA
1162 select FB_CFB_IMAGEBLIT 1171 select FB_CFB_IMAGEBLIT
1172 select VGASTATE
1163 help 1173 help
1164 This driver supports notebooks and computers with S3 Savage PCI/AGP 1174 This driver supports notebooks and computers with S3 Savage PCI/AGP
1165 chips. 1175 chips.
@@ -1226,6 +1236,7 @@ config FB_NEOMAGIC
1226 select FB_CFB_FILLRECT 1236 select FB_CFB_FILLRECT
1227 select FB_CFB_COPYAREA 1237 select FB_CFB_COPYAREA
1228 select FB_CFB_IMAGEBLIT 1238 select FB_CFB_IMAGEBLIT
1239 select VGASTATE
1229 help 1240 help
1230 This driver supports notebooks with NeoMagic PCI chips. 1241 This driver supports notebooks with NeoMagic PCI chips.
1231 Say Y if you have such a graphics card. 1242 Say Y if you have such a graphics card.
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index 1e1845d7ecce..cd94375c3fc1 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -4,6 +4,7 @@
4 4
5# Each configuration option enables a list of files. 5# Each configuration option enables a list of files.
6 6
7obj-$(CONFIG_VGASTATE) += vgastate.o
7obj-y += fb_notify.o 8obj-y += fb_notify.o
8obj-$(CONFIG_FB) += fb.o 9obj-$(CONFIG_FB) += fb.o
9fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \ 10fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o \
@@ -31,18 +32,17 @@ obj-$(CONFIG_FB_PM2) += pm2fb.o
31obj-$(CONFIG_FB_PM3) += pm3fb.o 32obj-$(CONFIG_FB_PM3) += pm3fb.o
32 33
33obj-$(CONFIG_FB_MATROX) += matrox/ 34obj-$(CONFIG_FB_MATROX) += matrox/
34obj-$(CONFIG_FB_RIVA) += riva/ vgastate.o 35obj-$(CONFIG_FB_RIVA) += riva/
35obj-$(CONFIG_FB_NVIDIA) += nvidia/ vgastate.o 36obj-$(CONFIG_FB_NVIDIA) += nvidia/
36obj-$(CONFIG_FB_ATY) += aty/ macmodes.o 37obj-$(CONFIG_FB_ATY) += aty/ macmodes.o
37obj-$(CONFIG_FB_ATY128) += aty/ macmodes.o 38obj-$(CONFIG_FB_ATY128) += aty/ macmodes.o
38obj-$(CONFIG_FB_RADEON) += aty/ 39obj-$(CONFIG_FB_RADEON) += aty/
39obj-$(CONFIG_FB_SIS) += sis/ 40obj-$(CONFIG_FB_SIS) += sis/
40obj-$(CONFIG_FB_KYRO) += kyro/ 41obj-$(CONFIG_FB_KYRO) += kyro/
41obj-$(CONFIG_FB_SAVAGE) += savage/ vgastate.o 42obj-$(CONFIG_FB_SAVAGE) += savage/
42obj-$(CONFIG_FB_GEODE) += geode/ 43obj-$(CONFIG_FB_GEODE) += geode/
43obj-$(CONFIG_FB_MBX) += mbx/ 44obj-$(CONFIG_FB_MBX) += mbx/
44obj-$(CONFIG_FB_I810) += vgastate.o 45obj-$(CONFIG_FB_NEOMAGIC) += neofb.o
45obj-$(CONFIG_FB_NEOMAGIC) += neofb.o vgastate.o
46obj-$(CONFIG_FB_3DFX) += tdfxfb.o 46obj-$(CONFIG_FB_3DFX) += tdfxfb.o
47obj-$(CONFIG_FB_CONTROL) += controlfb.o 47obj-$(CONFIG_FB_CONTROL) += controlfb.o
48obj-$(CONFIG_FB_PLATINUM) += platinumfb.o 48obj-$(CONFIG_FB_PLATINUM) += platinumfb.o
@@ -52,7 +52,7 @@ obj-$(CONFIG_FB_IMSTT) += imsttfb.o
52obj-$(CONFIG_FB_FM2) += fm2fb.o 52obj-$(CONFIG_FB_FM2) += fm2fb.o
53obj-$(CONFIG_FB_CYBLA) += cyblafb.o 53obj-$(CONFIG_FB_CYBLA) += cyblafb.o
54obj-$(CONFIG_FB_TRIDENT) += tridentfb.o 54obj-$(CONFIG_FB_TRIDENT) += tridentfb.o
55obj-$(CONFIG_FB_S3) += s3fb.o vgastate.o 55obj-$(CONFIG_FB_S3) += s3fb.o
56obj-$(CONFIG_FB_STI) += stifb.o 56obj-$(CONFIG_FB_STI) += stifb.o
57obj-$(CONFIG_FB_FFB) += ffb.o sbuslib.o 57obj-$(CONFIG_FB_FFB) += ffb.o sbuslib.o
58obj-$(CONFIG_FB_CG6) += cg6.o sbuslib.o 58obj-$(CONFIG_FB_CG6) += cg6.o sbuslib.o
@@ -108,7 +108,7 @@ obj-$(CONFIG_FB_SM501) += sm501fb.o
108# Platform or fallback drivers go here 108# Platform or fallback drivers go here
109obj-$(CONFIG_FB_VESA) += vesafb.o 109obj-$(CONFIG_FB_VESA) += vesafb.o
110obj-$(CONFIG_FB_IMAC) += imacfb.o 110obj-$(CONFIG_FB_IMAC) += imacfb.o
111obj-$(CONFIG_FB_VGA16) += vga16fb.o vgastate.o 111obj-$(CONFIG_FB_VGA16) += vga16fb.o
112obj-$(CONFIG_FB_OF) += offb.o 112obj-$(CONFIG_FB_OF) += offb.o
113 113
114# the test framebuffer is last 114# the test framebuffer is last