nb/intel/sandybridge: Drop unused `rank` parameter
Change-Id: I5476bbe1a99d087bc026dc5646c8440c50dd151e Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47518 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
1a9b5aa462
commit
f999748fb3
|
@ -706,7 +706,7 @@ static void dram_mr0(ramctr_timing *ctrl, u8 rank, int channel)
|
||||||
write_mrreg(ctrl, channel, rank, 0, make_mr0(ctrl, rank));
|
write_mrreg(ctrl, channel, rank, 0, make_mr0(ctrl, rank));
|
||||||
}
|
}
|
||||||
|
|
||||||
static odtmap get_ODT(ramctr_timing *ctrl, u8 rank, int channel)
|
static odtmap get_ODT(ramctr_timing *ctrl, int channel)
|
||||||
{
|
{
|
||||||
/* Get ODT based on rankmap */
|
/* Get ODT based on rankmap */
|
||||||
int dimms_per_ch = (ctrl->rankmap[channel] & 1) + ((ctrl->rankmap[channel] >> 2) & 1);
|
int dimms_per_ch = (ctrl->rankmap[channel] & 1) + ((ctrl->rankmap[channel] >> 2) & 1);
|
||||||
|
@ -738,7 +738,7 @@ static u32 make_mr1(ramctr_timing *ctrl, u8 rank, int channel)
|
||||||
odtmap odt;
|
odtmap odt;
|
||||||
u32 mr1reg;
|
u32 mr1reg;
|
||||||
|
|
||||||
odt = get_ODT(ctrl, rank, channel);
|
odt = get_ODT(ctrl, channel);
|
||||||
mr1reg = 2;
|
mr1reg = 2;
|
||||||
|
|
||||||
mr1reg |= encode_odt(odt.rttnom);
|
mr1reg |= encode_odt(odt.rttnom);
|
||||||
|
@ -763,7 +763,7 @@ static void dram_mr2(ramctr_timing *ctrl, u8 rank, int channel)
|
||||||
|
|
||||||
pasr = 0;
|
pasr = 0;
|
||||||
cwl = ctrl->CWL - 5;
|
cwl = ctrl->CWL - 5;
|
||||||
odt = get_ODT(ctrl, rank, channel);
|
odt = get_ODT(ctrl, channel);
|
||||||
|
|
||||||
srt = ctrl->extended_temperature_range && !ctrl->auto_self_refresh;
|
srt = ctrl->extended_temperature_range && !ctrl->auto_self_refresh;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue