| 1 |
|
| 2 |
|
| 3 |
#include <device/device.h> |
| 4 |
#include <cpu/cpu.h> |
| 5 |
#include <cpu/x86/mtrr.h> |
| 6 |
#include <cpu/intel/microcode.h> |
| 7 |
#include <cpu/x86/cache.h> |
| 8 |
#include <cpu/intel/l2_cache.h> |
| 9 |
|
| 10 |
static void model_65x_init(struct device *dev) |
| 11 |
{ |
| 12 |
|
| 13 |
intel_update_microcode_from_cbfs(); |
| 14 |
|
| 15 |
p6_configure_l2_cache(); |
| 16 |
|
| 17 |
|
| 18 |
enable_cache(); |
| 19 |
x86_setup_mtrrs(); |
| 20 |
x86_mtrr_check(); |
| 21 |
}; |
| 22 |
|
| 23 |
static struct device_operations cpu_dev_ops = { |
| 24 |
.init = model_65x_init, |
| 25 |
}; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
static const struct cpu_device_id cpu_table[] = { |
| 38 |
{ X86_VENDOR_INTEL, 0x0650, CPUID_EXACT_MATCH_MASK }, |
| 39 |
{ X86_VENDOR_INTEL, 0x0651, CPUID_EXACT_MATCH_MASK }, |
| 40 |
|
| 41 |
{ X86_VENDOR_INTEL, 0x0652, CPUID_EXACT_MATCH_MASK }, |
| 42 |
{ X86_VENDOR_INTEL, 0x0653, CPUID_EXACT_MATCH_MASK }, |
| 43 |
CPU_TABLE_END |
| 44 |
}; |
| 45 |
|
| 46 |
static const struct cpu_driver driver __cpu_driver = { |
| 47 |
.ops = &cpu_dev_ops, |
| 48 |
.id_table = cpu_table, |
| 49 |
}; |