powerpc/85xx: Declare fsl_ddr_set_memctl_regs in <asm/fsl_ddr_sdram.h>
authorKumar Gala <galak@kernel.crashing.org>
Tue, 25 Jan 2011 07:48:03 +0000 (01:48 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 4 Apr 2011 14:24:40 +0000 (09:24 -0500)
Remove declerations of fsl_ddr_set_memctl_regs in board files with and
place it into a common header.

Based on patch from Poonam Aggrwal.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/fsl_ddr_sdram.h
board/freescale/corenet_ds/ddr.c
board/freescale/p1_p2_rdb/ddr.c

index 02a1f5d32339f15058f8b5027f271e3c3b409e88..b5b1efe66925cbfd249aad32689d6c22091b84a2 100644 (file)
@@ -271,6 +271,8 @@ typedef struct memctl_options_s {
 
 extern phys_size_t fsl_ddr_sdram(void);
 extern int fsl_use_spd(void);
+extern void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
+                                       unsigned int ctrl_num);
 
 /*
  * The 85xx boards have a common prototype for fixed_sdram so put the
index 844eb1df85b074f01f96ad2cfb42bfb6823c03e5..ee08abb29f7da8c9c69de8d65b809b4a075ae682 100644 (file)
@@ -16,9 +16,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
-                                  unsigned int ctrl_num);
-
 
 /*
  * Fixed sdram init -- doesn't use serial presence detect.
index fbc46b1f4b09c4e98ad90ad3ccffa56f9d3b6df0..44faec3a0be8d718ea733f4cce918e8bff3fc8b5 100644 (file)
@@ -30,9 +30,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
-                                  unsigned int ctrl_num);
-
 #define CONFIG_SYS_DDR_CS0_BNDS                0x0000003F
 #define CONFIG_SYS_DDR_CS0_CONFIG      0x80014202
 #define CONFIG_SYS_DDR_CS0_CONFIG_2    0x00000000