]> git.sur5r.net Git - u-boot/blobdiff - board/stxssa/stxssa.c
Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
[u-boot] / board / stxssa / stxssa.c
index 253fb2b28f2b31f226c12ea5a53a1d2b1f6c87eb..08177e1aec6e1d378c8091dd985a3ca0968194e7 100644 (file)
  */
 
 
-extern long int spd_sdram (void);
-
 #include <common.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <ioports.h>
 #include <asm/io.h>
-#include <spd.h>
+#include <spd_sdram.h>
 #include <miiphy.h>
 
 long int fixed_sdram (void);
@@ -252,8 +250,7 @@ int
 board_early_init_f(void)
 {
 #if defined(CONFIG_PCI)
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
-       volatile ccsr_pcix_t *pci = &immr->im_pcix;
+       volatile ccsr_pcix_t *pci = (void *)(CFG_MPC85xx_PCIX_ADDR);
 
        pci->peer &= 0xffffffdf; /* disable master abort */
 #endif
@@ -298,7 +295,6 @@ long int
 initdram (int board_type)
 {
        long dram_size = 0;
-       extern long spd_sdram (void);
 
 #if defined(CONFIG_DDR_DLL)
        {