Angel Pons | f23ae0b | 2020-04-02 23:48:12 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/device.h> |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 5 | #include <cpu/cpu.h> |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 6 | #include <cpu/x86/msr.h> |
| 7 | #include <cpu/x86/lapic.h> |
Stefan Reinauer | 2a27b20 | 2010-12-11 22:14:44 +0000 | [diff] [blame] | 8 | #include <cpu/intel/speedstep.h> |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 9 | #include <cpu/x86/cache.h> |
Uwe Hermann | aac8f66 | 2010-09-29 09:54:16 +0000 | [diff] [blame] | 10 | #include <cpu/x86/name.h> |
Kyösti Mälkki | f091f4d | 2019-08-14 03:49:21 +0300 | [diff] [blame] | 11 | #include <cpu/intel/smm_reloc.h> |
Matt DeVillier | ed6fe2f | 2016-12-14 16:12:43 -0600 | [diff] [blame] | 12 | #include <cpu/intel/common/common.h> |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 13 | #include "chip.h" |
| 14 | |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 15 | static void init_timer(void) |
| 16 | { |
Elyes HAOUAS | d6e9686 | 2016-08-21 10:12:15 +0200 | [diff] [blame] | 17 | /* Set the APIC timer to no interrupts and periodic mode */ |
Lee Leahy | 9d62e7e | 2017-03-15 17:40:50 -0700 | [diff] [blame] | 18 | lapic_write(LAPIC_LVTT, (1 << 17) | (1 << 16) | (0 << 12) | (0 << 0)); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 19 | |
| 20 | /* Set the divider to 1, no divider */ |
| 21 | lapic_write(LAPIC_TDCR, LAPIC_TDR_DIV_1); |
| 22 | |
| 23 | /* Set the initial counter to 0xffffffff */ |
| 24 | lapic_write(LAPIC_TMICT, 0xffffffff); |
| 25 | } |
| 26 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 27 | #define MSR_BBL_CR_CTL3 0x11e |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 28 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 29 | static void configure_c_states(const int quad) |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 30 | { |
| 31 | msr_t msr; |
| 32 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 33 | /* Find pointer to CPU configuration. */ |
Edward O'Callaghan | 2c9d2cf | 2014-10-27 23:29:29 +1100 | [diff] [blame] | 34 | const struct device *lapic = dev_find_lapic(SPEEDSTEP_APIC_MAGIC); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 35 | const struct cpu_intel_model_1067x_config *const conf = |
| 36 | (lapic && lapic->chip_info) ? lapic->chip_info : NULL; |
| 37 | |
| 38 | /* Is C5 requested and supported? */ |
| 39 | const int c5 = conf && conf->c5 && |
| 40 | (rdmsr(MSR_BBL_CR_CTL3).lo & (3 << 30)) && |
| 41 | !(rdmsr(MSR_FSB_FREQ).lo & (1 << 31)); |
| 42 | /* Is C6 requested and supported? */ |
| 43 | const int c6 = conf && conf->c6 && |
| 44 | ((cpuid_edx(5) >> (6 * 4)) & 0xf) && c5; |
| 45 | |
| 46 | const int cst_range = (c6 ? 6 : (c5 ? 5 : 4)) - 2; /* zero means lvl2 */ |
| 47 | |
Elyes HAOUAS | 4e6b790 | 2018-10-02 08:44:47 +0200 | [diff] [blame] | 48 | msr = rdmsr(MSR_PKG_CST_CONFIG_CONTROL); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 49 | msr.lo &= ~(1 << 9); // Issue a single stop grant cycle upon stpclk |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 50 | msr.lo |= (1 << 8); |
Lee Leahy | 26eeb0f | 2017-03-15 18:08:50 -0700 | [diff] [blame] | 51 | if (quad) |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 52 | msr.lo = (msr.lo & ~(7 << 0)) | (4 << 0); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 53 | if (c5) { |
| 54 | msr.lo &= ~(1 << 13); |
| 55 | msr.lo &= ~(7 << 0); |
| 56 | msr.lo |= (1 << 3); /* Enable dynamic L2. */ |
| 57 | msr.lo |= (1 << 14); /* Enable deeper sleep */ |
| 58 | } |
| 59 | /* Next two fields seem to be mutually exclusive: */ |
| 60 | msr.lo &= ~(7 << 4); |
| 61 | msr.lo |= (1 << 10); /* Enable IO MWAIT redirection. */ |
| 62 | if (c6) |
| 63 | msr.lo |= (1 << 25); |
Elyes HAOUAS | 4e6b790 | 2018-10-02 08:44:47 +0200 | [diff] [blame] | 64 | wrmsr(MSR_PKG_CST_CONFIG_CONTROL, msr); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 65 | |
| 66 | /* Set Processor MWAIT IO BASE */ |
| 67 | msr.hi = 0; |
Lee Leahy | cdc5048 | 2017-03-15 18:26:18 -0700 | [diff] [blame] | 68 | msr.lo = ((PMB0_BASE + 4) & 0xffff) | (((PMB1_BASE + 9) & 0xffff) |
| 69 | << 16); |
Patrick Georgi | 644e83b | 2013-02-09 15:35:30 +0100 | [diff] [blame] | 70 | wrmsr(MSR_PMG_IO_BASE_ADDR, msr); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 71 | |
| 72 | /* Set IO Capture Address */ |
| 73 | msr.hi = 0; |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 74 | msr.lo = ((PMB0_BASE + 4) & 0xffff) | ((cst_range & 0xffff) << 16); |
Patrick Georgi | 644e83b | 2013-02-09 15:35:30 +0100 | [diff] [blame] | 75 | wrmsr(MSR_PMG_IO_CAPTURE_ADDR, msr); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 76 | |
| 77 | if (c5) { |
| 78 | msr = rdmsr(MSR_BBL_CR_CTL3); |
| 79 | msr.lo &= ~(7 << 25); |
| 80 | msr.lo |= (2 << 25); |
| 81 | msr.lo &= ~(3 << 30); |
| 82 | msr.lo |= (1 << 30); |
| 83 | wrmsr(MSR_BBL_CR_CTL3, msr); |
| 84 | } |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 85 | } |
| 86 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 87 | static void configure_p_states(const char stepping, const char cores) |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 88 | { |
| 89 | msr_t msr; |
| 90 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 91 | /* Find pointer to CPU configuration. */ |
Edward O'Callaghan | 2c9d2cf | 2014-10-27 23:29:29 +1100 | [diff] [blame] | 92 | const struct device *lapic = dev_find_lapic(SPEEDSTEP_APIC_MAGIC); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 93 | struct cpu_intel_model_1067x_config *const conf = |
| 94 | (lapic && lapic->chip_info) ? lapic->chip_info : NULL; |
| 95 | |
| 96 | msr = rdmsr(MSR_EXTENDED_CONFIG); |
Patrick Georgi | f17c58b | 2014-08-09 20:48:12 +0200 | [diff] [blame] | 97 | /* Super LFM supported? */ |
| 98 | if (conf && conf->slfm && (msr.lo & (1 << 27))) |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 99 | msr.lo |= (1 << 28); /* Enable Super LFM. */ |
| 100 | wrmsr(MSR_EXTENDED_CONFIG, msr); |
| 101 | |
| 102 | if (rdmsr(MSR_FSB_CLOCK_VCC).hi & (1 << (63 - 32))) { |
| 103 | /* Turbo supported? */ |
| 104 | if ((stepping == 0xa) && (cores < 4)) { |
| 105 | msr = rdmsr(MSR_FSB_FREQ); |
| 106 | msr.lo |= (1 << 3); /* Enable hysteresis. */ |
| 107 | wrmsr(MSR_FSB_FREQ, msr); |
| 108 | } |
| 109 | msr = rdmsr(IA32_PERF_CTL); |
| 110 | msr.hi &= ~(1 << (32 - 32)); /* Clear turbo disable. */ |
| 111 | wrmsr(IA32_PERF_CTL, msr); |
| 112 | } |
| 113 | |
Elyes HAOUAS | 4e6b790 | 2018-10-02 08:44:47 +0200 | [diff] [blame] | 114 | msr = rdmsr(MSR_PKG_CST_CONFIG_CONTROL); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 115 | msr.lo &= ~(1 << 11); /* Enable hw coordination. */ |
| 116 | msr.lo |= (1 << 15); /* Lock config until next reset. */ |
Elyes HAOUAS | 4e6b790 | 2018-10-02 08:44:47 +0200 | [diff] [blame] | 117 | wrmsr(MSR_PKG_CST_CONFIG_CONTROL, msr); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 118 | } |
| 119 | |
| 120 | #define MSR_EMTTM_CR_TABLE(x) (0xa8 + (x)) |
| 121 | #define MSR_EMTTM_TABLE_NUM 6 |
| 122 | static void configure_emttm_tables(void) |
| 123 | { |
| 124 | int i; |
| 125 | int num_states, pstate_idx; |
| 126 | msr_t msr; |
| 127 | sst_table_t pstates; |
| 128 | |
| 129 | /* Gather p-state information. */ |
| 130 | speedstep_gen_pstates(&pstates); |
| 131 | |
| 132 | /* Never turbo mode or Super LFM. */ |
| 133 | num_states = pstates.num_states; |
| 134 | if (pstates.states[0].is_turbo) |
| 135 | --num_states; |
| 136 | if (pstates.states[pstates.num_states - 1].is_slfm) |
| 137 | --num_states; |
| 138 | /* Repeat lowest p-state if we haven't enough states. */ |
| 139 | const int num_lowest_pstate = |
| 140 | (num_states < MSR_EMTTM_TABLE_NUM) |
| 141 | ? (MSR_EMTTM_TABLE_NUM - num_states) + 1 |
| 142 | : 1; |
| 143 | /* Start from the lowest entry but skip Super LFM. */ |
| 144 | if (pstates.states[pstates.num_states - 1].is_slfm) |
| 145 | pstate_idx = pstates.num_states - 2; |
| 146 | else |
| 147 | pstate_idx = pstates.num_states - 1; |
| 148 | for (i = 0; i < MSR_EMTTM_TABLE_NUM; ++i) { |
| 149 | if (i >= num_lowest_pstate) |
| 150 | --pstate_idx; |
| 151 | const sst_state_t *const pstate = &pstates.states[pstate_idx]; |
| 152 | printk(BIOS_DEBUG, "writing P-State %d: %d, %d, " |
| 153 | "%2d, 0x%02x, %d; encoded: 0x%04x\n", |
| 154 | pstate_idx, pstate->dynfsb, pstate->nonint, |
| 155 | pstate->ratio, pstate->vid, pstate->power, |
| 156 | SPEEDSTEP_ENCODE_STATE(*pstate)); |
| 157 | msr.hi = 0; |
| 158 | msr.lo = SPEEDSTEP_ENCODE_STATE(pstates.states[pstate_idx]) & |
| 159 | /* Don't set half ratios. */ |
| 160 | ~SPEEDSTEP_RATIO_NONINT; |
| 161 | wrmsr(MSR_EMTTM_CR_TABLE(i), msr); |
| 162 | } |
| 163 | |
| 164 | msr = rdmsr(MSR_EMTTM_CR_TABLE(5)); |
| 165 | msr.lo |= (1 << 31); /* lock tables */ |
| 166 | wrmsr(MSR_EMTTM_CR_TABLE(5), msr); |
| 167 | } |
| 168 | |
| 169 | static void configure_misc(const int eist, const int tm2, const int emttm) |
| 170 | { |
| 171 | msr_t msr; |
| 172 | |
| 173 | const u32 sub_cstates = cpuid_edx(5); |
| 174 | |
Elyes HAOUAS | 419bfbc | 2018-10-01 08:47:51 +0200 | [diff] [blame] | 175 | msr = rdmsr(IA32_MISC_ENABLE); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 176 | msr.lo |= (1 << 3); /* TM1 enable */ |
| 177 | if (tm2) |
| 178 | msr.lo |= (1 << 13); /* TM2 enable */ |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 179 | msr.lo |= (1 << 17); /* Bidirectional PROCHOT# */ |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 180 | msr.lo |= (1 << 18); /* MONITOR/MWAIT enable */ |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 181 | |
| 182 | msr.lo |= (1 << 10); /* FERR# multiplexing */ |
| 183 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 184 | if (eist) |
| 185 | msr.lo |= (1 << 16); /* Enhanced SpeedStep Enable */ |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 186 | |
| 187 | /* Enable C2E */ |
Lee Leahy | 26eeb0f | 2017-03-15 18:08:50 -0700 | [diff] [blame] | 188 | if (((sub_cstates >> (2 * 4)) & 0xf) >= 2) |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 189 | msr.lo |= (1 << 26); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 190 | |
| 191 | /* Enable C4E */ |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 192 | if (((sub_cstates >> (4 * 4)) & 0xf) >= 2) { |
| 193 | msr.hi |= (1 << (32 - 32)); // C4E |
| 194 | msr.hi |= (1 << (33 - 32)); // Hard C4E |
| 195 | } |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 196 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 197 | /* Enable EMTTM */ |
| 198 | if (emttm) |
| 199 | msr.hi |= (1 << (36 - 32)); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 200 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 201 | /* Enable turbo mode */ |
| 202 | if (rdmsr(MSR_FSB_CLOCK_VCC).hi & (1 << (63 - 32))) |
| 203 | msr.hi &= ~(1 << (38 - 32)); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 204 | |
Elyes HAOUAS | 419bfbc | 2018-10-01 08:47:51 +0200 | [diff] [blame] | 205 | wrmsr(IA32_MISC_ENABLE, msr); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 206 | |
| 207 | if (eist) { |
| 208 | msr.lo |= (1 << 20); /* Lock Enhanced SpeedStep Enable */ |
Elyes HAOUAS | 419bfbc | 2018-10-01 08:47:51 +0200 | [diff] [blame] | 209 | wrmsr(IA32_MISC_ENABLE, msr); |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 210 | } |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | #define PIC_SENS_CFG 0x1aa |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 214 | static void configure_pic_thermal_sensors(const int tm2, const int quad) |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 215 | { |
| 216 | msr_t msr; |
| 217 | |
| 218 | msr = rdmsr(PIC_SENS_CFG); |
| 219 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 220 | if (quad) |
| 221 | msr.lo |= (1 << 31); |
| 222 | else |
| 223 | msr.lo &= ~(1 << 31); |
| 224 | if (tm2) |
| 225 | msr.lo |= (1 << 20); /* Enable TM1 if TM2 fails. */ |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 226 | msr.lo |= (1 << 21); // inter-core lock TM1 |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 227 | msr.lo |= (1 << 4); // Enable bypass filter /* What does it do? */ |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 228 | |
| 229 | wrmsr(PIC_SENS_CFG, msr); |
| 230 | } |
| 231 | |
Edward O'Callaghan | 2c9d2cf | 2014-10-27 23:29:29 +1100 | [diff] [blame] | 232 | static void model_1067x_init(struct device *cpu) |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 233 | { |
| 234 | char processor_name[49]; |
| 235 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 236 | |
| 237 | /* Gather some information: */ |
| 238 | |
| 239 | const struct cpuid_result cpuid1 = cpuid(1); |
| 240 | |
| 241 | /* Read stepping. */ |
| 242 | const char stepping = cpuid1.eax & 0xf; |
| 243 | /* Read number of cores. */ |
| 244 | const char cores = (cpuid1.ebx >> 16) & 0xf; |
| 245 | /* Is this a quad core? */ |
| 246 | const char quad = cores > 2; |
| 247 | /* Is this even a multiprocessor? */ |
| 248 | const char mp = cores > 1; |
| 249 | |
| 250 | /* Enable EMTTM on uni- and on multi-processors if it's not disabled. */ |
| 251 | const char emttm = !mp || !(rdmsr(MSR_EXTENDED_CONFIG).lo & 4); |
| 252 | |
| 253 | /* Is enhanced speedstep supported? */ |
| 254 | const char eist = (cpuid1.ecx & (1 << 7)) && |
| 255 | !(rdmsr(IA32_PLATFORM_ID).lo & (1 << 17)); |
| 256 | /* Test for TM2 only if EIST is available. */ |
| 257 | const char tm2 = eist && (cpuid1.ecx & (1 << 8)); |
| 258 | |
| 259 | |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 260 | /* Turn on caching if we haven't already */ |
| 261 | x86_enable_cache(); |
| 262 | |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 263 | /* Print processor name */ |
| 264 | fill_processor_name(processor_name); |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 265 | printk(BIOS_INFO, "CPU: %s.\n", processor_name); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 266 | |
Elyes HAOUAS | d6e9686 | 2016-08-21 10:12:15 +0200 | [diff] [blame] | 267 | /* Enable the local CPU APICs */ |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 268 | setup_lapic(); |
| 269 | |
| 270 | /* Initialize the APIC timer */ |
| 271 | init_timer(); |
| 272 | |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 273 | /* Configure C States */ |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 274 | configure_c_states(quad); |
| 275 | |
| 276 | /* Configure P States */ |
| 277 | configure_p_states(stepping, cores); |
| 278 | |
| 279 | /* EMTTM */ |
| 280 | if (emttm) |
| 281 | configure_emttm_tables(); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 282 | |
| 283 | /* Configure Enhanced SpeedStep and Thermal Sensors */ |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 284 | configure_misc(eist, tm2, emttm); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 285 | |
| 286 | /* PIC thermal sensor control */ |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 287 | configure_pic_thermal_sensors(tm2, quad); |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 288 | } |
| 289 | |
| 290 | static struct device_operations cpu_dev_ops = { |
| 291 | .init = model_1067x_init, |
| 292 | }; |
| 293 | |
Jonathan Neuschäfer | 8f06ce3 | 2017-11-20 01:56:44 +0100 | [diff] [blame] | 294 | static const struct cpu_device_id cpu_table[] = { |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 295 | { X86_VENDOR_INTEL, 0x10676 }, /* Intel Core 2 Solo/Core Duo */ |
Stefan Reinauer | c104cb0 | 2010-10-18 00:21:39 +0000 | [diff] [blame] | 296 | { X86_VENDOR_INTEL, 0x10677 }, |
| 297 | { X86_VENDOR_INTEL, 0x1067A }, |
Thomas Jourdan | 1a692d8 | 2009-07-01 17:01:17 +0000 | [diff] [blame] | 298 | { 0, 0 }, |
| 299 | }; |
| 300 | |
| 301 | static const struct cpu_driver driver __cpu_driver = { |
| 302 | .ops = &cpu_dev_ops, |
| 303 | .id_table = cpu_table, |
| 304 | }; |
| 305 | |
Nico Huber | 68d7c7a | 2012-10-02 11:46:11 +0200 | [diff] [blame] | 306 | struct chip_operations cpu_intel_model_1067x_ops = { |
| 307 | CHIP_NAME("Intel Penryn CPU") |
| 308 | }; |