1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* TODO: Update for Phoenix */
5 #include <amdblocks/cpu.h>
6 #include <amdblocks/mca.h>
7 #include <cpu/amd/microcode.h>
9 #include <device/device.h>
12 _Static_assert(CONFIG_MAX_CPUS
== 16, "Do not override MAX_CPUS. To reduce the number of "
13 "available cores, use the downcore_mode and disable_smt devicetree settings instead.");
15 static void zen_2_3_init(struct device
*dev
)
20 amd_apply_microcode_patch();
23 static struct device_operations cpu_dev_ops
= {
27 static struct cpu_device_id cpu_table
[] = {
28 { X86_VENDOR_AMD
, PHOENIX_A0_CPUID
, CPUID_ALL_STEPPINGS_MASK
},
29 { X86_VENDOR_AMD
, PHOENIX2_A0_CPUID
, CPUID_ALL_STEPPINGS_MASK
},
33 static const struct cpu_driver zen_2_3 __cpu_driver
= {
35 .id_table
= cpu_table
,