diff options
Diffstat (limited to 'board/amcc')
| -rw-r--r-- | board/amcc/ebony/ebony.c | 6 | ||||
| -rw-r--r-- | board/amcc/luan/luan.c | 3 | ||||
| -rw-r--r-- | board/amcc/ocotea/ocotea.c | 6 | ||||
| -rw-r--r-- | board/amcc/walnut/walnut.c | 2 | ||||
| -rw-r--r-- | board/amcc/yellowstone/yellowstone.c | 3 | ||||
| -rw-r--r-- | board/amcc/yosemite/yosemite.c | 3 | 
6 files changed, 12 insertions, 11 deletions
| diff --git a/board/amcc/ebony/ebony.c b/board/amcc/ebony/ebony.c index a2595eec5..dcafac950 100644 --- a/board/amcc/ebony/ebony.c +++ b/board/amcc/ebony/ebony.c @@ -28,6 +28,8 @@  #define FLASH_ONBD_N		2	/* 00000010 */  #define FLASH_SRAM_SEL		1	/* 00000001 */ +DECLARE_GLOBAL_DATA_PTR; +  long int fixed_sdram(void);  int board_early_init_f(void) @@ -107,7 +109,7 @@ long int initdram(int board_type)  	long dram_size = 0;  #if defined(CONFIG_SPD_EEPROM) -	dram_size = spd_sdram(0); +	dram_size = spd_sdram();  #else  	dram_size = fixed_sdram();  #endif @@ -235,8 +237,6 @@ int pci_pre_init(struct pci_controller *hose)  #if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)  void pci_target_init(struct pci_controller *hose)  { -	DECLARE_GLOBAL_DATA_PTR; -  	/*--------------------------------------------------------------------------+  	 * Disable everything  	 *--------------------------------------------------------------------------*/ diff --git a/board/amcc/luan/luan.c b/board/amcc/luan/luan.c index c6b79a9f5..06a57f6c4 100644 --- a/board/amcc/luan/luan.c +++ b/board/amcc/luan/luan.c @@ -28,6 +28,7 @@  #include <spd_sdram.h>  #include "epld.h" +DECLARE_GLOBAL_DATA_PTR;  extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */ @@ -291,8 +292,6 @@ int pci_pre_init( struct pci_controller *hose )  #if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)  void pci_target_init(struct pci_controller *hose)  { -	DECLARE_GLOBAL_DATA_PTR; -  	/*--------------------------------------------------------------------------+  	 * Disable everything  	 *--------------------------------------------------------------------------*/ diff --git a/board/amcc/ocotea/ocotea.c b/board/amcc/ocotea/ocotea.c index d1a29c52a..3f6d2042d 100644 --- a/board/amcc/ocotea/ocotea.c +++ b/board/amcc/ocotea/ocotea.c @@ -30,6 +30,8 @@  #include <spd_sdram.h>  #include <ppc4xx_enet.h> +DECLARE_GLOBAL_DATA_PTR; +  #define BOOT_SMALL_FLASH	32	/* 00100000 */  #define FLASH_ONBD_N		2	/* 00000010 */  #define FLASH_SRAM_SEL		1	/* 00000001 */ @@ -204,7 +206,7 @@ long int initdram (int board_type)  	long dram_size = 0;  #if defined(CONFIG_SPD_EEPROM) -	dram_size = spd_sdram (0); +	dram_size = spd_sdram ();  #else  	dram_size = fixed_sdram ();  #endif @@ -334,8 +336,6 @@ int pci_pre_init(struct pci_controller * hose )  #if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)  void pci_target_init(struct pci_controller * hose )  { -	DECLARE_GLOBAL_DATA_PTR; -  	/*--------------------------------------------------------------------------+  	 * Disable everything  	 *--------------------------------------------------------------------------*/ diff --git a/board/amcc/walnut/walnut.c b/board/amcc/walnut/walnut.c index f1a96a6e7..292e02609 100644 --- a/board/amcc/walnut/walnut.c +++ b/board/amcc/walnut/walnut.c @@ -99,7 +99,7 @@ void sdram_init(void)   */  long int initdram(int board_type)  { -	return spd_sdram(0); +	return spd_sdram();  }  int testdram(void) diff --git a/board/amcc/yellowstone/yellowstone.c b/board/amcc/yellowstone/yellowstone.c index 8ddf910c8..20965c8e3 100644 --- a/board/amcc/yellowstone/yellowstone.c +++ b/board/amcc/yellowstone/yellowstone.c @@ -24,6 +24,8 @@  #include <asm/processor.h>  #include <spd_sdram.h> +DECLARE_GLOBAL_DATA_PTR; +  extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips	*/  int board_early_init_f(void) @@ -136,7 +138,6 @@ int board_early_init_f(void)  int misc_init_r (void)  { -	DECLARE_GLOBAL_DATA_PTR;  	uint pbcr;  	int size_val = 0; diff --git a/board/amcc/yosemite/yosemite.c b/board/amcc/yosemite/yosemite.c index 509d8e4cc..392d0dc34 100644 --- a/board/amcc/yosemite/yosemite.c +++ b/board/amcc/yosemite/yosemite.c @@ -24,6 +24,8 @@  #include <asm/processor.h>  #include <spd_sdram.h> +DECLARE_GLOBAL_DATA_PTR; +  extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips	*/  int board_early_init_f(void) @@ -132,7 +134,6 @@ int board_early_init_f(void)  int misc_init_r (void)  { -	DECLARE_GLOBAL_DATA_PTR;  	uint pbcr;  	int size_val = 0; |