Simplify a few code chunks, fix whitespace and indentation.
[coreboot.git] / src / mainboard / lippert / frontrunner / romstage.c
index 6630b581d81fff844323518bd57f83198a4b2897..1d63e492434b664a8f16e67d66824b969847a632 100644 (file)
 #include <cpu/amd/gx2def.h>
 #include <cpu/amd/geode_post_code.h>
 #include "southbridge/amd/cs5535/cs5535.h"
-
-#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
-
 #include "southbridge/amd/cs5535/cs5535_early_smbus.c"
 #include "southbridge/amd/cs5535/cs5535_early_setup.c"
 
-#define DIMM0 0xA0
-#define DIMM1 0xA2
+#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
 
 static const unsigned char spdbytes[] = {      /* 4x Qimonda HYB25DC512160CF-6 */
        0xFF, 0xFF,                             /* only values used by raminit.c are set */
@@ -78,9 +74,10 @@ 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();
        msr_init();
 
@@ -134,6 +131,4 @@ void main(unsigned long bist)
 //     ram_check(0, 16384);
        ram_check(0x20000, 0x24000);
 //     ram_check(0x00000000, 640*1024);
-
 }
-