aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2008-06-05 17:14:41 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-05 17:29:25 -0400
commit2bdd1b031b200d55c2512c8d7e0e9bdcf85d011f (patch)
tree519d34fdd9f286c933ab7d747b6ef92f0a3842fe /arch/x86/Kconfig
parent53c8ba95402be65d412a806cda3430f0e72cd107 (diff)
PCI/x86: fix up PCI stuff so that PCI_GOANY supports OLPC
Previously, one would have to specifically choose CONFIG_OLPC and CONFIG_PCI_GOOLPC in order to enable PCI_OLPC. That doesn't really work for distro kernels, so this patch allows one to choose CONFIG_OLPC and CONFIG_PCI_GOANY in order to build in OLPC support in a generic kernel (as requested by Robert Millan). This also moves GOOLPC before GOANY in the menuconfig list. Finally, make pci_access_init return early if we detect OLPC hardware. There's no need to continue probing stuff, and pci_pcbios_init specifically trashes our settings (we didn't run into that before because PCI_GOANY wasn't supported). Signed-off-by: Andres Salomon <dilinger@debian.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r--arch/x86/Kconfig11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index dcbec34154cf..52e18e6d2ba0 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1508,13 +1508,13 @@ config PCI_GOMMCONFIG
1508config PCI_GODIRECT 1508config PCI_GODIRECT
1509 bool "Direct" 1509 bool "Direct"
1510 1510
1511config PCI_GOANY
1512 bool "Any"
1513
1514config PCI_GOOLPC 1511config PCI_GOOLPC
1515 bool "OLPC" 1512 bool "OLPC"
1516 depends on OLPC 1513 depends on OLPC
1517 1514
1515config PCI_GOANY
1516 bool "Any"
1517
1518endchoice 1518endchoice
1519 1519
1520config PCI_BIOS 1520config PCI_BIOS
@@ -1531,9 +1531,8 @@ config PCI_MMCONFIG
1531 depends on X86_32 && PCI && ACPI && (PCI_GOMMCONFIG || PCI_GOANY) 1531 depends on X86_32 && PCI && ACPI && (PCI_GOMMCONFIG || PCI_GOANY)
1532 1532
1533config PCI_OLPC 1533config PCI_OLPC
1534 bool 1534 def_bool y
1535 depends on PCI && PCI_GOOLPC 1535 depends on PCI && OLPC && (PCI_GOOLPC || PCI_GOANY)
1536 default y
1537 1536
1538config PCI_DOMAINS 1537config PCI_DOMAINS
1539 def_bool y 1538 def_bool y