summaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-12 16:02:52 +0100
committerAngel Pons <th3fanbus@gmail.com>2020-11-19 23:03:04 +0000
commitf999748fb3d75e16d0f1cfc44876bd02cc1280ac (patch)
treef3fe9ed47851c24a92750a7c6c59397903a0b48e /src/northbridge/intel
parent1a9b5aa46288ba25f033d4e89fd2817ab198dbb2 (diff)
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>
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/sandybridge/raminit_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c
index 83fea80dc6..d3b71d59d4 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.c
+++ b/src/northbridge/intel/sandybridge/raminit_common.c
@@ -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));
}
-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 */
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;
u32 mr1reg;
- odt = get_ODT(ctrl, rank, channel);
+ odt = get_ODT(ctrl, channel);
mr1reg = 2;
mr1reg |= encode_odt(odt.rttnom);
@@ -763,7 +763,7 @@ static void dram_mr2(ramctr_timing *ctrl, u8 rank, int channel)
pasr = 0;
cwl = ctrl->CWL - 5;
- odt = get_ODT(ctrl, rank, channel);
+ odt = get_ODT(ctrl, channel);
srt = ctrl->extended_temperature_range && !ctrl->auto_self_refresh;