Remove some duplicate #include files (trivial).
[coreboot.git] / src / cpu / amd / model_gx2 / model_gx2_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/lapic.h>
7 #include <cpu/x86/cache.h>
8
9 static void vsm_end_post_smi(void)
10 {
11         __asm__ volatile (
12                           "push %ax\n"
13                           "mov $0x5000, %ax\n"
14                           ".byte 0x0f, 0x38\n"
15                           "pop %ax\n"
16                           );
17 }
18
19 static void model_gx2_init(device_t dev)
20 {
21         printk(BIOS_DEBUG, "model_gx2_init\n");
22
23         /* Turn on caching if we haven't already */
24         x86_enable_cache();
25
26         /* Enable the local cpu apics */
27         //setup_lapic();
28
29         vsm_end_post_smi();
30
31         printk(BIOS_DEBUG, "model_gx2_init DONE\n");
32 };
33
34 static struct device_operations cpu_dev_ops = {
35         .init   = model_gx2_init,
36 };
37
38 static struct cpu_device_id cpu_table[] = {
39         { X86_VENDOR_NSC, 0x0552 },
40         { 0, 0 },
41 };
42
43 static const struct cpu_driver driver __cpu_driver = {
44         .ops      = &cpu_dev_ops,
45         .id_table = cpu_table,
46 };