aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/baytrail/refcode.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-10-28 09:54:22 -0500
committerAaron Durbin <adurbin@google.com>2014-02-24 18:42:52 +0100
commit8fa6283b8dcf6abe740d60dc1450c07fcf1265de (patch)
treeee513554136e49e941086b500a808bdf2a8a3143 /src/soc/intel/baytrail/refcode.c
parenteb2eedf6f7d6ac1cff65ed8672701f6efd3b19dd (diff)
baytrail: use version 2 of efi wrapper
Version 2 of the efi wrapper wants the speed of the TSC timer initialized in the parameter structure. BUG=chrome-os-partner:22866 BRANCH=None TEST=Built and booted through depthcharge. No errors spit out by wrapper. CQ-DEPEND=CL:*147256 Change-Id: I9cd265ea6bde93be85fc6fbc905d83af57fc2773 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/174712 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/4903 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/soc/intel/baytrail/refcode.c')
-rw-r--r--src/soc/intel/baytrail/refcode.c2
1 files changed, 2 insertions, 0 deletions
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. */