marvel/bg4cd: move timestamp init to SoC code
No need to repeat this in the mainboard code (even if there's only one right now). Change-Id: Iaa3508c27f8c38cfa343ab1d8a094ce922dec157 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/10825 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
1936f6cf25
commit
3957ddc414
|
@ -37,37 +37,23 @@
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
#if CONFIG_COLLECT_TIMESTAMPS
|
timestamp_add_now(TS_START_ROMSTAGE);
|
||||||
uint64_t start_romstage_time;
|
|
||||||
uint64_t before_dram_time;
|
|
||||||
uint64_t after_dram_time;
|
|
||||||
uint64_t base_time = timestamp_get();
|
|
||||||
start_romstage_time = timestamp_get();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
console_init();
|
console_init();
|
||||||
|
|
||||||
#if CONFIG_COLLECT_TIMESTAMPS
|
timestamp_add_now(TS_BEFORE_INITRAM);
|
||||||
before_dram_time = timestamp_get();
|
|
||||||
#endif
|
|
||||||
sdram_init();
|
sdram_init();
|
||||||
#if CONFIG_COLLECT_TIMESTAMPS
|
|
||||||
after_dram_time = timestamp_get();
|
timestamp_add_now(TS_AFTER_INITRAM);
|
||||||
#endif
|
|
||||||
mmu_init();
|
mmu_init();
|
||||||
mmu_config_range(0, 4096, DCACHE_OFF);
|
mmu_config_range(0, 4096, DCACHE_OFF);
|
||||||
dcache_mmu_enable();
|
dcache_mmu_enable();
|
||||||
|
|
||||||
cbmem_initialize_empty();
|
cbmem_initialize_empty();
|
||||||
#if CONFIG_COLLECT_TIMESTAMPS
|
|
||||||
timestamp_init(base_time);
|
|
||||||
timestamp_add(TS_START_ROMSTAGE, start_romstage_time);
|
|
||||||
timestamp_add(TS_BEFORE_INITRAM, before_dram_time);
|
|
||||||
timestamp_add(TS_AFTER_INITRAM, after_dram_time);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CONFIG_COLLECT_TIMESTAMPS
|
|
||||||
timestamp_add_now(TS_END_ROMSTAGE);
|
timestamp_add_now(TS_END_ROMSTAGE);
|
||||||
#endif
|
|
||||||
run_ramstage();
|
run_ramstage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,12 @@
|
||||||
|
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <program_loading.h>
|
#include <program_loading.h>
|
||||||
|
#include <timestamp.h>
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
console_init();
|
console_init();
|
||||||
|
timestamp_init(timestamp_get());
|
||||||
run_romstage();
|
run_romstage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue