Use DIMM0 et al in lots more places instead of hardocding values.
[coreboot.git] / src / mainboard / lippert / frontrunner / romstage.c
index 2b3ebe2d85a8eb784e9ad6391cc9f11d37d55d71..e317f041f485bd1d192c74eff38b1573228ab06f 100644 (file)
@@ -11,7 +11,6 @@
 #include <cpu/amd/gx2def.h>
 #include <cpu/amd/geode_post_code.h>
 #include "southbridge/amd/cs5535/cs5535.h"
-#include <spd.h>
 
 #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
 
@@ -76,7 +75,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}}
        };
        unsigned char temp;
        SystemPreInit();