Drop per-board ram_check() calls for now.
[coreboot.git] / src / mainboard / wyse / s50 / romstage.c
index 657667cfe8a130d8d65dff859f9ca55901d5c6a1..f8761243362a00fbe36943afa8c67c1827d1b5ee 100644 (file)
 #include "cpu/x86/msr.h"
 #include <cpu/amd/gx2def.h>
 #include <cpu/amd/geode_post_code.h>
-
+#include <spd.h>
 #include "southbridge/amd/cs5536/cs5536_early_smbus.c"
 #include "southbridge/amd/cs5536/cs5536_early_setup.c"
 
-#define DIMM0 0xA0
-#define DIMM1 0xFF /* DIMM1 is not available/used on this board. */
-
 static inline int spd_read_byte(unsigned int device, unsigned int address)
 {
        if (device != DIMM0)
@@ -56,7 +53,7 @@ static inline int spd_read_byte(unsigned int device, unsigned int address)
 void main(unsigned long bist)
 {
        static const struct mem_controller memctrl [] = {
-               {.channel0 = {(0xa<<3)|0, (0xa<<3)|1}}
+               {.channel0 = {DIMM0, DIMM1}}
        };
 
        SystemPreInit();
@@ -81,9 +78,4 @@ void main(unsigned long bist)
        print_err("ram setup done\n");
 
        msr_init();
-
-       /* Check all of memory */
-       /*ram_check(0x00000000, 640*1024);*/
-       print_err("ram check done\n");
 }
-