projects
/
coreboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f072fe
)
Trivial warning fix for adl855pc.
author
Myles Watson
<mylesgw@gmail.com>
Thu, 2 Sep 2010 20:30:31 +0000
(20:30 +0000)
committer
Myles Watson
<mylesgw@gmail.com>
Thu, 2 Sep 2010 20:30:31 +0000
(20:30 +0000)
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5766
2b7e53f0
-3cfb-0310-b3e9-
8179ed1497e1
src/northbridge/intel/i855/raminit.c
patch
|
blob
|
history
diff --git
a/src/northbridge/intel/i855/raminit.c
b/src/northbridge/intel/i855/raminit.c
index e611d8e62ba78c31f6b6933de853b1120a297b45..604a5e1f5958393419268aa1b4788bd3d1269200 100644
(file)
--- 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 */