]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
common: Move PPC4xx_SYS_INFO() et al to arch-specific header
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 14:23:04 +0000 (08:23 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 15:02:40 +0000 (11:02 -0400)
These definitions should not be in common.h. Move them to an arch-specific
header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/powerpc/include/asm/ppc4xx.h
include/common.h

index 30e6559ba4340a1ec4ac5e12d324a03ce9478e46..45ff5dbacd9243e83bb2f6551e2dd64a7e544bf5 100644 (file)
@@ -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 */
index b45f392373a2880802b3fd82baf70ebe763f99cd..3f6b636fae50e05f133d366dd22f74e5e1f516c6 100644 (file)
@@ -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 */