summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 14:22:38 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 15:02:28 (GMT)
commit58a8ec4cc0475d24368c21ab70d0eff78da1aafd (patch)
treee8d1fd29723dc6e1ebccf77795f535eb46cc29e2
parent787ea6e4537f79d0eeadfa7149f1ef5180a9aadb (diff)
downloadu-boot-58a8ec4cc0475d24368c21ab70d0eff78da1aafd.tar.xz
common: Move pcie_setup_hoses() to PPC header
Only one board needs this definition. Move it to an arch-specific header. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/powerpc/include/asm/4xx_pci.h1
-rw-r--r--include/common.h8
2 files changed, 1 insertions, 8 deletions
diff --git a/arch/powerpc/include/asm/4xx_pci.h b/arch/powerpc/include/asm/4xx_pci.h
index a68c875..276a780 100644
--- a/arch/powerpc/include/asm/4xx_pci.h
+++ b/arch/powerpc/include/asm/4xx_pci.h
@@ -57,5 +57,6 @@ int __pci_pre_init(struct pci_controller *hose);
void __pci_target_init(struct pci_controller *hose);
void __pci_master_init(struct pci_controller *hose);
void pci_target_init(struct pci_controller *);
+void pcie_setup_hoses(int busno);
#endif
diff --git a/include/common.h b/include/common.h
index 7f9b786..6dd0d2f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -456,14 +456,6 @@ int get_env_id (void);
void pci_init (void);
void pci_init_board(void);
-#if defined(CONFIG_PCI) && (defined(CONFIG_440) || defined(CONFIG_405EX))
-#if defined(CONFIG_440SPE) || \
- defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
- defined(CONFIG_405EX)
- void pcie_setup_hoses(int busno);
-#endif
-#endif
-
int misc_init_f (void);
int misc_init_r (void);