Переглянути джерело

Remove erroneous or extra spd.h #includers.

Many of the spd.h #includers don't need it,
and wanted to have spd_sdram() declared instead.
Since they didn't get that, some also had open
coded extern declarations of it instead or as well.
Fix it all up by using spd_sdram.h where needed.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Jon Loeliger 17 роки тому
батько
коміт
a30a549a35

+ 1 - 2
board/atum8548/atum8548.c

@@ -30,7 +30,7 @@
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
@@ -39,7 +39,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
 long int fixed_sdram(void);
 long int fixed_sdram(void);
 
 
 int board_early_init_f (void)
 int board_early_init_f (void)

+ 0 - 5
board/freescale/mpc8323erdb/mpc8323erdb.c

@@ -13,18 +13,13 @@
 #include <ioports.h>
 #include <ioports.h>
 #include <mpc83xx.h>
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <command.h>
 #include <command.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #if defined(CONFIG_PCI)
 #if defined(CONFIG_PCI)
 #include <pci.h>
 #include <pci.h>
 #endif
 #endif
-#if defined(CONFIG_SPD_EEPROM)
-#include <spd_sdram.h>
-#else
 #include <asm/mmu.h>
 #include <asm/mmu.h>
-#endif
 
 
 const qe_iop_conf_t qe_iop_conf_tab[] = {
 const qe_iop_conf_t qe_iop_conf_tab[] = {
 	/* UCC3 */
 	/* UCC3 */

+ 0 - 5
board/freescale/mpc832xemds/mpc832xemds.c

@@ -16,17 +16,12 @@
 #include <ioports.h>
 #include <ioports.h>
 #include <mpc83xx.h>
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <command.h>
 #include <command.h>
 #if defined(CONFIG_PCI)
 #if defined(CONFIG_PCI)
 #include <pci.h>
 #include <pci.h>
 #endif
 #endif
-#if defined(CONFIG_SPD_EEPROM)
-#include <spd_sdram.h>
-#else
 #include <asm/mmu.h>
 #include <asm/mmu.h>
-#endif
 #if defined(CONFIG_OF_LIBFDT)
 #if defined(CONFIG_OF_LIBFDT)
 #include <libfdt.h>
 #include <libfdt.h>
 #endif
 #endif

+ 1 - 3
board/freescale/mpc8349emds/mpc8349emds.c

@@ -28,11 +28,9 @@
 #include <asm/mpc8349_pci.h>
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
 #include <i2c.h>
 #include <spi.h>
 #include <spi.h>
-#include <spd.h>
 #include <miiphy.h>
 #include <miiphy.h>
-#if defined(CONFIG_SPD_EEPROM)
 #include <spd_sdram.h>
 #include <spd_sdram.h>
-#endif
+
 #if defined(CONFIG_OF_LIBFDT)
 #if defined(CONFIG_OF_LIBFDT)
 #include <libfdt.h>
 #include <libfdt.h>
 #endif
 #endif

+ 0 - 6
board/freescale/mpc8349itx/mpc8349itx.c

@@ -24,19 +24,13 @@
 #include <ioports.h>
 #include <ioports.h>
 #include <mpc83xx.h>
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <miiphy.h>
 #include <miiphy.h>
-
 #ifdef CONFIG_PCI
 #ifdef CONFIG_PCI
 #include <asm/mpc8349_pci.h>
 #include <asm/mpc8349_pci.h>
 #include <pci.h>
 #include <pci.h>
 #endif
 #endif
-
-#ifdef CONFIG_SPD_EEPROM
 #include <spd_sdram.h>
 #include <spd_sdram.h>
-#else
 #include <asm/mmu.h>
 #include <asm/mmu.h>
-#endif
 #if defined(CONFIG_OF_LIBFDT)
 #if defined(CONFIG_OF_LIBFDT)
 #include <libfdt.h>
 #include <libfdt.h>
 #endif
 #endif

+ 0 - 4
board/freescale/mpc8360emds/mpc8360emds.c

@@ -15,16 +15,12 @@
 #include <ioports.h>
 #include <ioports.h>
 #include <mpc83xx.h>
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #if defined(CONFIG_PCI)
 #if defined(CONFIG_PCI)
 #include <pci.h>
 #include <pci.h>
 #endif
 #endif
-#if defined(CONFIG_SPD_EEPROM)
 #include <spd_sdram.h>
 #include <spd_sdram.h>
-#else
 #include <asm/mmu.h>
 #include <asm/mmu.h>
-#endif
 #if defined(CONFIG_OF_LIBFDT)
 #if defined(CONFIG_OF_LIBFDT)
 #include <libfdt.h>
 #include <libfdt.h>
 #endif
 #endif

+ 0 - 1
board/freescale/mpc8360erdk/mpc8360erdk.c

@@ -18,7 +18,6 @@
 #include <ioports.h>
 #include <ioports.h>
 #include <mpc83xx.h>
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/mmu.h>
 #include <asm/mmu.h>

+ 0 - 3
board/freescale/mpc837xemds/mpc837xemds.c

@@ -12,10 +12,7 @@
 
 
 #include <common.h>
 #include <common.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
-#if defined(CONFIG_SPD_EEPROM)
 #include <spd_sdram.h>
 #include <spd_sdram.h>
-#endif
 #if defined(CONFIG_OF_LIBFDT)
 #if defined(CONFIG_OF_LIBFDT)
 #include <libfdt.h>
 #include <libfdt.h>
 #endif
 #endif

+ 0 - 3
board/freescale/mpc837xerdb/mpc837xerdb.c

@@ -14,11 +14,8 @@
 
 
 #include <common.h>
 #include <common.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#if defined(CONFIG_SPD_EEPROM)
 #include <spd_sdram.h>
 #include <spd_sdram.h>
-#endif
 
 
 #if defined(CFG_DRAM_TEST)
 #if defined(CFG_DRAM_TEST)
 int
 int

+ 1 - 4
board/freescale/mpc8540ads/mpc8540ads.c

@@ -29,7 +29,7 @@
 #include <pci.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
 
 
@@ -37,8 +37,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
 long int fixed_sdram(void);
 long int fixed_sdram(void);
@@ -73,7 +71,6 @@ long int
 initdram(int board_type)
 initdram(int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
 
 
 	puts("Initializing\n");
 	puts("Initializing\n");
 
 

+ 1 - 3
board/freescale/mpc8541cds/mpc8541cds.c

@@ -27,7 +27,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
 
 
@@ -39,8 +39,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
 
 

+ 1 - 3
board/freescale/mpc8544ds/mpc8544ds.c

@@ -27,7 +27,7 @@
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
@@ -38,8 +38,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
-
 void sdram_init(void);
 void sdram_init(void);
 
 
 int board_early_init_f (void)
 int board_early_init_f (void)

+ 1 - 3
board/freescale/mpc8548cds/mpc8548cds.c

@@ -27,7 +27,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
@@ -42,8 +42,6 @@ extern void ddr_enable_ecc(unsigned int dram_size);
 
 
 DECLARE_GLOBAL_DATA_PTR;
 DECLARE_GLOBAL_DATA_PTR;
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
 
 

+ 1 - 3
board/freescale/mpc8555cds/mpc8555cds.c

@@ -25,7 +25,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
 
 
@@ -37,8 +37,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
 
 

+ 1 - 3
board/freescale/mpc8560ads/mpc8560ads.c

@@ -30,7 +30,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
@@ -39,7 +39,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
 
 
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
@@ -275,7 +274,6 @@ long int
 initdram(int board_type)
 initdram(int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
 
 
 	puts("Initializing\n");
 	puts("Initializing\n");
 
 

+ 1 - 3
board/freescale/mpc8568mds/mpc8568mds.c

@@ -27,7 +27,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <i2c.h>
 #include <i2c.h>
 #include <ioports.h>
 #include <ioports.h>
 #include <libfdt.h>
 #include <libfdt.h>
@@ -102,8 +102,6 @@ const qe_iop_conf_t qe_iop_conf_tab[] = {
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
 
 

+ 1 - 5
board/freescale/mpc8610hpcd/mpc8610hpcd.c

@@ -27,10 +27,10 @@
 #include <asm/immap_86xx.h>
 #include <asm/immap_86xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
+#include <spd_sdram.h>
 
 
 #include "../common/pixis.h"
 #include "../common/pixis.h"
 
 
@@ -38,10 +38,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-#if defined(CONFIG_SPD_EEPROM)
-#include "spd_sdram.h"
-#endif
-
 void sdram_init(void);
 void sdram_init(void);
 long int fixed_sdram(void);
 long int fixed_sdram(void);
 void mpc8610hpcd_diu_init(void);
 void mpc8610hpcd_diu_init(void);

+ 1 - 5
board/freescale/mpc8641hpcn/mpc8641hpcn.c

@@ -25,7 +25,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
 #include <asm/immap_86xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
@@ -36,10 +36,6 @@
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-#if defined(CONFIG_SPD_EEPROM)
-#include "spd_sdram.h"
-#endif
-
 void sdram_init(void);
 void sdram_init(void);
 long int fixed_sdram(void);
 long int fixed_sdram(void);
 
 

+ 2 - 4
board/mpc8540eval/mpc8540eval.c

@@ -26,9 +26,7 @@
 #include <common.h>
 #include <common.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
-#include <spd.h>
-
-extern long int spd_sdram (void);
+#include <spd_sdram.h>
 
 
 long int fixed_sdram (void);
 long int fixed_sdram (void);
 
 
@@ -66,7 +64,7 @@ int checkboard (void)
 long int initdram (int board_type)
 long int initdram (int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
+
 #if !defined(CONFIG_RAM_AS_FLASH)
 #if !defined(CONFIG_RAM_AS_FLASH)
 	volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
 	volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
 	sys_info_t sysinfo;
 	sys_info_t sysinfo;

+ 1 - 4
board/pm854/pm854.c

@@ -29,14 +29,12 @@
 #include <pci.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
-#include <spd.h>
+#include <spd_sdram.h>
 
 
 #if defined(CONFIG_DDR_ECC)
 #if defined(CONFIG_DDR_ECC)
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
 long int fixed_sdram(void);
 long int fixed_sdram(void);
@@ -77,7 +75,6 @@ long int
 initdram(int board_type)
 initdram(int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
 
 
 	puts("Initializing\n");
 	puts("Initializing\n");
 
 

+ 2 - 4
board/pm856/pm856.c

@@ -30,15 +30,13 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 
 
 #if defined(CONFIG_DDR_ECC)
 #if defined(CONFIG_DDR_ECC)
 extern void ddr_enable_ecc(unsigned int dram_size);
 extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 long int fixed_sdram(void);
 long int fixed_sdram(void);
 
 
@@ -231,7 +229,7 @@ long int
 initdram(int board_type)
 initdram(int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
+
 
 
 	puts("Initializing\n");
 	puts("Initializing\n");
 
 

+ 1 - 4
board/sbc8349/sbc8349.c

@@ -30,11 +30,8 @@
 #include <mpc83xx.h>
 #include <mpc83xx.h>
 #include <asm/mpc8349_pci.h>
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
-#include <miiphy.h>
-#if defined(CONFIG_SPD_EEPROM)
 #include <spd_sdram.h>
 #include <spd_sdram.h>
-#endif
+#include <miiphy.h>
 #if defined(CONFIG_OF_LIBFDT)
 #if defined(CONFIG_OF_LIBFDT)
 #include <libfdt.h>
 #include <libfdt.h>
 #endif
 #endif

+ 1 - 3
board/sbc8548/sbc8548.c

@@ -30,7 +30,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
@@ -41,8 +41,6 @@ extern void ddr_enable_ecc(unsigned int dram_size);
 
 
 DECLARE_GLOBAL_DATA_PTR;
 DECLARE_GLOBAL_DATA_PTR;
 
 
-extern long int spd_sdram(void);
-
 void local_bus_init(void);
 void local_bus_init(void);
 void sdram_init(void);
 void sdram_init(void);
 long int fixed_sdram (void);
 long int fixed_sdram (void);

+ 2 - 4
board/sbc8560/sbc8560.c

@@ -27,13 +27,11 @@
  */
  */
 
 
 
 
-extern long int spd_sdram (void);
-
 #include <common.h>
 #include <common.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 
 
 long int fixed_sdram (void);
 long int fixed_sdram (void);
@@ -262,7 +260,7 @@ int checkboard (void)
 long int initdram (int board_type)
 long int initdram (int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
+
 #if 0
 #if 0
 #if !defined(CONFIG_RAM_AS_FLASH)
 #if !defined(CONFIG_RAM_AS_FLASH)
 	volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
 	volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);

+ 1 - 5
board/sbc8641d/sbc8641d.c

@@ -34,7 +34,7 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
 #include <asm/immap_86xx.h>
 #include <asm/immap_fsl_pci.h>
 #include <asm/immap_fsl_pci.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <libfdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <fdt_support.h>
 
 
@@ -42,10 +42,6 @@
 extern void ddr_enable_ecc (unsigned int dram_size);
 extern void ddr_enable_ecc (unsigned int dram_size);
 #endif
 #endif
 
 
-#if defined(CONFIG_SPD_EEPROM)
-#include "spd_sdram.h"
-#endif
-
 void sdram_init (void);
 void sdram_init (void);
 long int fixed_sdram (void);
 long int fixed_sdram (void);
 
 

+ 1 - 4
board/stxgp3/stxgp3.c

@@ -29,15 +29,13 @@
  */
  */
 
 
 
 
-extern long int spd_sdram (void);
-
 #include <common.h>
 #include <common.h>
 #include <pci.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 
 
 long int fixed_sdram (void);
 long int fixed_sdram (void);
@@ -281,7 +279,6 @@ long int
 initdram (int board_type)
 initdram (int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
 
 
 #if defined(CONFIG_DDR_DLL)
 #if defined(CONFIG_DDR_DLL)
 	{
 	{

+ 1 - 4
board/stxssa/stxssa.c

@@ -29,15 +29,13 @@
  */
  */
 
 
 
 
-extern long int spd_sdram (void);
-
 #include <common.h>
 #include <common.h>
 #include <pci.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
 #include <asm/io.h>
 #include <asm/io.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 #include <miiphy.h>
 
 
 long int fixed_sdram (void);
 long int fixed_sdram (void);
@@ -297,7 +295,6 @@ long int
 initdram (int board_type)
 initdram (int board_type)
 {
 {
 	long dram_size = 0;
 	long dram_size = 0;
-	extern long spd_sdram (void);
 
 
 #if defined(CONFIG_DDR_DLL)
 #if defined(CONFIG_DDR_DLL)
 	{
 	{

+ 0 - 2
board/tqm834x/tqm834x.c

@@ -27,7 +27,6 @@
 #include <mpc83xx.h>
 #include <mpc83xx.h>
 #include <asm/mpc8349_pci.h>
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
 #include <i2c.h>
-#include <spd.h>
 #include <miiphy.h>
 #include <miiphy.h>
 #include <asm-ppc/mmu.h>
 #include <asm-ppc/mmu.h>
 #include <pci.h>
 #include <pci.h>
@@ -59,7 +58,6 @@ int tqm834x_num_flash_banks;
 /* External definitions */
 /* External definitions */
 ulong flash_get_size (ulong base, int banknum);
 ulong flash_get_size (ulong base, int banknum);
 extern flash_info_t flash_info[];
 extern flash_info_t flash_info[];
-extern long spd_sdram (void);
 
 
 /* Local functions */
 /* Local functions */
 static int detect_num_flash_banks(void);
 static int detect_num_flash_banks(void);

+ 0 - 1
board/tqm85xx/sdram.c

@@ -27,7 +27,6 @@
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/mmu.h>
-#include <spd.h>
 
 
 struct sdram_conf_s {
 struct sdram_conf_s {
 	unsigned long size;
 	unsigned long size;

+ 0 - 2
board/tqm85xx/tqm85xx.c

@@ -32,7 +32,6 @@
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <ioports.h>
-#include <spd.h>
 #include <flash.h>
 #include <flash.h>
 
 
 DECLARE_GLOBAL_DATA_PTR;
 DECLARE_GLOBAL_DATA_PTR;
@@ -40,7 +39,6 @@ DECLARE_GLOBAL_DATA_PTR;
 extern flash_info_t flash_info[];	/* FLASH chips info */
 extern flash_info_t flash_info[];	/* FLASH chips info */
 
 
 void local_bus_init (void);
 void local_bus_init (void);
-long int fixed_sdram (void);
 ulong flash_get_size (ulong base, int banknum);
 ulong flash_get_size (ulong base, int banknum);
 
 
 #ifdef CONFIG_PS2MULT
 #ifdef CONFIG_PS2MULT