aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/broadwell/romstage/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/broadwell/romstage/cpu.c')
-rw-r--r--src/soc/intel/broadwell/romstage/cpu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/broadwell/romstage/cpu.c b/src/soc/intel/broadwell/romstage/cpu.c
index e7139b807d..754bc31cd6 100644
--- a/src/soc/intel/broadwell/romstage/cpu.c
+++ b/src/soc/intel/broadwell/romstage/cpu.c
@@ -17,6 +17,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <arch/cpu.h>
#include <stdlib.h>
#include <console/console.h>
#include <cpu/x86/msr.h>
@@ -24,6 +25,11 @@
#include <broadwell/msr.h>
#include <broadwell/romstage.h>
+u32 cpu_family_model(void)
+{
+ return cpuid_eax(1) & 0x0fff0ff0;
+}
+
void set_max_freq(void)
{
msr_t msr, perf_ctl, platform_info;