]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Move ppc4xx specific prototypes to ppc4xx header
authorStefan Roese <sr@denx.de>
Mon, 8 Sep 2008 12:11:12 +0000 (14:11 +0200)
committerStefan Roese <sr@denx.de>
Mon, 8 Sep 2008 12:11:12 +0000 (14:11 +0200)
This patch moves some 4xx specific prototypes out of include common.h
to a ppc4xx specific header.

Signed-off-by: Stefan Roese <sr@denx.de>
board/netstal/hcu5/sdram.c
include/asm-ppc/ppc4xx-sdram.h
include/common.h

index 66a958c78ae96189a9ba87907fd0ef879ee65dc3..e5df62ef7adb2993293e262249ed8371858883c1 100644 (file)
@@ -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;
 
index a1ef0290e5f9fa1c380b4574247bf31c59081511..8efa557972e6802d4f402e66d4853d9d203d7502 100644 (file)
 
 #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_ */
index 2516bfd30c0dc52234c4c9bc9b17ac7e2467efad..a394988b5ce998a4df93f9366ce28bc7e011e335 100644 (file)
@@ -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);