dump_spd_registers() is only defined when ram init debugging is on.
authorStefan Reinauer <stepan@coreboot.org>
Mon, 27 Dec 2010 13:29:38 +0000 (13:29 +0000)
committerStefan Reinauer <stepan@openbios.org>
Mon, 27 Dec 2010 13:29:38 +0000 (13:29 +0000)
Most boards unconditionally call this. Fix it in header file instead of each single romstage.c

Signed-off-by: Stefan Reinauer <stepan@coreboot.org>
Acked-by: Stefan Reinauer <stepan@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6216 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/northbridge/intel/i440bx/raminit.h

index de9b5ab982358f3ad48f7d4a8e2f950bb66c7771..a1ab4c3e59e34f179234db2d5f059455b506f773 100644 (file)
@@ -29,8 +29,11 @@ int spd_read_byte(unsigned int device, unsigned int address);
 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 */