nb/intel/sandybridge/raminit: Add debugging output
Add debugging output to normalize_training. Tested on Lenovo T420. Change-Id: I1d787f7ead6cf35ee142a8848837840c91cb6967 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/17608 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
cab4d3df39
commit
413edc8f7a
|
@ -3029,7 +3029,13 @@ void normalize_training(ramctr_timing * ctrl)
|
||||||
int delta;
|
int delta;
|
||||||
FOR_ALL_LANES mat =
|
FOR_ALL_LANES mat =
|
||||||
max(ctrl->timings[channel][slotrank].lanes[lane].timA, mat);
|
max(ctrl->timings[channel][slotrank].lanes[lane].timA, mat);
|
||||||
|
printram("normalize %d, %d, %d: mat %d\n",
|
||||||
|
channel, slotrank, lane, mat);
|
||||||
|
|
||||||
delta = (mat >> 6) - ctrl->timings[channel][slotrank].val_4028;
|
delta = (mat >> 6) - ctrl->timings[channel][slotrank].val_4028;
|
||||||
|
printram("normalize %d, %d, %d: delta %d\n",
|
||||||
|
channel, slotrank, lane, delta);
|
||||||
|
|
||||||
ctrl->timings[channel][slotrank].val_4024 += delta;
|
ctrl->timings[channel][slotrank].val_4024 += delta;
|
||||||
ctrl->timings[channel][slotrank].val_4028 += delta;
|
ctrl->timings[channel][slotrank].val_4028 += delta;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue