[coreboot] [commit] r6216 - trunk/src/northbridge/intel/i440bx

repository service svn at coreboot.org
Mon Dec 27 14:29:39 CET 2010


Author: stepan
Date: Mon Dec 27 14:29:38 2010
New Revision: 6216
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6216

Log:
dump_spd_registers() is only defined when ram init debugging is on.

Most boards unconditionally call this. Fix it in header file instead of each single romstage.c

Signed-off-by: Stefan Reinauer <stepan at coreboot.org>
Acked-by: Stefan Reinauer <stepan at coreboot.org>

Modified:
   trunk/src/northbridge/intel/i440bx/raminit.h

Modified: trunk/src/northbridge/intel/i440bx/raminit.h
==============================================================================
--- trunk/src/northbridge/intel/i440bx/raminit.h	Mon Dec 27 12:34:57 2010	(r6215)
+++ trunk/src/northbridge/intel/i440bx/raminit.h	Mon Dec 27 14:29:38 2010	(r6216)
@@ -29,8 +29,11 @@
 void sdram_set_registers(void);
 void sdram_set_spd_registers(void);
 void sdram_enable(void);
-
 /* Debug */
+#if CONFIG_DEBUG_RAM_SETUP
 void dump_spd_registers(void);
 void dump_pci_device(unsigned dev);
+#else
+#define dump_spd_registers()
+#endif
 #endif				/* RAMINIT_H */




More information about the coreboot mailing list