remove trailing whitespace
[coreboot.git] / src / northbridge / amd / amdk8 / raminit_f.c
index d7d6157357379337148f94d21314d767cfbfcb09..319293b7ed61e9f138efeb6e261d57040e8ab19e 100644 (file)
@@ -1108,10 +1108,10 @@ static unsigned long interleave_chip_selects(const struct mem_controller *ctrl,
         * and if so count them.
         */
 #if defined(CMOS_VSTART_interleave_chip_selects)
-       if (read_option(CMOS_VSTART_interleave_chip_selects, CMOS_VLEN_interleave_chip_selects, 1) == 0)
+       if (read_option(interleave_chip_selects, 1) == 0)
                return 0;
 #else
-#if !defined(CONFIG_INTERLEAVE_CHIP_SELECTS) || (CONFIG_INTERLEAVE_CHIP_SELECTS == 0)
+#if !defined(CONFIG_INTERLEAVE_CHIP_SELECTS) || !CONFIG_INTERLEAVE_CHIP_SELECTS
        return 0;
 #endif
 #endif
@@ -1806,7 +1806,7 @@ static struct spd_set_memclk_result spd_set_memclk(const struct mem_controller *
        min_cycle_time = min_cycle_times[(value >> NBCAP_MEMCLK_SHIFT) & NBCAP_MEMCLK_MASK];
        bios_cycle_time = min_cycle_times[
 #ifdef CMOS_VSTART_max_mem_clock
-               read_option(CMOS_VSTART_max_mem_clock, CMOS_VLEN_max_mem_clock, 0)
+               read_option(max_mem_clock, 0)
 #else
 #if defined(CONFIG_MAX_MEM_CLOCK)
                CONFIG_MAX_MEM_CLOCK
@@ -1815,7 +1815,7 @@ static struct spd_set_memclk_result spd_set_memclk(const struct mem_controller *
 #endif
 #endif
        ];
-       
+
        if (bios_cycle_time > min_cycle_time) {
                min_cycle_time = bios_cycle_time;
        }
@@ -2375,11 +2375,11 @@ static void set_ecc(const struct mem_controller *ctrl,
                dcl |= DCL_DimmEccEn;
        }
 #ifdef CMOS_VSTART_ECC_memory
-       if (read_option(CMOS_VSTART_ECC_memory, CMOS_VLEN_ECC_memory, 1) == 0) {
+       if (read_option(ECC_memory, 1) == 0) {
                dcl &= ~DCL_DimmEccEn;
        }
 #else // CMOS_VSTART_ECC_memory not defined
-#if defined(CONFIG_ECC_MEMORY) && (CONFIG_ECC_MEMORY == 0)
+#if !CONFIG_ECC_MEMORY
        dcl &= ~DCL_DimmEccEn;
 #endif
 #endif