xref: /aosp_15_r20/external/coreboot/src/soc/amd/picasso/include/soc/soc_util.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef AMD_PICASSO_SOC_UTIL_H
4 #define AMD_PICASSO_SOC_UTIL_H
5 
6 #include <types.h>
7 
8 enum socket_type {
9 	SOCKET_FP5 = 0,
10 	SOCKET_AM4 = 2,
11 	SOCKET_FT5 = 3,
12 };
13 
14 enum silicon_type {
15 	SILICON_RV1,
16 	SILICON_PCO,
17 	SILICON_RV2,
18 	SILICON_UNKNOWN,
19 };
20 
21 enum soc_type {
22 	SOC_PICASSO,
23 	SOC_DALI,
24 	SOC_POLLOCK,
25 	SOC_UNKNOWN,
26 };
27 
28 enum socket_type get_socket_type(void);
29 enum silicon_type get_silicon_type(void);
30 enum soc_type get_soc_type(void);
31 
32 void print_socket_type(void);
33 void print_silicon_type(void);
34 void print_soc_type(void);
35 
36 /* function to determine the connectivity feature set */
37 bool soc_is_reduced_io_sku(void);
38 
39 /* function to determine the iGPU type */
40 bool soc_is_raven2(void);
41 
42 #endif /* AMD_PICASSO_SOC_UTIL_H */
43