mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / soc / amd / phoenix / cpu.c
blob05dac9a03266ff3924a49a773e6d94ac8a99d8e7
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>
8 #include <cpu/cpu.h>
9 #include <device/device.h>
10 #include <soc/cpu.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)
17 check_mca();
18 set_cstate_io_addr();
20 amd_apply_microcode_patch();
23 static struct device_operations cpu_dev_ops = {
24 .init = zen_2_3_init,
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 },
30 CPU_TABLE_END
33 static const struct cpu_driver zen_2_3 __cpu_driver = {
34 .ops = &cpu_dev_ops,
35 .id_table = cpu_table,