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