Remove some duplicate #include files (trivial).
[coreboot.git] / src / cpu / intel / model_f3x / model_f3x_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/intel/hyperthreading.h>
11 #include <cpu/x86/cache.h>
12
13 static uint32_t microcode_updates[] = {
14         /* WARNING - Intel has a new data structure that has variable length
15          * microcode update lengths.  They are encoded in int 8 and 9.  A
16          * dummy header of nulls must terminate the list.
17          */
18
19 #include "microcode-1290-m0df320a.h"
20 #include "microcode-1467-m0df330c.h"
21 #include "microcode-1468-m1df3417.h"
22
23         /*  Dummy terminator  */
24         0x0, 0x0, 0x0, 0x0,
25         0x0, 0x0, 0x0, 0x0,
26         0x0, 0x0, 0x0, 0x0,
27         0x0, 0x0, 0x0, 0x0,
28 };
29
30 static void model_f3x_init(device_t cpu)
31 {
32         /* Turn on caching if we haven't already */
33         x86_enable_cache();
34         x86_setup_mtrrs(36);
35         x86_mtrr_check();
36
37         /* Update the microcode */
38         intel_update_microcode(microcode_updates);
39
40         /* Enable the local cpu apics */
41         setup_lapic();
42
43         /* Start up my cpu siblings */
44         intel_sibling_init(cpu);
45 };
46
47 static struct device_operations cpu_dev_ops = {
48         .init = model_f3x_init,
49 };
50
51 static struct cpu_device_id cpu_table[] = {
52         { X86_VENDOR_INTEL, 0x0f34 }, /* Xeon */
53         { 0, 0 },
54 };
55
56 static const struct cpu_driver model_f3x __cpu_driver = {
57         .ops      = &cpu_dev_ops,
58         .id_table = cpu_table,
59 };