Iru Cai has uploaded this change for review. ( https://review.coreboot.org/28117
Change subject: sandybridge/raminit_common.c: fix printram statement ......................................................................
sandybridge/raminit_common.c: fix printram statement
Change-Id: Iddea8cc71dc1fb33d46b22dd19e39bf1c1257555 Signed-off-by: Iru Cai mytbk920423@gmail.com --- M src/northbridge/intel/sandybridge/raminit_common.c 1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/28117/1
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c index d806066..6944542 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.c +++ b/src/northbridge/intel/sandybridge/raminit_common.c @@ -207,12 +207,15 @@ stretch = 3; MCHBAR32_AND_OR(0x401c + 0x400 * channel, 0xffffc3ff, (stretch << 12) | (stretch << 10)); - printram("OTHP Workaround [%x] = %x\n", addr, reg); + printram("OTHP Workaround [%x] = %x\n", + 0x401c + 0x400 * channel, + MCHBAR32(0x401c + 0x400 * channel)); } else { // OTHP MCHBAR32_AND_OR(0x400c + 0x400 * channel, 0xfff0ffff, (stretch << 16) | (stretch << 18)); - printram("OTHP [%x] = %x\n", addr, reg); + printram("OTHP [%x] = %x\n", 0x400c + 0x400 * channel + , MCHBAR32(0x400c + 0x400 * channel)); } }