| 1 |
|
| 2 |
|
| 3 |
#include <amdblocks/cpu.h> |
| 4 |
#include <cpu/cpu.h> |
| 5 |
#include <device/device.h> |
| 6 |
#include <soc/cpu.h> |
| 7 |
|
| 8 |
_Static_assert(CONFIG_MAX_CPUS == 16, "Do not override MAX_CPUS. To reduce the number of " |
| 9 |
"available cores, use the downcore_mode and disable_smt devicetree settings instead."); |
| 10 |
|
| 11 |
static struct device_operations cpu_dev_ops = { |
| 12 |
.init = amd_cpu_init, |
| 13 |
}; |
| 14 |
|
| 15 |
static struct cpu_device_id cpu_table[] = { |
| 16 |
{ X86_VENDOR_AMD, CEZANNE_A0_CPUID, CPUID_ALL_STEPPINGS_MASK }, |
| 17 |
{ X86_VENDOR_AMD, RENOIR_A1_CPUID, CPUID_ALL_STEPPINGS_MASK}, |
| 18 |
CPU_TABLE_END |
| 19 |
}; |
| 20 |
|
| 21 |
static const struct cpu_driver zen_2_3 __cpu_driver = { |
| 22 |
.ops = &cpu_dev_ops, |
| 23 |
.id_table = cpu_table, |
| 24 |
}; |