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. Change-Id: I659e5bc2a6cbadd9539931ee00ddea0a5253295f 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>
This commit is contained in:
@@ -255,6 +255,7 @@ static void disable_channel(ramctr_timing *ctrl, int channel) {
|
|||||||
ctrl->cmd_stretch[channel] = 0;
|
ctrl->cmd_stretch[channel] = 0;
|
||||||
ctrl->mad_dimm[channel] = 0;
|
ctrl->mad_dimm[channel] = 0;
|
||||||
memset(&ctrl->timings[channel][0], 0, sizeof(ctrl->timings[0]));
|
memset(&ctrl->timings[channel][0], 0, sizeof(ctrl->timings[0]));
|
||||||
|
memset(&ctrl->info.dimm[channel][0], 0, sizeof(ctrl->info.dimm[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user