Skip to content

Commit

Permalink
ppc: Use the indirect_pci.c from arch/powerpc/sysdev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed Oct 26, 2005
1 parent d995310 commit 25635c7
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 156 deletions.
10 changes: 10 additions & 0 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,13 @@ config PPC_PSERIES
config PPC_CHRP
bool " Common Hardware Reference Platform (CHRP) based machines"
depends on PPC_MULTIPLATFORM && PPC32
select PPC_INDIRECT_PCI
default y

config PPC_PMAC
bool " Apple PowerMac based machines"
depends on PPC_MULTIPLATFORM
select PPC_INDIRECT_PCI if PPC32
default y

config PPC_PMAC64
Expand All @@ -296,6 +298,7 @@ config PPC_PMAC64
config PPC_PREP
bool " PowerPC Reference Platform (PReP) based machines"
depends on PPC_MULTIPLATFORM && PPC32
select PPC_INDIRECT_PCI
default y

config PPC_MAPLE
Expand Down Expand Up @@ -637,6 +640,12 @@ config GENERIC_ISA_DMA
depends on PPC64 || POWER4 || 6xx && !CPM2
default y

config PPC_INDIRECT_PCI
bool
depends on PCI
default y if 40x || 44x || 85xx || 83xx
default n

config EISA
bool

Expand Down Expand Up @@ -677,6 +686,7 @@ config PCI_QSPAN
config PCI_8260
bool
depends on PCI && 8260
select PPC_INDIRECT_PCI
default y

config 8260_PCI9
Expand Down
8 changes: 8 additions & 0 deletions arch/powerpc/platforms/embedded6xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ config CHESTNUT

config SPRUCE
bool "IBM-Spruce"
select PPC_INDIRECT_PCI

config HDPU
bool "Sky-HDPU"
Expand All @@ -50,15 +51,19 @@ config LOPEC

config MVME5100
bool "Motorola-MVME5100"
select PPC_INDIRECT_PCI

config PPLUS
bool "Motorola-PowerPlus"
select PPC_INDIRECT_PCI

config PRPMC750
bool "Motorola-PrPMC750"
select PPC_INDIRECT_PCI

config PRPMC800
bool "Motorola-PrPMC800"
select PPC_INDIRECT_PCI

config SANDPOINT
bool "Motorola-Sandpoint"
Expand All @@ -74,6 +79,7 @@ config PAL4

config GEMINI
bool "Synergy-Gemini"
select PPC_INDIRECT_PCI
depends on BROKEN
help
Select Gemini if configuring for a Synergy Microsystems' Gemini
Expand Down Expand Up @@ -226,6 +232,7 @@ config MV64360 # Really MV64360 & MV64460
config MV64X60
bool
depends on (GT64260 || MV64360)
select PPC_INDIRECT_PCI
default y

menu "Set bridge options"
Expand Down Expand Up @@ -274,6 +281,7 @@ config EPIC_SERIAL_MODE
config MPC10X_BRIDGE
bool
depends on POWERPMC250 || LOPEC || SANDPOINT
select PPC_INDIRECT_PCI
default y

config MPC10X_OPENPIC
Expand Down
3 changes: 1 addition & 2 deletions arch/powerpc/sysdev/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
obj-$(CONFIG_MPIC) += mpic.o
indirectpci-$(CONFIG_PPC_PMAC) = indirect_pci.o
obj-$(CONFIG_PPC32) += $(indirectpci-y)
obj-$(CONFIG_PPC_INDIRECT_PCI) += indirect_pci.o
18 changes: 18 additions & 0 deletions arch/ppc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ config CHESTNUT

config SPRUCE
bool "IBM-Spruce"
select PPC_INDIRECT_PCI

config HDPU
bool "Sky-HDPU"
Expand All @@ -591,15 +592,19 @@ config LOPEC

config MVME5100
bool "Motorola-MVME5100"
select PPC_INDIRECT_PCI

config PPLUS
bool "Motorola-PowerPlus"
select PPC_INDIRECT_PCI

config PRPMC750
bool "Motorola-PrPMC750"
select PPC_INDIRECT_PCI

config PRPMC800
bool "Motorola-PrPMC800"
select PPC_INDIRECT_PCI

config SANDPOINT
bool "Motorola-Sandpoint"
Expand All @@ -616,6 +621,7 @@ config PAL4
config GEMINI
bool "Synergy-Gemini"
depends on BROKEN
select PPC_INDIRECT_PCI
help
Select Gemini if configuring for a Synergy Microsystems' Gemini
series Single Board Computer. More information is available at:
Expand Down Expand Up @@ -749,11 +755,13 @@ config CPM2
config PPC_CHRP
bool " Common Hardware Reference Platform (CHRP) based machines"
depends on PPC_MULTIPLATFORM
select PPC_INDIRECT_PCI
default y

