summaryrefslogtreecommitdiffstats
path: root/board/gdsys
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-11-12 17:19:37 +0100
committerStefan Roese <sr@denx.de>2009-11-19 11:35:34 +0100
commit6c70049bd14e8e81764570732be7f34a89831f09 (patch)
tree9e2028ab7a017c9a8f78ac62a99e135bb5b23630 /board/gdsys
parenta760b0203155da6fb8b8e9086169bb87d09d76fa (diff)
downloadu-boot-6c70049bd14e8e81764570732be7f34a89831f09.tar.gz
u-boot-6c70049bd14e8e81764570732be7f34a89831f09.tar.xz
u-boot-6c70049bd14e8e81764570732be7f34a89831f09.zip
ppc4xx: Consolidate pci_master_init() function
This patch removes the duplicted implementations of the pci_master_init() function by introducing a weak default function for it. It can be overridden by a board specific version. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/gdsys')
-rw-r--r--board/gdsys/gdppc440etx/gdppc440etx.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/board/gdsys/gdppc440etx/gdppc440etx.c b/board/gdsys/gdppc440etx/gdppc440etx.c
index 10e146b429..ecbc3c3d1a 100644
--- a/board/gdsys/gdppc440etx/gdppc440etx.c
+++ b/board/gdsys/gdppc440etx/gdppc440etx.c
@@ -174,24 +174,3 @@ int pci_pre_init(struct pci_controller *hose)
return 1;
}
#endif /* defined(CONFIG_PCI) */
-
-/*
- * pci_master_init
- *
- */
-#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
-void pci_master_init(struct pci_controller *hose)
-{
- unsigned short temp_short;
-
- /*
- * Write the PowerPC440 EP PCI Configuration regs.
- * Enable PowerPC440 EP to be a master on the PCI bus (PMM).
- * Enable PowerPC440 EP to act as a PCI memory target (PTM).
- */
- pci_read_config_word(0, PCI_COMMAND, &temp_short);
- pci_write_config_word(0, PCI_COMMAND,
- temp_short | PCI_COMMAND_MASTER |
- PCI_COMMAND_MEMORY);
-}
-#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */