nb/intel/sandybridge/raminit: Fix setting scramble seed for CH1

The scramble seed intended for CH1 were written to the regs of CH0.

Write the scramble seed for CH1 at the correct offset.

TESTED on Lenovo T430, HP 2760P, Asrock B75PRO3-M.

Change-Id: I3778947e96b3298c38e6d5b74988e617e1ffea7b
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/21710
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Iru Cai <mytbk920423@gmail.com>
This commit is contained in:
Arthur Heymans 2017-09-26 23:18:14 +02:00
parent f73bc0b2d1
commit 6af8aab539

View file

@ -3098,9 +3098,9 @@ void set_scrambling_seed(ramctr_timing * ctrl)
};
FOR_ALL_POPULATED_CHANNELS {
MCHBAR32(0x4020 + 0x400 * channel) &= ~0x10000000;
write32(DEFAULT_MCHBAR + 0x4034, seeds[channel][0]);
write32(DEFAULT_MCHBAR + 0x403c, seeds[channel][1]);
write32(DEFAULT_MCHBAR + 0x4038, seeds[channel][2]);
MCHBAR32(0x4034 + 0x400 * channel) = seeds[channel][0];
MCHBAR32(0x403c + 0x400 * channel) = seeds[channel][1];
MCHBAR32(0x4038 + 0x400 * channel) = seeds[channel][2];
}
}