config PPC_PMAC
bool " Apple PowerMac based machines"
depends on PPC_MULTIPLATFORM
select PPC_INDIRECT_PCI
default y

config PPC_PMAC64
Expand All @@ -764,6 +772,7 @@ config PPC_PMAC64
config PPC_PREP
bool " PowerPC Reference Platform (PReP) based machines"
depends on PPC_MULTIPLATFORM
select PPC_INDIRECT_PCI
default y

config PPC_OF
Expand Down Expand Up @@ -797,6 +806,7 @@ config MV64360 # Really MV64360 & MV64460
config MV64X60
bool
depends on (GT64260 || MV64360)
select PPC_INDIRECT_PCI
default y

menu "Set bridge options"
Expand Down Expand Up @@ -845,6 +855,7 @@ config EPIC_SERIAL_MODE
config MPC10X_BRIDGE
bool
depends on POWERPMC250 || LOPEC || SANDPOINT
select PPC_INDIRECT_PCI
default y

config MPC10X_OPENPIC
Expand Down Expand Up @@ -1139,6 +1150,12 @@ config GENERIC_ISA_DMA
depends on POWER3 || POWER4 || 6xx && !CPM2
default y

config PPC_INDIRECT_PCI
bool
depends on PCI
default y if 40x || 44x || 85xx || 83xx
default n

config EISA
bool
help
Expand Down Expand Up @@ -1182,6 +1199,7 @@ config PCI_QSPAN
config PCI_8260
bool
depends on PCI && 8260
select PPC_INDIRECT_PCI
default y

config 8260_PCI9
Expand Down
3 changes: 2 additions & 1 deletion arch/ppc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o

