Kyösti Mälkki | 7b73e852 | 2022-11-08 04:43:41 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <device/device.h> |
| 4 | #include <cpu/cpu.h> |
Kyösti Mälkki | 7b73e852 | 2022-11-08 04:43:41 +0000 | [diff] [blame] | 5 | #include <cpu/intel/common/common.h> |
| 6 | #include <cpu/x86/cache.h> |
| 7 | |
| 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 }, |
| 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 | |
| 28 | static const struct cpu_driver driver __cpu_driver = { |
| 29 | .ops = &cpu_dev_ops, |
| 30 | .id_table = cpu_table, |
| 31 | }; |