aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/Kconfig
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2011-05-12 08:42:17 -0400
committerPaul Mundt <lethal@linux-sh.org>2011-05-24 03:16:51 -0400
commitb9b52cf4617bedccef64cee63ba8ec68b213bc21 (patch)
treed9bb56fff7a39abf1d8cd9b05b31de5cb867a177 /drivers/video/Kconfig
parentaf4a835bba5fe710b870b8ec8c294e2338cbb112 (diff)
video: mb862xxfb: Require either FB_MB862XX_PCI_GDC or FB_MB862XX_LIME
The driver can be built as either a PCI or platform (OF) driver. It might make sense to built it as both (though that is not currently possible) but it certainly doesn't make sense to build it as neither! Add dependencies and add a choice group to ensure that exactly one of FB_MB862XX_PCI_GDC and FB_MB862XX_LIME is selected. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Acked-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/Kconfig')
-rw-r--r--drivers/video/Kconfig13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index e37f1134f4e2..7326962565ce 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -2266,29 +2266,34 @@ config FB_METRONOME
2266config FB_MB862XX 2266config FB_MB862XX
2267 tristate "Fujitsu MB862xx GDC support" 2267 tristate "Fujitsu MB862xx GDC support"
2268 depends on FB 2268 depends on FB
2269 depends on PCI || (OF && PPC)
2269 select FB_CFB_FILLRECT 2270 select FB_CFB_FILLRECT
2270 select FB_CFB_COPYAREA 2271 select FB_CFB_COPYAREA
2271 select FB_CFB_IMAGEBLIT 2272 select FB_CFB_IMAGEBLIT
2272 ---help--- 2273 ---help---
2273 Frame buffer driver for Fujitsu Carmine/Coral-P(A)/Lime controllers. 2274 Frame buffer driver for Fujitsu Carmine/Coral-P(A)/Lime controllers.
2274 2275
2276choice
2277 prompt "GDC variant"
2278 depends on FB_MB862XX
2279
2275config FB_MB862XX_PCI_GDC 2280config FB_MB862XX_PCI_GDC
2276 bool "Carmine/Coral-P(A) GDC" 2281 bool "Carmine/Coral-P(A) GDC"
2277 depends on PCI && FB_MB862XX 2282 depends on PCI
2278 ---help--- 2283 ---help---
2279 This enables framebuffer support for Fujitsu Carmine/Coral-P(A) 2284 This enables framebuffer support for Fujitsu Carmine/Coral-P(A)
2280 PCI graphics controller devices. 2285 PCI graphics controller devices.
2281 2286
2282config FB_MB862XX_LIME 2287config FB_MB862XX_LIME
2283 bool "Lime GDC" 2288 bool "Lime GDC"
2284 depends on FB_MB862XX 2289 depends on OF && PPC
2285 depends on OF && !FB_MB862XX_PCI_GDC
2286 depends on PPC
2287 select FB_FOREIGN_ENDIAN 2290 select FB_FOREIGN_ENDIAN
2288 select FB_LITTLE_ENDIAN 2291 select FB_LITTLE_ENDIAN
2289 ---help--- 2292 ---help---
2290 Framebuffer support for Fujitsu Lime GDC on host CPU bus. 2293 Framebuffer support for Fujitsu Lime GDC on host CPU bus.
2291 2294
2295endchoice
2296
2292config FB_EP93XX 2297config FB_EP93XX
2293 tristate "EP93XX frame buffer support" 2298 tristate "EP93XX frame buffer support"
2294 depends on FB && ARCH_EP93XX 2299 depends on FB && ARCH_EP93XX