Some more DIMM0 related cleanups and deduplication.
[coreboot.git] / src / northbridge / intel / i440bx / debug.c
index b43775521319b50911d162ce46959709955686e0..1d8cbf6a57b9b2ac15eaf035ee64610273407009 100644 (file)
@@ -1,15 +1,17 @@
+#include "raminit.h"
 
-static void dump_spd_registers(void)
+void dump_spd_registers(void)
 {
+#if CONFIG_DEBUG_RAM_SETUP
        int i;
        print_debug("\n");
        for(i = 0; i < DIMM_SOCKETS; i++) {
                unsigned device;
-               device = DIMM_SPD_BASE + i;
+               device = DIMM0 + i;
                if (device) {
                        int j;
-                       print_debug("dimm: "); 
-                       print_debug_hex8(i); 
+                       print_debug("dimm: ");
+                       print_debug_hex8(i);
                        print_debug(".0: ");
                        print_debug_hex8(device);
                        for(j = 0; j < 256; j++) {
@@ -32,6 +34,7 @@ static void dump_spd_registers(void)
                        print_debug("\n");
                }
        }
+#endif
 }
 
 #if 0