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>
This commit is contained in:
@ -298,6 +298,8 @@ static void init_dram_ddr3(int s3resume, const u32 cpuid)
|
||||
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 @@ static void init_dram_ddr3(int s3resume, const u32 cpuid)
|
||||
|
||||
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 @@ static void init_dram_ddr3(int s3resume, const u32 cpuid)
|
||||
void perform_raminit(int s3resume)
|
||||
{
|
||||
post_code(0x3a);
|
||||
|
||||
timestamp_add_now(TS_BEFORE_INITRAM);
|
||||
|
||||
init_dram_ddr3(s3resume, cpu_get_cpuid());
|
||||
}
|
||||
|
Reference in New Issue
Block a user