nb/intel/sandybridge: Make MCHBAR arithmetics consistent
Ensure that the operation order is always the same. This results in changes to the binary, but the effective result is the same. Change-Id: I9772832c60089b35889df7298e20a2bd02b35b00 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38206 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
d5be4e4046
commit
1aba2a32e8
File diff suppressed because it is too large
Load Diff
|
@ -590,12 +590,12 @@ static void dram_ioregs(ramctr_timing * ctrl)
|
|||
|
||||
// IO clock
|
||||
FOR_ALL_CHANNELS {
|
||||
MCHBAR32(0xc00 + 0x100 * channel) = ctrl->rankmap[channel];
|
||||
MCHBAR32(0xc00 + channel * 0x100) = ctrl->rankmap[channel];
|
||||
}
|
||||
|
||||
// IO command
|
||||
FOR_ALL_CHANNELS {
|
||||
MCHBAR32(0x3200 + 0x100 * channel) = ctrl->rankmap[channel];
|
||||
MCHBAR32(0x3200 + channel * 0x100) = ctrl->rankmap[channel];
|
||||
}
|
||||
|
||||
// IO control
|
||||
|
|
|
@ -361,12 +361,12 @@ static void dram_ioregs(ramctr_timing * ctrl)
|
|||
|
||||
// IO clock
|
||||
FOR_ALL_CHANNELS {
|
||||
MCHBAR32(0xc00 + 0x100 * channel) = ctrl->rankmap[channel];
|
||||
MCHBAR32(0xc00 + channel * 0x100) = ctrl->rankmap[channel];
|
||||
}
|
||||
|
||||
// IO command
|
||||
FOR_ALL_CHANNELS {
|
||||
MCHBAR32(0x3200 + 0x100 * channel) = ctrl->rankmap[channel];
|
||||
MCHBAR32(0x3200 + channel * 0x100) = ctrl->rankmap[channel];
|
||||
}
|
||||
|
||||
// IO control
|
||||
|
|
Loading…
Reference in New Issue