1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/cpu.h>
4 #include <amdblocks/mca.h>
5 #include <cpu/amd/microcode.h>
7 #include <device/device.h>
10 _Static_assert(CONFIG_MAX_CPUS
== 8, "Do not override MAX_CPUS. To reduce the number of "
11 "available cores, use the downcore_mode and disable_smt devicetree settings instead.");
13 static void zen_2_3_init(struct device
*dev
)
18 amd_apply_microcode_patch();
21 static struct device_operations cpu_dev_ops
= {
25 static struct cpu_device_id cpu_table
[] = {
26 { X86_VENDOR_AMD
, MENDOCINO_A0_CPUID
, CPUID_ALL_STEPPINGS_MASK
},
30 static const struct cpu_driver zen_2_3 __cpu_driver
= {
32 .id_table
= cpu_table
,