summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKayalvizhi Dhandapani <kayalvizhid@ami.com>2014-10-07 14:11:20 -0400
committerMarc Jones <marc.jones@se-eng.com>2014-10-09 22:09:25 +0200
commita16055ae8ad2a04a7577aae351def4482d7bbab8 (patch)
tree4d86ab45168d28fa0716cad8e82dbbcfe81f787e
parent454625c5cf4adecb5b80777503bc600c8b139004 (diff)
intel/fsp_baytrail: fix error "unknown type device_t", when SMM Module added
Change-Id: I6d8622c7f343619b915442d8056aa6672dfc4f6e Signed-off-by: Kayalvizhi Dhandapani <kayalvizhid@ami.com> Reviewed-on: http://review.coreboot.org/7025 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <gaumless@gmail.com>
-rw-r--r--src/soc/intel/fsp_baytrail/tsc_freq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/soc/intel/fsp_baytrail/tsc_freq.c b/src/soc/intel/fsp_baytrail/tsc_freq.c
index b74e41ea31..da7e96590c 100644
--- a/src/soc/intel/fsp_baytrail/tsc_freq.c
+++ b/src/soc/intel/fsp_baytrail/tsc_freq.c
@@ -21,11 +21,6 @@
#include <cpu/x86/msr.h>
#include <cpu/x86/tsc.h>
#include <baytrail/msr.h>
-#if !defined(__PRE_RAM__)
-#include <baytrail/ramstage.h>
-#else
-#include <baytrail/romstage.h>
-#endif
unsigned bus_freq_khz(void)
{
@@ -57,6 +52,11 @@ unsigned long tsc_freq_mhz(void)
}
#if !defined(__SMM__)
+#if !defined(__PRE_RAM__)
+#include <baytrail/ramstage.h>
+#else
+#include <baytrail/romstage.h>
+#endif
void set_max_freq(void)
{