Skip to contentSkip to conversation

ppc4xx: Move ppc4xx specific prototypes to ppc4xx header

PATCH New Stefan Roese 1 participant 1 message Sep 8, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Move ppc4xx specific prototypes to ppc4xx header

This patch moves some 4xx specific prototypes out of include common.h to a ppc4xx specific header.

---
This patch is based on the u-boot-ppc4xx repository. It can't be applied directly to the master repository. It's needed to clean up some 4xx specific stuff that I missed in on of the ppc4xx SDRAM related patches. I didn't want to rebase my repository so this additional patch is needed.

 board/netstal/hcu5/sdram.c     |    2 +-
 include/asm-ppc/ppc4xx-sdram.h |   14 ++++++++++++++
 include/common.h               |   21 ---------------------
 3 files changed, 15 insertions(+), 22 deletions(-)
board/netstal/hcu5/sdram.c +1 -1
index 66a958c..e5df62e 100644
@@ -122,7 +122,7 @@ void sdram_panic(const char *reason)
 }
 
 #ifdef CONFIG_DDR_ECC
-static void blank_string(int size)
+void blank_string(int size)
 {
 	int i;
 
include/asm-ppc/ppc4xx-sdram.h +14 -0
index a1ef029..8efa557 100644
@@ -1402,4 +1402,18 @@
 
 #endif /* CONFIG_SDRAM_PPC4xx_DENALI_DDR2 */
 
+#ifndef __ASSEMBLY__
+/*
+ * Prototypes
+ */
+void inline blank_string(int size);
+inline void ppc4xx_ibm_ddr2_register_dump(void);
+u32 mfdcr_any(u32);
+void mtdcr_any(u32, u32);
+u32 ddr_wrdtr(u32);
+u32 ddr_clktr(u32);
+void spd_ddr_init_hang(void);
+u32 DQS_autocalibration(void);
+#endif /* __ASSEMBLY__ */
+
 #endif /* _PPC4xx_SDRAM_H_ */
include/common.h +0 -21
index 2516bfd..a394988 100644
@@ -287,27 +287,6 @@ void	pciinfo	      (int, int);
 #endif
 #endif
 
-/*
- * Prototypes
- */
-#if defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2)
-void blank_string(int);
-inline void ppc4xx_ibm_ddr2_register_dump(void);
-#if defined(CONFIG_440)
-u32 mfdcr_any(u32);
-void mtdcr_any(u32, u32);
-#endif
-#if defined(CONFIG_SPD_EEPROM)
-u32 ddr_wrdtr(u32);
-u32 ddr_clktr(u32);
-void spd_ddr_init_hang(void);
-#endif
-#endif /* defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2) */
-
-#if defined(CONFIG_PPC4xx_DDR_AUTOCALIBRATION)
-u32 DQS_autocalibration(void);
-#endif /* CONFIG_PPC4xx_DDR_AUTOCALIBRATION */
-
 int	misc_init_f   (void);
 int	misc_init_r   (void);
 
Signature · 1 line
1.5.6.5