diff options
Diffstat (limited to 'board')
| -rw-r--r-- | board/freescale/mpc8540ads/mpc8540ads.c | 36 | ||||
| -rw-r--r-- | board/freescale/mpc8541cds/mpc8541cds.c | 39 | ||||
| -rw-r--r-- | board/freescale/mpc8544ds/mpc8544ds.c | 39 | ||||
| -rw-r--r-- | board/freescale/mpc8548cds/mpc8548cds.c | 39 | ||||
| -rw-r--r-- | board/freescale/mpc8555cds/mpc8555cds.c | 39 | ||||
| -rw-r--r-- | board/freescale/mpc8560ads/mpc8560ads.c | 36 | ||||
| -rw-r--r-- | board/freescale/mpc8568mds/mpc8568mds.c | 39 | 
7 files changed, 0 insertions, 267 deletions
| diff --git a/board/freescale/mpc8540ads/mpc8540ads.c b/board/freescale/mpc8540ads/mpc8540ads.c index a951b9e9a..ea1fbd1fb 100644 --- a/board/freescale/mpc8540ads/mpc8540ads.c +++ b/board/freescale/mpc8540ads/mpc8540ads.c @@ -230,42 +230,6 @@ sdram_init(void)  	udelay(100);  } - -#if defined(CFG_DRAM_TEST) -int testdram (void) -{ -	uint *pstart = (uint *) CFG_MEMTEST_START; -	uint *pend = (uint *) CFG_MEMTEST_END; -	uint *p; - -	printf("SDRAM test phase 1:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0xaaaaaaaa; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0xaaaaaaaa) { -			printf ("SDRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("SDRAM test phase 2:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0x55555555; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0x55555555) { -			printf ("SDRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("SDRAM test passed.\n"); -	return 0; -} -#endif - -  #if !defined(CONFIG_SPD_EEPROM)  /*************************************************************************   *  fixed sdram init -- doesn't use serial presence detect. diff --git a/board/freescale/mpc8541cds/mpc8541cds.c b/board/freescale/mpc8541cds/mpc8541cds.c index 62c8d63cd..b001dbd79 100644 --- a/board/freescale/mpc8541cds/mpc8541cds.c +++ b/board/freescale/mpc8541cds/mpc8541cds.c @@ -425,45 +425,6 @@ sdram_init(void)  #endif	/* enable SDRAM init */  } -#if defined(CFG_DRAM_TEST) -int -testdram(void) -{ -	uint *pstart = (uint *) CFG_MEMTEST_START; -	uint *pend = (uint *) CFG_MEMTEST_END; -	uint *p; - -	printf("Testing DRAM from 0x%08x to 0x%08x\n", -	       CFG_MEMTEST_START, -	       CFG_MEMTEST_END); - -	printf("DRAM test phase 1:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0xaaaaaaaa; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0xaaaaaaaa) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test phase 2:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0x55555555; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0x55555555) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test passed.\n"); -	return 0; -} -#endif -  #if defined(CONFIG_PCI)  /* For some reason the Tundra PCI bridge shows up on itself as a   * different device.  Work around that by refusing to configure it. diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c index dd10af809..150f86716 100644 --- a/board/freescale/mpc8544ds/mpc8544ds.c +++ b/board/freescale/mpc8544ds/mpc8544ds.c @@ -83,45 +83,6 @@ initdram(int board_type)  	return dram_size;  } -#if defined(CFG_DRAM_TEST) -int -testdram(void) -{ -	uint *pstart = (uint *) CFG_MEMTEST_START; -	uint *pend = (uint *) CFG_MEMTEST_END; -	uint *p; - -	printf("Testing DRAM from 0x%08x to 0x%08x\n", -	       CFG_MEMTEST_START, -	       CFG_MEMTEST_END); - -	printf("DRAM test phase 1:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0xaaaaaaaa; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0xaaaaaaaa) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test phase 2:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0x55555555; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0x55555555) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test passed.\n"); -	return 0; -} -#endif -  #ifdef CONFIG_PCI1  static struct pci_controller pci1_hose;  #endif diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c index efe2a3a3d..0b20ba298 100644 --- a/board/freescale/mpc8548cds/mpc8548cds.c +++ b/board/freescale/mpc8548cds/mpc8548cds.c @@ -250,45 +250,6 @@ sdram_init(void)  #endif	/* enable SDRAM init */  } -#if defined(CFG_DRAM_TEST) -int -testdram(void) -{ -	uint *pstart = (uint *) CFG_MEMTEST_START; -	uint *pend = (uint *) CFG_MEMTEST_END; -	uint *p; - -	printf("Testing DRAM from 0x%08x to 0x%08x\n", -	       CFG_MEMTEST_START, -	       CFG_MEMTEST_END); - -	printf("DRAM test phase 1:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0xaaaaaaaa; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0xaaaaaaaa) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test phase 2:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0x55555555; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0x55555555) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test passed.\n"); -	return 0; -} -#endif -  #if defined(CONFIG_PCI) || defined(CONFIG_PCI1)  /* For some reason the Tundra PCI bridge shows up on itself as a   * different device.  Work around that by refusing to configure it. diff --git a/board/freescale/mpc8555cds/mpc8555cds.c b/board/freescale/mpc8555cds/mpc8555cds.c index 8acbba420..94589c751 100644 --- a/board/freescale/mpc8555cds/mpc8555cds.c +++ b/board/freescale/mpc8555cds/mpc8555cds.c @@ -422,45 +422,6 @@ sdram_init(void)  #endif	/* enable SDRAM init */  } -#if defined(CFG_DRAM_TEST) -int -testdram(void) -{ -	uint *pstart = (uint *) CFG_MEMTEST_START; -	uint *pend = (uint *) CFG_MEMTEST_END; -	uint *p; - -	printf("Testing DRAM from 0x%08x to 0x%08x\n", -	       CFG_MEMTEST_START, -	       CFG_MEMTEST_END); - -	printf("DRAM test phase 1:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0xaaaaaaaa; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0xaaaaaaaa) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test phase 2:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0x55555555; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0x55555555) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test passed.\n"); -	return 0; -} -#endif -  #ifdef CONFIG_PCI  /* For some reason the Tundra PCI bridge shows up on itself as a   * different device.  Work around that by refusing to configure it diff --git a/board/freescale/mpc8560ads/mpc8560ads.c b/board/freescale/mpc8560ads/mpc8560ads.c index 8d4b8a8b5..6f65499fc 100644 --- a/board/freescale/mpc8560ads/mpc8560ads.c +++ b/board/freescale/mpc8560ads/mpc8560ads.c @@ -433,42 +433,6 @@ sdram_init(void)  	udelay(100);  } - -#if defined(CFG_DRAM_TEST) -int testdram (void) -{ -	uint *pstart = (uint *) CFG_MEMTEST_START; -	uint *pend = (uint *) CFG_MEMTEST_END; -	uint *p; - -	printf("SDRAM test phase 1:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0xaaaaaaaa; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0xaaaaaaaa) { -			printf ("SDRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("SDRAM test phase 2:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0x55555555; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0x55555555) { -			printf ("SDRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("SDRAM test passed.\n"); -	return 0; -} -#endif - -  #if !defined(CONFIG_SPD_EEPROM)  /*************************************************************************   *  fixed sdram init -- doesn't use serial presence detect. diff --git a/board/freescale/mpc8568mds/mpc8568mds.c b/board/freescale/mpc8568mds/mpc8568mds.c index 4568aa1df..f1928abf9 100644 --- a/board/freescale/mpc8568mds/mpc8568mds.c +++ b/board/freescale/mpc8568mds/mpc8568mds.c @@ -292,45 +292,6 @@ sdram_init(void)  #endif	/* enable SDRAM init */  } -#if defined(CFG_DRAM_TEST) -int -testdram(void) -{ -	uint *pstart = (uint *) CFG_MEMTEST_START; -	uint *pend = (uint *) CFG_MEMTEST_END; -	uint *p; - -	printf("Testing DRAM from 0x%08x to 0x%08x\n", -	       CFG_MEMTEST_START, -	       CFG_MEMTEST_END); - -	printf("DRAM test phase 1:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0xaaaaaaaa; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0xaaaaaaaa) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test phase 2:\n"); -	for (p = pstart; p < pend; p++) -		*p = 0x55555555; - -	for (p = pstart; p < pend; p++) { -		if (*p != 0x55555555) { -			printf ("DRAM test fails at: %08x\n", (uint) p); -			return 1; -		} -	} - -	printf("DRAM test passed.\n"); -	return 0; -} -#endif -  #if defined(CONFIG_PCI)  #ifndef CONFIG_PCI_PNP  static struct pci_config_table pci_mpc8568mds_config_table[] = { |