tree: Remove unused <assert.h>
[coreboot.git] / src / soc / amd / mendocino / cpu.c
blob842b04fb25ed5a517db9c6a1c5761cf29b47aecc
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/cpu.h>
4 #include <amdblocks/mca.h>
5 #include <cpu/amd/microcode.h>
6 #include <cpu/cpu.h>
7 #include <device/device.h>
8 #include <soc/cpu.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)
15 check_mca();
16 set_cstate_io_addr();
18 amd_apply_microcode_patch();
21 static struct device_operations cpu_dev_ops = {
22 .init = zen_2_3_init,
25 static struct cpu_device_id cpu_table[] = {
26 { X86_VENDOR_AMD, MENDOCINO_A0_CPUID, CPUID_ALL_STEPPINGS_MASK },
27 CPU_TABLE_END
30 static const struct cpu_driver zen_2_3 __cpu_driver = {
31 .ops = &cpu_dev_ops,
32 .id_table = cpu_table,