From ffb7d8a31ae899f611235cd0a7f3579d34cd8cde Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 1 Apr 2006 04:10:44 +0000 Subject: - Adds support for the Advantech eval board. Configuration was produced on a SOM-DB2301 baseboard with a SOM-2354 cpu module. - Also does a slight tweak to the ram test code to make it more obvious when it fails. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2231 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/ram/ramtest.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/ram') diff --git a/src/ram/ramtest.c b/src/ram/ramtest.c index 2ae5303e8e..6baa81f93d 100644 --- a/src/ram/ramtest.c +++ b/src/ram/ramtest.c @@ -69,17 +69,26 @@ static void ram_verify(unsigned long start, unsigned long stop) value = read_phys(addr); if (value != addr) { /* Display address with error */ + print_err("Fail: @0x"); print_err_hex32(addr); - print_err_char(':'); + print_err(" Read value=0x"); print_err_hex32(value); print_err("\r\n"); i++; - if(i>256) break; + if(i>256) { + print_debug("Aborting.\n\r"); + break; + } } } /* Display final address */ print_debug_hex32(addr); - print_debug("\r\nDRAM verified\r\n"); + if (i) { + print_debug("\r\nDRAM did _NOT_ verify!\r\n"); + } + else { + print_debug("\r\nDRAM range verified.\r\n"); + } } -- cgit v1.2.3