soc/amd/cezanne: call bootblock_main_with_basetime in bootblock_c_entry
Change-Id: Iaac661fcb7581236ace4b5bf057b3e70289f1c8b Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48473 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
0645347d0b
commit
4911c3e352
|
@ -2,11 +2,20 @@
|
||||||
|
|
||||||
#include <amdblocks/amd_pci_mmconf.h>
|
#include <amdblocks/amd_pci_mmconf.h>
|
||||||
#include <bootblock_common.h>
|
#include <bootblock_common.h>
|
||||||
|
#include <cpu/x86/tsc.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
|
asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
|
||||||
{
|
{
|
||||||
enable_pci_mmconf();
|
enable_pci_mmconf();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* base_timestamp is raw tsc value. We need to divide by tsc_freq_mhz
|
||||||
|
* to get micro-seconds granularity.
|
||||||
|
*/
|
||||||
|
base_timestamp /= tsc_freq_mhz();
|
||||||
|
|
||||||
|
bootblock_main_with_basetime(base_timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bootblock_soc_early_init(void)
|
void bootblock_soc_early_init(void)
|
||||||
|
|
Loading…
Reference in New Issue