From 74163d61bffe53796a089b99e2e25442512fa796 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Thu, 17 Nov 2016 20:02:43 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/17473 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/northbridge/intel/sandybridge/raminit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/northbridge/intel') diff --git a/src/northbridge/intel/sandybridge/raminit.c b/src/northbridge/intel/sandybridge/raminit.c index 33c88f3f07..0842d4bf93 100644 --- a/src/northbridge/intel/sandybridge/raminit.c +++ b/src/northbridge/intel/sandybridge/raminit.c @@ -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])); } /* -- cgit v1.2.3