summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 08:22:39 -0600
committerTom Rini <trini@konsulko.com>2017-06-05 11:02:28 -0400
commit4baf23e0beaca4ea90983c8f97e1bba0282b5fc1 (patch)
tree97bf8222082eeed33245185b048d806d8a223e48
parent58a8ec4cc0475d24368c21ab70d0eff78da1aafd (diff)
downloadu-boot-4baf23e0beaca4ea90983c8f97e1bba0282b5fc1.tar.gz
u-boot-4baf23e0beaca4ea90983c8f97e1bba0282b5fc1.tar.bz2
u-boot-4baf23e0beaca4ea90983c8f97e1bba0282b5fc1.zip
common: Move get_OPB_freq() and get_PCI_freq() to PPC header
These should not be in common.h. Move the to an arch-specific header. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/powerpc/include/asm/ppc4xx.h3
-rw-r--r--include/common.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/ppc4xx.h b/arch/powerpc/include/asm/ppc4xx.h
index b8b0ff9f25..30e6559ba4 100644
--- a/arch/powerpc/include/asm/ppc4xx.h
+++ b/arch/powerpc/include/asm/ppc4xx.h
@@ -289,6 +289,9 @@ static inline void set_mcsr(u32 val)
int ppc4xx_pci_sync_clock_config(u32 async);
+unsigned long get_OPB_freq(void);
+unsigned long get_PCI_freq(void);
+
#endif /* __ASSEMBLY__ */
/* for multi-cpu support */
diff --git a/include/common.h b/include/common.h
index 6dd0d2f552..8b64407fd1 100644
--- a/include/common.h
+++ b/include/common.h
@@ -649,10 +649,6 @@ int get_clocks (void);
#if defined(CONFIG_MPC5xxx)
int prt_mpc5xxx_clks (void);
#endif
-#ifdef CONFIG_4xx
-ulong get_OPB_freq (void);
-ulong get_PCI_freq (void);
-#endif
#if defined(CONFIG_S3C24X0) || \
defined(CONFIG_LH7A40X) || \
defined(CONFIG_EP93XX)