summaryrefslogtreecommitdiff
path: root/board/mpl/common/pci.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-09-21 11:20:28 -0500
committerWolfgang Denk <wd@denx.de>2009-10-03 10:17:56 +0200
commitb32a894011b1436758905fa10e6a03b8539c43c9 (patch)
tree53bb67bbad96ff80ee6f25034e12634062ceaeba /board/mpl/common/pci.c
parenta0e2066f392782730f0398095e583c87812d97f2 (diff)
downloadu-boot-imx-b32a894011b1436758905fa10e6a03b8539c43c9.zip
u-boot-imx-b32a894011b1436758905fa10e6a03b8539c43c9.tar.gz
u-boot-imx-b32a894011b1436758905fa10e6a03b8539c43c9.tar.bz2
ppc: Remove pci config table pointer relocation fixups
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'board/mpl/common/pci.c')
-rw-r--r--board/mpl/common/pci.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/board/mpl/common/pci.c b/board/mpl/common/pci.c
index e0ba620..f9bb6ab 100644
--- a/board/mpl/common/pci.c
+++ b/board/mpl/common/pci.c
@@ -94,29 +94,11 @@ static struct pci_controller hose = {
};
-static void reloc_pci_cfg_table(struct pci_config_table *table)
-{
- unsigned long addr;
-
- for (; table && table->vendor; table++) {
- addr = (ulong) (table->config_device) + gd->reloc_off;
-#ifdef DEBUG
- printf ("device \"%d\": 0x%08lx => 0x%08lx\n",
- table->device, (ulong) (table->config_device), addr);
-#endif
- table->config_device =
- (void (*)(struct pci_controller* hose, pci_dev_t dev,
- struct pci_config_table *))addr;
- table->priv[0]+=gd->reloc_off;
- }
-}
-
void pci_init_board(void)
{
/*we want the ptrs to RAM not flash (ie don't use init list)*/
hose.fixup_irq = pci_pip405_fixup_irq;
hose.config_table = pci_pip405_config_table;
- reloc_pci_cfg_table(hose.config_table);
#ifdef DEBUG
printf("Init PCI: fixup_irq=%p config_table=%p hose=%p\n",pci_pip405_fixup_irq,pci_pip405_config_table,hose);
#endif