blob: 893ff2570fef31b763b31517d3ce62934c87e2e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#include <arch/cpu.h>
#include <soc/cpu.h>
#include <soc/soc_util.h>
int soc_is_pollock(void)
{
return soc_is_zen_plus() && CONFIG(AMD_FT5);
}
int soc_is_dali(void)
{
return soc_is_raven2() && CONFIG(AMD_FP5);
}
int soc_is_picasso(void)
{
return soc_is_zen_plus() && CONFIG(AMD_FP5);
}
int soc_is_raven2(void)
{
/* mask lower model number nibble and stepping */
return cpuid_eax(1) >> 8 == RAVEN2_CPUID >> 8;
}
int soc_is_zen_plus(void)
{
/* mask lower model number nibble and stepping */
return cpuid_eax(1) >> 8 == PICASSO_CPUID >> 8;
}
|