soc: Remove copyright notices
[coreboot.git] / src / soc / intel / broadwell / cpu_info.c
blob7a608c1ba0d656d0bcaffd7777c1e9effd73aef1
1 /*
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.
15 #include <arch/cpu.h>
16 #include <cpu/x86/msr.h>
17 #include <soc/cpu.h>
18 #include <soc/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. */
32 int cpu_is_ult(void)
34 static int ult = -1;
36 if (ult < 0) {
37 u32 fm = cpu_family_model();
38 if (fm == BROADWELL_FAMILY_ULT || fm == HASWELL_FAMILY_ULT)
39 ult = 1;
40 else
41 ult = 0;
44 return ult;