From a16055ae8ad2a04a7577aae351def4482d7bbab8 Mon Sep 17 00:00:00 2001 From: Kayalvizhi Dhandapani Date: Tue, 7 Oct 2014 14:11:20 -0400 Subject: intel/fsp_baytrail: fix error "unknown type device_t", when SMM Module added Change-Id: I6d8622c7f343619b915442d8056aa6672dfc4f6e Signed-off-by: Kayalvizhi Dhandapani Reviewed-on: http://review.coreboot.org/7025 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/soc/intel/fsp_baytrail/tsc_freq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/soc/intel') 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 #include #include -#if !defined(__PRE_RAM__) -#include -#else -#include -#endif unsigned bus_freq_khz(void) { @@ -57,6 +52,11 @@ unsigned long tsc_freq_mhz(void) } #if !defined(__SMM__) +#if !defined(__PRE_RAM__) +#include +#else +#include +#endif void set_max_freq(void) { -- cgit v1.2.3