Some more DIMM0 related cleanups and deduplication.
[coreboot.git] / src / northbridge / intel / i440bx / raminit.c
index 9a5968d592d4d288cb508972806067a387af7a80..205d40f4d104da156b609233e17a830ac3e14ab2 100644 (file)
@@ -616,7 +616,7 @@ static void spd_enable_refresh(void)
        reg = pci_read_config8(NB, DRAMC);
 
        for (i = 0; i < DIMM_SOCKETS; i++) {
-               value = spd_read_byte(DIMM_SPD_BASE + i, SPD_REFRESH);
+               value = spd_read_byte(DIMM0 + i, SPD_REFRESH);
                if (value < 0)
                        continue;
                reg = (reg & 0xf8) | refresh_rate_map[(value & 0x7f)];
@@ -750,7 +750,7 @@ static void set_dram_row_attributes(void)
 
        for (i = 0; i < DIMM_SOCKETS; i++) {
                unsigned int device;
-               device = DIMM_SPD_BASE + i;
+               device = DIMM0 + i;
                bpr >>= 2;
 
                /* First check if a DIMM is actually present. */