sb/intel/fspi89xx: Fix timestamp code
The save_timestamp_to_cmos code was used at Sage before the early cbmem was available. Update it to use the standard timestamp calls, based on the rangeley implementation. Change-Id: I9a3a6609bdc8d03c4b86951daa1cafddd9c1332e Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20564 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
23b93dd7d8
commit
d303311ce2
|
@ -99,9 +99,9 @@ void main(FSP_INFO_HEADER *fsp_info_header)
|
||||||
|
|
||||||
post_code(0x40);
|
post_code(0x40);
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS)
|
timestamp_init(get_initial_timestamp());
|
||||||
save_timestamp_to_cmos(CMOS_MAIN_START_ADDR, rdtsc());
|
timestamp_add_now(TS_START_ROMSTAGE);
|
||||||
#endif
|
|
||||||
pch_enable_lpc();
|
pch_enable_lpc();
|
||||||
|
|
||||||
/* Enable GPIOs */
|
/* Enable GPIOs */
|
||||||
|
@ -151,9 +151,7 @@ void main(FSP_INFO_HEADER *fsp_info_header)
|
||||||
|
|
||||||
post_code(0x48);
|
post_code(0x48);
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS)
|
timestamp_add_now(TS_BEFORE_INITRAM);
|
||||||
save_timestamp_to_cmos(CMOS_PRE_INITRAM_ADDR, rdtsc());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Call early init to initialize memory and chipset. This function returns
|
* Call early init to initialize memory and chipset. This function returns
|
||||||
|
|
Loading…
Reference in New Issue