diff options
Diffstat (limited to 'board/amcc')
| -rw-r--r-- | board/amcc/acadia/memory.c | 15 | ||||
| -rw-r--r-- | board/amcc/bubinga/bubinga.c | 16 | ||||
| -rw-r--r-- | board/amcc/makalu/makalu.c | 5 | ||||
| -rw-r--r-- | board/amcc/walnut/walnut.c | 16 | ||||
| -rw-r--r-- | board/amcc/yosemite/yosemite.c | 52 | 
5 files changed, 3 insertions, 101 deletions
| diff --git a/board/amcc/acadia/memory.c b/board/amcc/acadia/memory.c index 709d41e41..3dec3159a 100644 --- a/board/amcc/acadia/memory.c +++ b/board/amcc/acadia/memory.c @@ -33,14 +33,6 @@  extern void board_pll_init_f(void); -/* - * sdram_init - Dummy implementation for start.S, spd_sdram used on this board! - */ -void sdram_init(void) -{ -	return; -} -  #if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)  static void cram_bcr_write(u32 wr_val)  { @@ -116,10 +108,3 @@ long int initdram(int board_type)  	return (CFG_MBYTES_RAM << 20);  } - -#ifndef CONFIG_NAND_SPL -int testdram(void) -{ -	return (0); -} -#endif diff --git a/board/amcc/bubinga/bubinga.c b/board/amcc/bubinga/bubinga.c index 66e7509da..9d508b893 100644 --- a/board/amcc/bubinga/bubinga.c +++ b/board/amcc/bubinga/bubinga.c @@ -66,14 +66,6 @@ int checkboard(void)  	return (0);  } -/* - * sdram_init - Dummy implementation for start.S, spd_sdram used on this board! - */ -void sdram_init(void) -{ -	return; -} -  /* -------------------------------------------------------------------------    initdram(int board_type) reads EEPROM via I2c. EEPROM contains all of    the necessary info for SDRAM controller configuration @@ -85,11 +77,3 @@ long int initdram(int board_type)  	ret = spd_sdram();  	return ret;  } - -int testdram(void) -{ -	/* TODO: XXX XXX XXX */ -	printf("test: xxx MB - ok\n"); - -	return (0); -} diff --git a/board/amcc/makalu/makalu.c b/board/amcc/makalu/makalu.c index adf604f3a..9baec9af6 100644 --- a/board/amcc/makalu/makalu.c +++ b/board/amcc/makalu/makalu.c @@ -351,8 +351,3 @@ void ft_board_setup(void *blob, bd_t *bd)  		       fdt_strerror(rc));  }  #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */ - -void sdram_init(void) -{ -	return; -} diff --git a/board/amcc/walnut/walnut.c b/board/amcc/walnut/walnut.c index 292e02609..641987e87 100644 --- a/board/amcc/walnut/walnut.c +++ b/board/amcc/walnut/walnut.c @@ -86,14 +86,6 @@ int checkboard(void)  }  /* - * sdram_init - Dummy implementation for start.S, spd_sdram used on this board! - */ -void sdram_init(void) -{ -	return; -} - -/*   * initdram(int board_type) reads EEPROM via I2c. EEPROM contains all of   * the necessary info for SDRAM controller configuration   */ @@ -101,11 +93,3 @@ long int initdram(int board_type)  {  	return spd_sdram();  } - -int testdram(void) -{ -	/* TODO: XXX XXX XXX */ -	printf("test: xxx MB - ok\n"); - -	return (0); -} diff --git a/board/amcc/yosemite/yosemite.c b/board/amcc/yosemite/yosemite.c index 212fab8d0..83455375d 100644 --- a/board/amcc/yosemite/yosemite.c +++ b/board/amcc/yosemite/yosemite.c @@ -200,7 +200,7 @@ int checkboard(void)  }  /************************************************************************* - *  sdram_init -- doesn't use serial presence detect. + *  initdram -- doesn't use serial presence detect.   *   *  Assumes:    256 MB, ECC, non-registered   *              PLB @ 133 MHz @@ -281,7 +281,7 @@ void sdram_tr1_set(int ram_address, int* tr1_value)  	*tr1_value = (first_good + last_bad) / 2;  } -void sdram_init(void) +long int initdram(int board)  {  	register uint reg;  	int tr1_bank1, tr1_bank2; @@ -327,57 +327,11 @@ void sdram_init(void)  	sdram_tr1_set(0x00000000, &tr1_bank1);  	sdram_tr1_set(0x08000000, &tr1_bank2); -	mtsdram(mem_tr1, (((tr1_bank1+tr1_bank2)/2) | 0x80800800) ); -} +	mtsdram(mem_tr1, (((tr1_bank1+tr1_bank2)/2) | 0x80800800)); -/************************************************************************* - *  long int initdram - * - ************************************************************************/ -long int initdram(int board) -{ -	sdram_init();  	return CFG_SDRAM_BANKS * (CFG_KBYTES_SDRAM * 1024);	/* return bytes */  } -#if defined(CFG_DRAM_TEST) -int testdram(void) -{ -	unsigned long *mem = (unsigned long *)0; -	const unsigned long kend = (1024 / sizeof(unsigned long)); -	unsigned long k, n; - -	mtmsr(0); - -	for (k = 0; k < CFG_KBYTES_SDRAM; -	     ++k, mem += (1024 / sizeof(unsigned long))) { -		if ((k & 1023) == 0) { -			printf("%3d MB\r", k / 1024); -		} - -		memset(mem, 0xaaaaaaaa, 1024); -		for (n = 0; n < kend; ++n) { -			if (mem[n] != 0xaaaaaaaa) { -				printf("SDRAM test fails at: %08x\n", -				       (uint) & mem[n]); -				return 1; -			} -		} - -		memset(mem, 0x55555555, 1024); -		for (n = 0; n < kend; ++n) { -			if (mem[n] != 0x55555555) { -				printf("SDRAM test fails at: %08x\n", -				       (uint) & mem[n]); -				return 1; -			} -		} -	} -	printf("SDRAM test passes\n"); -	return 0; -} -#endif -  /*************************************************************************   *  pci_pre_init   * |