| 1 |
|
| 2 |
|
| 3 |
#include <console/console.h> |
| 4 |
#include <device/device.h> |
| 5 |
#include <cpu/cpu.h> |
| 6 |
#include <cpu/x86/mtrr.h> |
| 7 |
#include <cpu/intel/microcode.h> |
| 8 |
#include <cpu/x86/cache.h> |
| 9 |
#include <cpu/x86/name.h> |
| 10 |
|
| 11 |
static void model_6bx_init(struct device *cpu) |
| 12 |
{ |
| 13 |
char processor_name[49]; |
| 14 |
|
| 15 |
|
| 16 |
enable_cache(); |
| 17 |
|
| 18 |
|
| 19 |
intel_update_microcode_from_cbfs(); |
| 20 |
|
| 21 |
|
| 22 |
fill_processor_name(processor_name); |
| 23 |
printk(BIOS_INFO, "CPU: %s.\n", processor_name); |
| 24 |
|
| 25 |
|
| 26 |
x86_setup_mtrrs(); |
| 27 |
x86_mtrr_check(); |
| 28 |
} |
| 29 |
|
| 30 |
static struct device_operations cpu_dev_ops = { |
| 31 |
.init = model_6bx_init, |
| 32 |
}; |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
static const struct cpu_device_id cpu_table[] = { |
| 42 |
|
| 43 |
{ X86_VENDOR_INTEL, 0x06b1, CPUID_EXACT_MATCH_MASK }, |
| 44 |
{ X86_VENDOR_INTEL, 0x06b4, CPUID_EXACT_MATCH_MASK }, |
| 45 |
CPU_TABLE_END |
| 46 |
}; |
| 47 |
|
| 48 |
static const struct cpu_driver driver __cpu_driver = { |
| 49 |
.ops = &cpu_dev_ops, |
| 50 |
.id_table = cpu_table, |
| 51 |
}; |