summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 14:23:04 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 15:02:40 (GMT)
commit8fb69c1654ccdf22808cac714a2c2565402fcfff (patch)
tree9c9648d6dfe4b1b57cbf93c586212885685e7e5c
parenta2038d7b1eb6c88a142aa3849ba01e9a3397ddf0 (diff)
downloadu-boot-fsl-qoriq-8fb69c1654ccdf22808cac714a2c2565402fcfff.tar.xz
common: Move PPC4xx_SYS_INFO() et al to arch-specific header
These definitions should not be in common.h. Move them to an arch-specific header file. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/powerpc/include/asm/ppc4xx.h4
-rw-r--r--include/common.h6
2 files changed, 4 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/ppc4xx.h b/arch/powerpc/include/asm/ppc4xx.h
index 30e6559..45ff5db 100644
--- a/arch/powerpc/include/asm/ppc4xx.h
+++ b/arch/powerpc/include/asm/ppc4xx.h
@@ -292,6 +292,10 @@ int ppc4xx_pci_sync_clock_config(u32 async);
unsigned long get_OPB_freq(void);
unsigned long get_PCI_freq(void);
+typedef PPC4xx_SYS_INFO sys_info_t;
+int ppc440spe_revB(void);
+void get_sys_info(sys_info_t *);
+
#endif /* __ASSEMBLY__ */
/* for multi-cpu support */
diff --git a/include/common.h b/include/common.h
index b45f392..3f6b636 100644
--- a/include/common.h
+++ b/include/common.h
@@ -662,12 +662,6 @@ static inline ulong get_ddr_freq(ulong dummy)
ulong get_ddr_freq(ulong);
#endif
-#if defined(CONFIG_4xx)
-typedef PPC4xx_SYS_INFO sys_info_t;
-int ppc440spe_revB(void);
-void get_sys_info ( sys_info_t * );
-#endif
-
int cpu_init_r (void);
/* $(CPU)/interrupts.c */