From dfe8d766fb5a561fb8b27007f5802c255f20167b Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 2 Sep 2010 20:30:31 +0000 Subject: Trivial warning fix for adl855pc. Signed-off-by: Myles Watson Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5766 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/intel/i855/raminit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/northbridge/intel') diff --git a/src/northbridge/intel/i855/raminit.c b/src/northbridge/intel/i855/raminit.c index e611d8e62b..604a5e1f59 100644 --- a/src/northbridge/intel/i855/raminit.c +++ b/src/northbridge/intel/i855/raminit.c @@ -872,10 +872,14 @@ static void spd_set_dram_throttle_control(const struct mem_controller *ctrl) static void spd_update(const struct mem_controller *ctrl, u8 reg, u32 new_value) { +#if CONFIG_DEBUG_RAM_SETUP u32 value1 = pci_read_config32(ctrl->d0, reg); +#endif pci_write_config32(ctrl->d0, reg, new_value); +#if CONFIG_DEBUG_RAM_SETUP u32 value2 = pci_read_config32(ctrl->d0, reg); PRINTK_DEBUG("update reg %02x, old: %08x, new: %08x, read back: %08x\n", reg, value1, new_value, value2); +#endif } /* if ram still doesn't work do this function */ -- cgit v1.2.3