Remove some duplicate #include files (trivial).
[coreboot.git] / src / cpu / intel / model_6xx / model_6xx_init.c
1 #include <console/console.h>
2 #include <device/device.h>
3 #include <device/pci.h>
4 #include <string.h>
5 #include <cpu/cpu.h>
6 #include <cpu/x86/mtrr.h>
7 #include <cpu/x86/msr.h>
8 #include <cpu/x86/lapic.h>
9 #include <cpu/intel/microcode.h>
10 #include <cpu/x86/cache.h>
11
12 static uint32_t microcode_updates[] = {
13         /* WARNING - Intel has a new data structure that has variable length
14          * microcode update lengths.  They are encoded in int 8 and 9.  A
15          * dummy header of nulls must terminate the list.
16          */
17 #include "microcode-534-MU16810d.h"
18 #include "microcode-535-MU16810e.h"
19 #include "microcode-536-MU16810f.h"
20 #include "microcode-538-MU168111.h"
21
22 #include "microcode-550-MU168307.h"
23 #include "microcode-551-MU168308.h"
24 #include "microcode-727-MU168313.h"
25 #include "microcode-728-MU168314.h"
26
27         /*  Dummy terminator  */
28         0x0, 0x0, 0x0, 0x0,
29         0x0, 0x0, 0x0, 0x0,
30         0x0, 0x0, 0x0, 0x0,
31         0x0, 0x0, 0x0, 0x0,
32 };
33
34 static void model_6xx_init(device_t dev)
35 {
36         /* Turn on caching if we haven't already */
37         x86_enable_cache();
38         x86_setup_mtrrs(36);
39         x86_mtrr_check();
40
41         /* Update the microcode */
42         intel_update_microcode(microcode_updates);
43
44         /* Enable the local cpu apics */
45         setup_lapic();
46 };
47
48 static struct device_operations cpu_dev_ops = {
49         .init     = model_6xx_init,
50 };
51
52 /*
53  * Intel Pentium Pro Processor Specification Update
54  * http://download.intel.com/design/archives/processors/pro/docs/24268935.pdf
55  *
56  * Intel Pentium II Processor Specification Update
57  * http://download.intel.com/design/PentiumII/specupdt/24333749.pdf
58  *
59  * Mobile Intel Pentium II Processor Specification Update
60  * http://download.intel.com/design/intarch/specupdt/24388757.pdf
61  *
62  * Intel Celeron Processor Identification Information
63  * http://www.intel.com/design/celeron/qit/update.pdf
64  *
65  * Intel Pentium II Xeon Processor Specification Update
66  * http://download.intel.com/support/processors/pentiumii/xeon/24377632.pdf
67  *
68  * Intel Pentium III Processor Identification and Package Information
69  * http://www.intel.com/design/pentiumiii/qit/update.pdf
70  *
71  * Intel Pentium III Processor Specification Update
72  * http://download.intel.com/design/intarch/specupdt/24445358.pdf
73  *
74  * Mobile Intel Pentium III/III-M Processor Specification Update
75  * http://download.intel.com/design/intarch/specupdt/24530663.pdf
76  */
77 static struct cpu_device_id cpu_table[] = {
78         { X86_VENDOR_INTEL, 0x0611 }, /* Pentium Pro, B0 */
79         { X86_VENDOR_INTEL, 0x0612 }, /* Pentium Pro, C0 */
80         { X86_VENDOR_INTEL, 0x0616 }, /* Pentium Pro, sA0 */
81         { X86_VENDOR_INTEL, 0x0617 }, /* Pentium Pro, sA1 */
82         { X86_VENDOR_INTEL, 0x0619 }, /* Pentium Pro, sB1 */
83
84         { X86_VENDOR_INTEL, 0x0633 }, /* PII, C0 */
85         { X86_VENDOR_INTEL, 0x0634 }, /* PII, C1 */
86
87         { X86_VENDOR_INTEL, 0x0650 }, /* PII/Celeron, dA0/mdA0/A0 */
88         { X86_VENDOR_INTEL, 0x0651 }, /* PII/Celeron, dA1/A1 */
89         { X86_VENDOR_INTEL, 0x0652 }, /* PII/Celeron/Xeon, dB0/mdB0/B0 */
90         { X86_VENDOR_INTEL, 0x0653 }, /* PII/Xeon, dB1/B1 */
91
92         { X86_VENDOR_INTEL, 0x0660 }, /* Celeron, A0 */
93         { X86_VENDOR_INTEL, 0x0665 }, /* Celeron, B0 */
94         { X86_VENDOR_INTEL, 0x066a }, /* PII, mdxA0/dmmA0 + others */
95
96         { X86_VENDOR_INTEL, 0x0672 }, /* PIII, kB0 */
97         { X86_VENDOR_INTEL, 0x0673 }, /* PIII, kC0 */
98
99         { X86_VENDOR_INTEL, 0x0680 },
100         { X86_VENDOR_INTEL, 0x0681 }, /* PIII, cA2/cA2c/A2/BA2/PA2/MA2 */
101         { X86_VENDOR_INTEL, 0x0683 }, /* PIII/Celeron, cB0/cB0c/B0/BB0/PB0/MB0*/
102         { X86_VENDOR_INTEL, 0x0686 }, /* PIII/Celeron, cC0/C0/BC0/PC0/MC0 */
103         { X86_VENDOR_INTEL, 0x068a }, /* PIII/Celeron, cD0/D0/BD0/PD0 */
104
105         { X86_VENDOR_INTEL, 0x06a0 }, /* PIII, A0 */
106         { X86_VENDOR_INTEL, 0x06a1 }, /* PIII, A1 */
107         { X86_VENDOR_INTEL, 0x06a4 }, /* PIII, B0 */
108         { 0, 0 },
109 };
110
111 static const struct cpu_driver driver __cpu_driver = {
112         .ops      = &cpu_dev_ops,
113         .id_table = cpu_table,
114 };