Use DIMM0 et al in lots more places instead of hardocding values.
[coreboot.git] / src / mainboard / lippert / spacerunner-lx / romstage.c
index cc9e7fda98bdfe95731f36da698da7c0f8be9c0b..f5ae44e214f34c15fe56b357b9fa735628071c0d 100644 (file)
@@ -34,7 +34,6 @@
 #include <cpu/amd/lxdef.h>
 #include <cpu/amd/geode_post_code.h>
 #include "southbridge/amd/cs5536/cs5536.h"
-#include <spd.h>
 
 #include "southbridge/amd/cs5536/cs5536_early_smbus.c"
 #include "southbridge/amd/cs5536/cs5536_early_setup.c"
@@ -163,7 +162,7 @@ void main(unsigned long bist)
        post_code(0x01);
 
        static const struct mem_controller memctrl[] = {
-               {.channel0 = {(0xa << 3) | 0, (0xa << 3) | 1}}
+               {.channel0 = {DIMM0, DIMM1}}
        };
 
        SystemPreInit();