aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge/raminit_common.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-14 01:26:52 +0100
committerAngel Pons <th3fanbus@gmail.com>2020-11-20 00:37:27 +0000
commit4c79f930828be3f54da2affacf667267e44158e2 (patch)
tree2112c800d1d66470c72c6c8fbf9d07163e548cc1 /src/northbridge/intel/sandybridge/raminit_common.c
parenta93f46ebc066931430ae5794af99f0f3cae1d030 (diff)
nb/intel/sandybridge: Rename `discover_edges` functions
These are simply read MPR training, using the MPR pattern mode in MR3. Change-Id: Icdc60572e0ee0b59dcb5dee1e1aceccfda79f029 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47610 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/northbridge/intel/sandybridge/raminit_common.c')
-rw-r--r--src/northbridge/intel/sandybridge/raminit_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c
index b583264002..23eab153ed 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.c
+++ b/src/northbridge/intel/sandybridge/raminit_common.c
@@ -2308,7 +2308,7 @@ int command_training(ramctr_timing *ctrl)
return 0;
}
-static int discover_edges_real(ramctr_timing *ctrl, int channel, int slotrank, int *edges)
+static int find_read_mpr_margin(ramctr_timing *ctrl, int channel, int slotrank, int *edges)
{
int edge;
int stats[NUM_LANES][MAX_EDGE_TIMING + 1];
@@ -2412,7 +2412,7 @@ static void find_predefined_pattern(ramctr_timing *ctrl, const int channel)
}
}
-int discover_edges(ramctr_timing *ctrl)
+int read_mpr_training(ramctr_timing *ctrl)
{
int falling_edges[NUM_CHANNELS][NUM_SLOTRANKS][NUM_LANES];
int rising_edges[NUM_CHANNELS][NUM_SLOTRANKS][NUM_LANES];
@@ -2441,7 +2441,7 @@ int discover_edges(ramctr_timing *ctrl)
printram("discover falling edges:\n[%x] = %x\n", IOSAV_DC_MASK, 0x300);
FOR_ALL_CHANNELS FOR_ALL_POPULATED_RANKS {
- err = discover_edges_real(ctrl, channel, slotrank,
+ err = find_read_mpr_margin(ctrl, channel, slotrank,
falling_edges[channel][slotrank]);
if (err)
return err;
@@ -2451,7 +2451,7 @@ int discover_edges(ramctr_timing *ctrl)
printram("discover rising edges:\n[%x] = %x\n", IOSAV_DC_MASK, 0x200);
FOR_ALL_CHANNELS FOR_ALL_POPULATED_RANKS {
- err = discover_edges_real(ctrl, channel, slotrank,
+ err = find_read_mpr_margin(ctrl, channel, slotrank,
rising_edges[channel][slotrank]);
if (err)
return err;