public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] pp44xx: Remove implementation of testdram() from Korat board support
@ 2008-06-14 21:02 Larry Johnson
  2008-07-10  7:07 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Larry Johnson @ 2008-06-14 21:02 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Larry Johnson <lrj@acm.org>
---
This patch requires the previously-submitted patch for these files.

 board/korat/korat.c     |   38 --------------------------------------
 include/configs/korat.h |    1 -
 2 files changed, 0 insertions(+), 39 deletions(-)

diff --git a/board/korat/korat.c b/board/korat/korat.c
index dc97724..51874ea 100644
--- a/board/korat/korat.c
+++ b/board/korat/korat.c
@@ -569,44 +569,6 @@ int checkboard(void)
 	return 0;
 }
 
-#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);
-
-	/* TODO: find correct size of SDRAM */
-	for (k = 0; k < CFG_MBYTES_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 /* defined(CFG_DRAM_TEST) */
-
 #if defined(CONFIG_PCI) && defined(CONFIG_PCI_PNP)
 /*
  * Assign interrupts to PCI devices.
diff --git a/include/configs/korat.h b/include/configs/korat.h
index e2610be..4ca4ed0 100644
--- a/include/configs/korat.h
+++ b/include/configs/korat.h
@@ -145,7 +145,6 @@
 #define CONFIG_DDR_ECC			/* Use ECC when available	*/
 #define SPD_EEPROM_ADDRESS	{0x50}
 #define CONFIG_PROG_SDRAM_TLB
-#define CFG_DRAM_TEST
 #define CFG_MEM_TOP_HIDE	(4 << 10) /* don't use last 4kbytes	*/
 					/* 440EPx errata CHIP 11	*/
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot-Users] [PATCH] pp44xx: Remove implementation of testdram() from Korat board support
  2008-06-14 21:02 [U-Boot-Users] [PATCH] pp44xx: Remove implementation of testdram() from Korat board support Larry Johnson
@ 2008-07-10  7:07 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2008-07-10  7:07 UTC (permalink / raw)
  To: u-boot

On Saturday 14 June 2008, Larry Johnson wrote:
> Signed-off-by: Larry Johnson <lrj@acm.org>

Applied to u-boot-ppc4xx. Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-10  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-14 21:02 [U-Boot-Users] [PATCH] pp44xx: Remove implementation of testdram() from Korat board support Larry Johnson
2008-07-10  7:07 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox