2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
16 #include <cpu/x86/msr.h>
19 #include <soc/systemagent.h>
21 u32
cpu_family_model(void)
23 return cpuid_eax(1) & 0x0fff0ff0;
26 u32
cpu_stepping(void)
28 return cpuid_eax(1) & 0xf;
31 /* Dynamically determine if the part is ULT. */
37 u32 fm
= cpu_family_model();
38 if (fm
== BROADWELL_FAMILY_ULT
|| fm
== HASWELL_FAMILY_ULT
)