summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/baytrail/baytrail/efi_wrapper.h4
-rw-r--r--src/soc/intel/baytrail/refcode.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/soc/intel/baytrail/baytrail/efi_wrapper.h b/src/soc/intel/baytrail/baytrail/efi_wrapper.h
index 6682f95cfc..3304d03451 100644
--- a/src/soc/intel/baytrail/baytrail/efi_wrapper.h
+++ b/src/soc/intel/baytrail/baytrail/efi_wrapper.h
@@ -29,7 +29,7 @@
#ifndef __EFI_WRAPPER_H__
#define __EFI_WRAPPER_H__
-#define EFI_WRAPPER_VER 1
+#define EFI_WRAPPER_VER 2
/* Provide generic x86 calling conventions. */
#define ABI_X86 __attribute((regparm(0)))
@@ -44,6 +44,8 @@ struct efi_wrapper_params {
int version;
void ABI_X86 (*console_out)(unsigned char byte);
+
+ unsigned int tsc_ticks_per_microsecond;
} __attribute__((packed));
typedef int ABI_X86 (*efi_wrapper_entry_t)(struct efi_wrapper_params *);
diff --git a/src/soc/intel/baytrail/refcode.c b/src/soc/intel/baytrail/refcode.c
index 1d88ef7eb9..9b5aa6790e 100644
--- a/src/soc/intel/baytrail/refcode.c
+++ b/src/soc/intel/baytrail/refcode.c
@@ -19,6 +19,7 @@
#include <cbmem.h>
#include <console/console.h>
+#include <cpu/x86/tsc.h>
#include <rmodule.h>
#include <baytrail/ramstage.h>
@@ -47,6 +48,7 @@ void baytrail_run_reference_code(void)
return;
}
+ wrp.tsc_ticks_per_microsecond = tsc_freq_mhz();
entry = refcode.entry;
/* Call into reference code. */