Debian Codegraph @

src/soc/amd/picasso/cpu.c

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