Drop per-board ram_check() calls for now.
[coreboot.git] / src / mainboard / digitallogic / msm586seg / romstage.c
index ae964fea93eec7b811644e5770ea7bb46ba8225b..a4994f1f4b3f184544a4de4a7017043df3875a2b 100644 (file)
@@ -4,12 +4,9 @@
 #include <device/pnp_def.h>
 #include <arch/romcc_io.h>
 #include <arch/hlt.h>
-#include "pc80/mc146818rtc_early.c"
-#include "pc80/serial.c"
-#include "console/console.c"
-#include "lib/ramtest.c"
+#include <pc80/mc146818rtc.h>
+#include <console/console.h>
 #include "cpu/x86/bist.h"
-//#include "lib/delay.c"
 
 void setup_pars(void)
 {
@@ -44,12 +41,7 @@ struct mem_controller {
        int i;
 };
 
-static inline int spd_read_byte(unsigned device, unsigned address)
-{
-//     return smbus_read_byte(device, address);
-}
-
-//#include "lib/generic_sdram.c"
+static int spd_read_byte(unsigned device, unsigned address) { }
 
 static inline void dumpmem(void){
   int i, j;
@@ -184,7 +176,7 @@ static void main(unsigned long bist)
 
        //                      while(1)
        print_err("STATIC MEM DONE\n");
-       outb(0xee, 0x80);
+       post_code(0xee);
        print_err("loop forever ...\n");
 
 #if 0
@@ -210,16 +202,6 @@ static void main(unsigned long bist)
        dump_pci_device(PCI_DEV(0, 0, 0));
 #endif
 
-#if 0
-       print_err("RAM CHECK!\n");
-       // Check 16MB of memory @ 0
-       ram_check(0x00000000, 0x01000000);
-#endif
-#if 0
-       print_err("RAM CHECK for 32 MB!\n");
-       // Check 32MB of memory @ 0
-       ram_check(0x00000000, 0x02000000);
-#endif
 #if 1
        {
          volatile unsigned char *src = (unsigned char *) 0x2000000 + 0x60000;
@@ -232,13 +214,14 @@ static void main(unsigned long bist)
            *dst = *src;
            //print_err(" dst is now "); print_err_hex32(*dst); print_err("\n");
            dst++, src++;
-           outb((unsigned char)i, 0x80);
+           post_code(i & 0xff);
          }
        }
        dumpmem();
-       outb(0, 0x80);
+       post_code(0x00);
+
        print_err("loop forever\n");
-       outb(0xdd, 0x80);
+       post_code(0xdd);
         __asm__ volatile(
                         "movl %0, %%edi\n\t"
                         "jmp *%%edi\n\t"
@@ -251,4 +234,3 @@ static void main(unsigned long bist)
        while(1);
 #endif
 }
-