diff options
-rw-r--r-- | src/soc/amd/common/block/cpu/noncar/cpu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/cpu/noncar/cpu.c b/src/soc/amd/common/block/cpu/noncar/cpu.c index b635cad750..56d4eb0384 100644 --- a/src/soc/amd/common/block/cpu/noncar/cpu.c +++ b/src/soc/amd/common/block/cpu/noncar/cpu.c @@ -5,6 +5,7 @@ #include <cpu/cpu.h> #include <cpu/x86/msr.h> #include <cpu/amd/msr.h> +#include <smbios.h> #include <soc/iomap.h> int get_cpu_count(void) @@ -12,6 +13,11 @@ int get_cpu_count(void) return 1 + (cpuid_ecx(0x80000008) & 0xff); } +unsigned int smbios_processor_family(struct cpuid_result res) +{ + return 0x6b; /* Zen */ +} + unsigned int get_threads_per_core(void) { return 1 + ((cpuid_ebx(CPUID_EBX_CORE_ID) & CPUID_EBX_THREADS_MASK) |