1 /* SPDX-License-Identifier: GPL-2.0-only */
5 int intel_core2_early_probe(const struct targetdef
*target
, const struct cpuid_t
*id
) {
6 return ((VENDOR_INTEL
== id
->vendor
) &&
11 const struct msrdef intel_core2_early_msrs
[] = {
12 {0x17, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PLATFORM_ID", "", {
15 {0x2a, MSRTYPE_RDWR
, MSR2(0, 0), "EBL_CR_POWERON", "", {
18 {0x3f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_TEMPERATURE_OFFSET", "", {
21 {0xa8, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE0", "", {
24 {0xa9, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE1", "", {
27 {0xaa, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE2", "", {
30 {0xab, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE3", "", {
33 {0xac, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE4", "", {
36 {0xad, MSRTYPE_RDWR
, MSR2(0, 0), "EMTTM_CR_TABLE5", "", {
39 {0xcd, MSRTYPE_RDWR
, MSR2(0, 0), "FSB_CLOCK_STS", "", {
42 {0xe2, MSRTYPE_RDWR
, MSR2(0, 0), "PMG_CST_CONFIG_CONTROL", "", {
45 {0xe3, MSRTYPE_RDWR
, MSR2(0, 0), "PMG_IO_BASE_ADDR", "", {
48 {0xe4, MSRTYPE_RDWR
, MSR2(0, 0), "PMG_IO_CAPTURE_ADDR", "", {
51 {0xee, MSRTYPE_RDWR
, MSR2(0, 0), "EXT_CONFIG", "", {
54 {0x11e, MSRTYPE_RDWR
, MSR2(0, 0), "BBL_CR_CTL3", "", {
57 {0x194, MSRTYPE_RDWR
, MSR2(0, 0), "CLOCK_FLEX_MAX", "", {
60 {0x198, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_STATUS", "", {
63 {0x1a0, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MISC_ENABLES", "", {
66 {0x1aa, MSRTYPE_RDWR
, MSR2(0, 0), "PIC_SENS_CFG", "", {
69 {0x400, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_CTL", "", {
72 {0x401, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_STATUS", "", {
75 {0x402, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_ADDR", "", {
78 {0x40c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_CTL", "", {
81 {0x40d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_STATUS", "", {
84 {0x40e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_ADDR", "", {
87 {0x10, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_TIME_STAMP_COUNTER", "", {
90 {0x1b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_APIC_BASE", "", {
93 {0x3a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FEATURE_CONTROL", "", {
96 {0x8b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_BIOS_SIGN_ID", "", {
99 {0xe1, MSRTYPE_RDWR
, MSR2(0, 0), "SMM_CST_MISC_INFO", "", {
102 {0xe7, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MPERF", "", {
105 {0xe8, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_APERF", "", {
108 {0xfe, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRRCAP", "", {
111 {0x179, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MCG_CAP", "", {
114 {0x17a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MCG_STATUS", "", {
117 {0x199, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_CONTROL", "", {
120 {0x19a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_CTL", "", {
123 {0x19b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_INTERRUPT", "", {
126 {0x19c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_STATUS", "", {
129 {0x19d, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_THERM2_CTL", "", {
132 {0x1d9, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_DEBUGCTL", "", {
135 {0x200, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE0", "", {
138 {0x201, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK0", "", {
141 {0x202, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE1", "", {
144 {0x203, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK1", "", {
147 {0x204, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE2", "", {
150 {0x205, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK2", "", {
153 {0x206, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE3", "", {
156 {0x207, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK3", "", {
159 {0x208, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE4", "", {
162 {0x209, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK4", "", {
165 {0x20a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE5", "", {
168 {0x20b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK5", "", {
171 {0x20c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE6", "", {
174 {0x20d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK6", "", {
177 {0x20e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE7", "", {
180 {0x20f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK7", "", {
183 {0x250, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX64K_00000", "", {
186 {0x258, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_80000", "", {
189 {0x259, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_A0000", "", {
192 {0x268, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C0000", "", {
195 {0x269, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C8000", "", {
198 {0x26a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D0000", "", {
201 {0x26b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D8000", "", {
204 {0x26c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E0000", "", {
207 {0x26d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E8000", "", {
210 {0x26e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F0000", "", {
213 {0x26f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F8000", "", {
216 {0x2ff, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_DEF_TYPE", "", {