soc/intel/xeon_sp/skx: Use Kconfig symbol
[coreboot2.git] / src / soc / amd / phoenix / soc_util.c
blobe5677fcfd77f8504bff415b778966643a1580600
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/cpu.h>
4 #include <soc/cpu.h>
5 #include <soc/soc_util.h>
6 #include <types.h>
8 enum soc_type get_soc_type(void)
10 uint32_t cpuid = cpuid_eax(1);
12 if (cpuid_match(cpuid, PHOENIX_A0_CPUID, CPUID_ALL_STEPPINGS_MASK))
13 return SOC_PHOENIX;
16 if (cpuid_match(cpuid, PHOENIX2_A0_CPUID, CPUID_ALL_STEPPINGS_MASK))
17 return SOC_PHOENIX2;
19 return SOC_UNKNOWN;