1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <device/device.h>
4 #include <cpu/cpu.h>
5 #include <cpu/intel/common/common.h>
6 #include <cpu/x86/cache.h>
7
model_f2x_init(struct device * cpu)8 static void model_f2x_init(struct device *cpu)
9 {
10 /* Turn on caching if we haven't already */
11 enable_cache();
12 };
13
14 static struct device_operations cpu_dev_ops = {
15 .init = model_f2x_init,
16 };
17
18 static const struct cpu_device_id cpu_table[] = {
19 { X86_VENDOR_INTEL, 0x0f22, CPUID_EXACT_MATCH_MASK },
20 { X86_VENDOR_INTEL, 0x0f24, CPUID_EXACT_MATCH_MASK },
21 { X86_VENDOR_INTEL, 0x0f25, CPUID_EXACT_MATCH_MASK },
22 { X86_VENDOR_INTEL, 0x0f26, CPUID_EXACT_MATCH_MASK },
23 { X86_VENDOR_INTEL, 0x0f27, CPUID_EXACT_MATCH_MASK },
24 { X86_VENDOR_INTEL, 0x0f29, CPUID_EXACT_MATCH_MASK },
25 CPU_TABLE_END
26 };
27
28 static const struct cpu_driver driver __cpu_driver = {
29 .ops = &cpu_dev_ops,
30 .id_table = cpu_table,
31 };
32