1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <device/device.h>
4 #include <cpu/cpu.h>
5 #include <cpu/x86/mtrr.h>
6 #include <cpu/intel/microcode.h>
7 #include <cpu/x86/cache.h>
8
model_6xx_init(struct device * dev)9 static void model_6xx_init(struct device *dev)
10 {
11 /* Turn on caching if we haven't already */
12 enable_cache();
13 x86_setup_mtrrs();
14 x86_mtrr_check();
15
16 /* Update the microcode */
17 intel_update_microcode_from_cbfs();
18 };
19
20 static struct device_operations cpu_dev_ops = {
21 .init = model_6xx_init,
22 };
23
24 /*
25 * Intel Pentium Pro Processor Specification Update
26 * http://download.intel.com/design/archives/processors/pro/docs/24268935.pdf
27 *
28 * Intel Pentium II Processor Specification Update
29 * http://download.intel.com/design/PentiumII/specupdt/24333749.pdf
30 *
31 * Mobile Intel Pentium II Processor Specification Update
32 * http://download.intel.com/design/intarch/specupdt/24388757.pdf
33 *
34 * Intel Celeron Processor Identification Information
35 * http://www.intel.com/design/celeron/qit/update.pdf
36 *
37 * Intel Pentium II Xeon Processor Specification Update
38 * http://download.intel.com/support/processors/pentiumii/xeon/24377632.pdf
39 *
40 * Intel Pentium III Processor Identification and Package Information
41 * http://www.intel.com/design/pentiumiii/qit/update.pdf
42 *
43 * Intel Pentium III Processor Specification Update
44 * http://download.intel.com/design/intarch/specupdt/24445358.pdf
45 *
46 * Mobile Intel Pentium III/III-M Processor Specification Update
47 * http://download.intel.com/design/intarch/specupdt/24530663.pdf
48 */
49 static const struct cpu_device_id cpu_table[] = {
50 { X86_VENDOR_INTEL, 0x0611, CPUID_EXACT_MATCH_MASK }, /* Pentium Pro, B0 */
51 { X86_VENDOR_INTEL, 0x0612, CPUID_EXACT_MATCH_MASK }, /* Pentium Pro, C0 */
52 { X86_VENDOR_INTEL, 0x0616, CPUID_EXACT_MATCH_MASK }, /* Pentium Pro, sA0 */
53 { X86_VENDOR_INTEL, 0x0617, CPUID_EXACT_MATCH_MASK }, /* Pentium Pro, sA1 */
54 { X86_VENDOR_INTEL, 0x0619, CPUID_EXACT_MATCH_MASK }, /* Pentium Pro, sB1 */
55
56 { X86_VENDOR_INTEL, 0x0633, CPUID_EXACT_MATCH_MASK }, /* PII, C0 */
57 { X86_VENDOR_INTEL, 0x0634, CPUID_EXACT_MATCH_MASK }, /* PII, C1 */
58
59 { X86_VENDOR_INTEL, 0x0660, CPUID_EXACT_MATCH_MASK }, /* Celeron, A0 */
60 { X86_VENDOR_INTEL, 0x0665, CPUID_EXACT_MATCH_MASK }, /* Celeron, B0 */
61 { X86_VENDOR_INTEL, 0x066a, CPUID_EXACT_MATCH_MASK }, /* PII, mdxA0/dmmA0 + others */
62
63 { X86_VENDOR_INTEL, 0x0680, CPUID_EXACT_MATCH_MASK },
64 /* PIII, cA2/cA2c/A2/BA2/PA2/MA2 */
65 { X86_VENDOR_INTEL, 0x0681, CPUID_EXACT_MATCH_MASK },
66 /* PIII/Celeron, cB0/cB0c/B0/BB0/PB0/MB0*/
67 { X86_VENDOR_INTEL, 0x0683, CPUID_EXACT_MATCH_MASK },
68 /* PIII/Celeron, cC0/C0/BC0/PC0/MC0 */
69 { X86_VENDOR_INTEL, 0x0686, CPUID_EXACT_MATCH_MASK },
70 /* PIII/Celeron, cD0/D0/BD0/PD0 */
71 { X86_VENDOR_INTEL, 0x068a, CPUID_EXACT_MATCH_MASK },
72
73 { X86_VENDOR_INTEL, 0x06a0, CPUID_EXACT_MATCH_MASK }, /* PIII, A0 */
74 { X86_VENDOR_INTEL, 0x06a1, CPUID_EXACT_MATCH_MASK }, /* PIII, A1 */
75 { X86_VENDOR_INTEL, 0x06a4, CPUID_EXACT_MATCH_MASK }, /* PIII, B0 */
76 CPU_TABLE_END
77 };
78
79 static const struct cpu_driver driver __cpu_driver = {
80 .ops = &cpu_dev_ops,
81 .id_table = cpu_table,
82 };
83