core-y += arch/ppc/kernel/ arch/powerpc/kernel/ \
arch/ppc/platforms/ \
arch/ppc/mm/ arch/ppc/lib/ arch/ppc/syslib/
arch/ppc/mm/ arch/ppc/lib/ \
arch/ppc/syslib/ arch/powerpc/sysdev/
core-$(CONFIG_4xx) += arch/ppc/platforms/4xx/
core-$(CONFIG_83xx) += arch/ppc/platforms/83xx/
core-$(CONFIG_85xx) += arch/ppc/platforms/85xx/
Expand Down
38 changes: 19 additions & 19 deletions arch/ppc/syslib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ obj-$(CONFIG_GEN_RTC) += todc_time.o
obj-$(CONFIG_PPC4xx_DMA) += ppc4xx_dma.o
obj-$(CONFIG_PPC4xx_EDMA) += ppc4xx_sgdma.o
ifeq ($(CONFIG_40x),y)
obj-$(CONFIG_PCI) += indirect_pci.o pci_auto.o ppc405_pci.o
obj-$(CONFIG_PCI) += pci_auto.o ppc405_pci.o
endif
endif
obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o $(wdt-mpc8xx-y) \
Expand All @@ -40,43 +40,43 @@ ifeq ($(CONFIG_8xx),y)
obj-$(CONFIG_PCI) += qspan_pci.o i8259.o
endif
obj-$(CONFIG_PPC_OF) += prom_init.o prom.o
obj-$(CONFIG_PPC_PMAC) += open_pic.o indirect_pci.o
obj-$(CONFIG_PPC_PMAC) += open_pic.o
obj-$(CONFIG_POWER4) += open_pic2.o
obj-$(CONFIG_PPC_CHRP) += open_pic.o indirect_pci.o i8259.o
obj-$(CONFIG_PPC_PREP) += open_pic.o indirect_pci.o i8259.o todc_time.o
obj-$(CONFIG_BAMBOO) += indirect_pci.o pci_auto.o todc_time.o
obj-$(CONFIG_PPC_CHRP) += open_pic.o i8259.o
obj-$(CONFIG_PPC_PREP) += open_pic.o i8259.o todc_time.o
obj-$(CONFIG_BAMBOO) += pci_auto.o todc_time.o
obj-$(CONFIG_CPCI690) += todc_time.o pci_auto.o
obj-$(CONFIG_EBONY) += indirect_pci.o pci_auto.o todc_time.o
obj-$(CONFIG_EBONY) += pci_auto.o todc_time.o
obj-$(CONFIG_EV64260) += todc_time.o pci_auto.o
obj-$(CONFIG_CHESTNUT) += mv64360_pic.o pci_auto.o
obj-$(CONFIG_GEMINI) += open_pic.o indirect_pci.o
obj-$(CONFIG_GEMINI) += open_pic.o
obj-$(CONFIG_GT64260) += gt64260_pic.o
obj-$(CONFIG_LOPEC) += i8259.o pci_auto.o todc_time.o
obj-$(CONFIG_HDPU) += pci_auto.o
obj-$(CONFIG_LUAN) += indirect_pci.o pci_auto.o todc_time.o
obj-$(CONFIG_LUAN) += pci_auto.o todc_time.o
obj-$(CONFIG_KATANA) += pci_auto.o
obj-$(CONFIG_MV64360) += mv64360_pic.o
obj-$(CONFIG_MV64X60) += mv64x60.o mv64x60_win.o indirect_pci.o
obj-$(CONFIG_MVME5100) += open_pic.o todc_time.o indirect_pci.o \
obj-$(CONFIG_MV64X60) += mv64x60.o mv64x60_win.o
obj-$(CONFIG_MVME5100) += open_pic.o todc_time.o \
pci_auto.o hawk_common.o
obj-$(CONFIG_MVME5100_IPMC761_PRESENT) += i8259.o
obj-$(CONFIG_OCOTEA) += indirect_pci.o pci_auto.o todc_time.o
obj-$(CONFIG_OCOTEA) += pci_auto.o todc_time.o
obj-$(CONFIG_PAL4) += cpc700_pic.o
obj-$(CONFIG_POWERPMC250) += pci_auto.o
obj-$(CONFIG_PPLUS) += hawk_common.o open_pic.o i8259.o \
indirect_pci.o todc_time.o pci_auto.o
obj-$(CONFIG_PRPMC750) += open_pic.o indirect_pci.o pci_auto.o \
todc_time.o pci_auto.o
obj-$(CONFIG_PRPMC750) += open_pic.o pci_auto.o \
hawk_common.o
obj-$(CONFIG_HARRIER) += harrier.o
obj-$(CONFIG_PRPMC800) += open_pic.o indirect_pci.o pci_auto.o
obj-$(CONFIG_PRPMC800) += open_pic.o pci_auto.o
obj-$(CONFIG_RADSTONE_PPC7D) += i8259.o pci_auto.o
obj-$(CONFIG_SANDPOINT) += i8259.o pci_auto.o todc_time.o
obj-$(CONFIG_SBC82xx) += todc_time.o
obj-$(CONFIG_SPRUCE) += cpc700_pic.o indirect_pci.o pci_auto.o \
obj-$(CONFIG_SPRUCE) += cpc700_pic.o pci_auto.o \
todc_time.o
obj-$(CONFIG_8260) += m8260_setup.o pq2_devices.o pq2_sys.o \
ppc_sys.o
obj-$(CONFIG_PCI_8260) += m82xx_pci.o indirect_pci.o pci_auto.o
obj-$(CONFIG_PCI_8260) += m82xx_pci.o pci_auto.o
obj-$(CONFIG_8260_PCI9) += m8260_pci_erratum9.o
obj-$(CONFIG_CPM2) += cpm2_common.o cpm2_pic.o
ifeq ($(CONFIG_PPC_GEN550),y)
Expand All @@ -87,20 +87,20 @@ ifeq ($(CONFIG_SERIAL_MPSC_CONSOLE),y)
obj-$(CONFIG_SERIAL_TEXT_DEBUG) += mv64x60_dbg.o
endif
obj-$(CONFIG_BOOTX_TEXT) += btext.o
obj-$(CONFIG_MPC10X_BRIDGE) += mpc10x_common.o indirect_pci.o ppc_sys.o
obj-$(CONFIG_MPC10X_BRIDGE) += mpc10x_common.o ppc_sys.o
obj-$(CONFIG_MPC10X_OPENPIC) += open_pic.o
obj-$(CONFIG_40x) += dcr.o
obj-$(CONFIG_BOOKE) += dcr.o
obj-$(CONFIG_85xx) += open_pic.o ppc85xx_common.o ppc85xx_setup.o \
ppc_sys.o i8259.o mpc85xx_sys.o \
mpc85xx_devices.o
ifeq ($(CONFIG_85xx),y)
obj-$(CONFIG_PCI) += indirect_pci.o pci_auto.o
obj-$(CONFIG_PCI) += pci_auto.o
endif
obj-$(CONFIG_83xx) += ipic.o ppc83xx_setup.o ppc_sys.o \
mpc83xx_sys.o mpc83xx_devices.o
ifeq ($(CONFIG_83xx),y)
obj-$(CONFIG_PCI) += indirect_pci.o pci_auto.o
obj-$(CONFIG_PCI) += pci_auto.o
endif
obj-$(CONFIG_MPC8548_CDS) += todc_time.o
obj-$(CONFIG_MPC8555_CDS) += todc_time.o
Expand Down
Loading

0 comments on commit 25635c7

Please sign in to comment.