nb/intel/x4x,sandybridge: Move INITRAM timestamps
Let's not have CBMEM hooks in between the different
INITRAM timestamps.
Change-Id: I46db196bcdf60361429b8a81772fa66d252ef1a3
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50973
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/src/northbridge/intel/sandybridge/raminit.c b/src/northbridge/intel/sandybridge/raminit.c
index 93a2eae9..0dcd952 100644
--- a/src/northbridge/intel/sandybridge/raminit.c
+++ b/src/northbridge/intel/sandybridge/raminit.c
@@ -298,6 +298,8 @@
size_t mrc_size;
ramctr_timing *ctrl_cached = NULL;
+ timestamp_add_now(TS_BEFORE_INITRAM);
+
MCHBAR32(SAPMCTL) |= 1;
/* Wait for ME to be ready */
@@ -458,6 +460,8 @@
report_memory_config();
+ timestamp_add_now(TS_AFTER_INITRAM);
+
cbmem_was_inited = !cbmem_recovery(s3resume);
if (!fast_boot)
save_timings(&ctrl);
@@ -473,8 +477,5 @@
void perform_raminit(int s3resume)
{
post_code(0x3a);
-
- timestamp_add_now(TS_BEFORE_INITRAM);
-
init_dram_ddr3(s3resume, cpu_get_cpuid());
}