diff options
author | Stefan Reinauer <stepan@coreboot.org> | 2010-12-27 13:29:38 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-12-27 13:29:38 +0000 |
commit | 1c2c75098eab5f80ab8c50180061fe44fe797518 (patch) | |
tree | 31f459e2daa6452212e4f71427574160056f218b | |
parent | 3c0bfaf7da0f93d6887c0a99b85a43cffbcbf6e2 (diff) | |
download | coreboot-1c2c75098eab5f80ab8c50180061fe44fe797518.tar.xz |
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@coreboot.org>
Acked-by: Stefan Reinauer <stepan@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6216 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/northbridge/intel/i440bx/raminit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/northbridge/intel/i440bx/raminit.h b/src/northbridge/intel/i440bx/raminit.h index de9b5ab982..a1ab4c3e59 100644 --- a/src/northbridge/intel/i440bx/raminit.h +++ b/src/northbridge/intel/i440bx/raminit.h @@ -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 */ |