Some more DIMM0 related cleanups and deduplication.
[coreboot.git] / src / mainboard / pcengines / alix2d / romstage.c
index 44e14ac7ec23954fe9c38472978d422f672fb2df..0312d4a27ccc5afca52ed4af784b1dfd54e971ed 100644 (file)
@@ -88,7 +88,7 @@ static u8 spd_read_byte(u8 device, u8 address)
        print_debug("spd_read_byte dev ");
        print_debug_hex8(device);
 
-       if (device != (0x50 << 1)) {
+       if (device != DIMM0) {
                print_debug(" returns 0xff\n");
                return 0xff;
        }
@@ -144,7 +144,7 @@ static void mb_gpio_init(void)
 void main(unsigned long bist)
 {
        static const struct mem_controller memctrl[] = {
-               {.channel0 = {0x50}},
+               {.channel0 = {DIMM0}},
        };
 
        post_code(0x01);