diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-26 02:36:55 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-26 02:36:55 -0400 |
commit | 25635c71e44111a6bd48f342e144e2fc02d0a314 (patch) | |
tree | 794b0428a72fefa53a0d9d709247a60a5b4527da /arch/powerpc | |
parent | d9953105ce000abcfa988d0c160b2662186f5879 (diff) |
ppc: Use the indirect_pci.c from arch/powerpc/sysdev
This defines a CONFIG_INDIRECT_PCI symbol to control whether it
gets used or not, and fixes the Kconfig to select that symbol for
platforms that need it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/Kconfig | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/Kconfig | 8 | ||||
-rw-r--r-- | arch/powerpc/sysdev/Makefile | 3 |
3 files changed, 19 insertions, 2 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 27f122e1f849..a3451d5bb788 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -280,11 +280,13 @@ config PPC_PSERIES | |||
280 | config PPC_CHRP | 280 | config PPC_CHRP |
281 | bool " Common Hardware Reference Platform (CHRP) based machines" | 281 | bool " Common Hardware Reference Platform (CHRP) based machines" |
282 | depends on PPC_MULTIPLATFORM && PPC32 | 282 | depends on PPC_MULTIPLATFORM && PPC32 |
283 | select PPC_INDIRECT_PCI | ||
283 | default y | 284 | default y |
284 | 285 | ||
285 | config PPC_PMAC | 286 | config PPC_PMAC |
286 | bool " Apple PowerMac based machines" | 287 | bool " Apple PowerMac based machines" |
287 | depends on PPC_MULTIPLATFORM | 288 | depends on PPC_MULTIPLATFORM |
289 | select PPC_INDIRECT_PCI if PPC32 | ||
288 | default y | 290 | default y |
289 | 291 | ||
290 | config PPC_PMAC64 | 292 | config PPC_PMAC64 |
@@ -296,6 +298,7 @@ config PPC_PMAC64 | |||
296 | config PPC_PREP | 298 | config PPC_PREP |
297 | bool " PowerPC Reference Platform (PReP) based machines" | 299 | bool " PowerPC Reference Platform (PReP) based machines" |
298 | depends on PPC_MULTIPLATFORM && PPC32 | 300 | depends on PPC_MULTIPLATFORM && PPC32 |
301 | select PPC_INDIRECT_PCI | ||
299 | default y | 302 | default y |
300 | 303 | ||
301 | config PPC_MAPLE | 304 | config PPC_MAPLE |
@@ -637,6 +640,12 @@ config GENERIC_ISA_DMA | |||
637 | depends on PPC64 || POWER4 || 6xx && !CPM2 | 640 | depends on PPC64 || POWER4 || 6xx && !CPM2 |
638 | default y | 641 | default y |
639 | 642 | ||
643 | config PPC_INDIRECT_PCI | ||
644 | bool | ||
645 | depends on PCI | ||
646 | default y if 40x || 44x || 85xx || 83xx | ||
647 | default n | ||
648 | |||
640 | config EISA | 649 | config EISA |
641 | bool | 650 | bool |
642 | 651 | ||
@@ -677,6 +686,7 @@ config PCI_QSPAN | |||
677 | config PCI_8260 | 686 | config PCI_8260 |
678 | bool | 687 | bool |
679 | depends on PCI && 8260 | 688 | depends on PCI && 8260 |
689 | select PPC_INDIRECT_PCI | ||
680 | default y | 690 | default y |
681 | 691 | ||
682 | config 8260_PCI9 | 692 | config 8260_PCI9 |
diff --git a/arch/powerpc/platforms/embedded6xx/Kconfig b/arch/powerpc/platforms/embedded6xx/Kconfig index 2d755b79d51f..784b41e19465 100644 --- a/arch/powerpc/platforms/embedded6xx/Kconfig +++ b/arch/powerpc/platforms/embedded6xx/Kconfig | |||
@@ -27,6 +27,7 @@ config CHESTNUT | |||
27 | 27 | ||
28 | config SPRUCE | 28 | config SPRUCE |
29 | bool "IBM-Spruce" | 29 | bool "IBM-Spruce" |
30 | select PPC_INDIRECT_PCI | ||
30 | 31 | ||
31 | config HDPU | 32 | config HDPU |
32 | bool "Sky-HDPU" | 33 | bool "Sky-HDPU" |
@@ -50,15 +51,19 @@ config LOPEC | |||
50 | 51 | ||
51 | config MVME5100 | 52 | config MVME5100 |
52 | bool "Motorola-MVME5100" | 53 | bool "Motorola-MVME5100" |
54 | select PPC_INDIRECT_PCI | ||
53 | 55 | ||
54 | config PPLUS | 56 | config PPLUS |
55 | bool "Motorola-PowerPlus" | 57 | bool "Motorola-PowerPlus" |
58 | select PPC_INDIRECT_PCI | ||
56 | 59 | ||
57 | config PRPMC750 | 60 | config PRPMC750 |
58 | bool "Motorola-PrPMC750" | 61 | bool "Motorola-PrPMC750" |
62 | select PPC_INDIRECT_PCI | ||
59 | 63 | ||
60 | config PRPMC800 | 64 | config PRPMC800 |
61 | bool "Motorola-PrPMC800" | 65 | bool "Motorola-PrPMC800" |
66 | select PPC_INDIRECT_PCI | ||
62 | 67 | ||
63 | config SANDPOINT | 68 | config SANDPOINT |
64 | bool "Motorola-Sandpoint" | 69 | bool "Motorola-Sandpoint" |
@@ -74,6 +79,7 @@ config PAL4 | |||
74 | 79 | ||
75 | config GEMINI | 80 | config GEMINI |
76 | bool "Synergy-Gemini" | 81 | bool "Synergy-Gemini" |
82 | select PPC_INDIRECT_PCI | ||
77 | depends on BROKEN | 83 | depends on BROKEN |
78 | help | 84 | help |
79 | Select Gemini if configuring for a Synergy Microsystems' Gemini | 85 | Select Gemini if configuring for a Synergy Microsystems' Gemini |
@@ -226,6 +232,7 @@ config MV64360 # Really MV64360 & MV64460 | |||
226 | config MV64X60 | 232 | config MV64X60 |
227 | bool | 233 | bool |
228 | depends on (GT64260 || MV64360) | 234 | depends on (GT64260 || MV64360) |
235 | select PPC_INDIRECT_PCI | ||
229 | default y | 236 | default y |
230 | 237 | ||
231 | menu "Set bridge options" | 238 | menu "Set bridge options" |
@@ -274,6 +281,7 @@ config EPIC_SERIAL_MODE | |||
274 | config MPC10X_BRIDGE | 281 | config MPC10X_BRIDGE |
275 | bool | 282 | bool |
276 | depends on POWERPMC250 || LOPEC || SANDPOINT | 283 | depends on POWERPMC250 || LOPEC || SANDPOINT |
284 | select PPC_INDIRECT_PCI | ||
277 | default y | 285 | default y |
278 | 286 | ||
279 | config MPC10X_OPENPIC | 287 | config MPC10X_OPENPIC |
diff --git a/arch/powerpc/sysdev/Makefile b/arch/powerpc/sysdev/Makefile index c649f03acf68..e66fef652fac 100644 --- a/arch/powerpc/sysdev/Makefile +++ b/arch/powerpc/sysdev/Makefile | |||
@@ -1,3 +1,2 @@ | |||
1 | obj-$(CONFIG_MPIC) += mpic.o | 1 | obj-$(CONFIG_MPIC) += mpic.o |
2 | indirectpci-$(CONFIG_PPC_PMAC) = indirect_pci.o | 2 | obj-$(CONFIG_PPC_INDIRECT_PCI) += indirect_pci.o |
3 | obj-$(CONFIG_PPC32) += $(indirectpci-y) | ||