UPSTREAM: nb/intel/sandybridge/raminit: Fix disable_channel
Also memset info.dimm as it contains decoded SPD timings used to calculate common timings. Tested manually on Lenovo T420. BUG=None BRANCH=None TEST=None Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/17473 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Change-Id: I659e5bc2a6cbadd9539931ee00ddea0a5253295f Reviewed-on: https://chromium-review.googlesource.com/413251 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
3d856f4bdc
commit
40d76e62ea
1 changed files with 1 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ static void disable_channel(ramctr_timing *ctrl, int channel) {
|
|||
ctrl->cmd_stretch[channel] = 0;
|
||||
ctrl->mad_dimm[channel] = 0;
|
||||
memset(&ctrl->timings[channel][0], 0, sizeof(ctrl->timings[0]));
|
||||
memset(&ctrl->info.dimm[channel][0], 0, sizeof(ctrl->info.dimm[0]));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue