Debian Codegraph @

src/soc/amd/phoenix/cpu.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /* TODO: Update for Phoenix */
4
5 #include <amdblocks/cpu.h>
6 #include <cpu/cpu.h>
7 #include <device/device.h>
8 #include <soc/cpu.h>
9
10 _Static_assert(CONFIG_MAX_CPUS == 16, "Do not override MAX_CPUS. To reduce the number of "
11 "available cores, use the downcore_mode and disable_smt devicetree settings instead.");
12
13 static struct device_operations cpu_dev_ops = {
14 .init = amd_cpu_init,
15 };
16
17 static struct cpu_device_id cpu_table[] = {
18 { X86_VENDOR_AMD, PHOENIX_A0_CPUID, CPUID_ALL_STEPPINGS_MASK },
19 { X86_VENDOR_AMD, PHOENIX2_A0_CPUID, CPUID_ALL_STEPPINGS_MASK },
20 CPU_TABLE_END
21 };
22
23 static const struct cpu_driver zen_2_3 __cpu_driver = {
24 .ops = &cpu_dev_ops,
25 .id_table = cpu_table,
26 };