summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/include
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2020-05-20 02:34:59 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-05-27 15:56:29 +0000
commit828ca06cdbedacb41f73dc70bf18262031f7ad90 (patch)
tree01f01d20ed60cf4963bb3f02387f0fa349553cac /src/soc/amd/picasso/include
parentb77b446ca8cbca1a5e56570b94e24a57b9889554 (diff)
soc/amd/picasso: rewrite soc_util
This adds proper RV2 silicon and Dali SKU detection using both CPUID information and some bits from silicon_id in the Picasso misc data HOB that FSP-M stores in memory. BUG=b:153779573 Change-Id: I589be3bdac4b94785e6ecacf55235be4ad5673d9 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41630 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/soc/amd/picasso/include')
-rw-r--r--src/soc/amd/picasso/include/soc/soc_util.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/soc/amd/picasso/include/soc/soc_util.h b/src/soc/amd/picasso/include/soc/soc_util.h
index 6515761a8a..6399e42bb9 100644
--- a/src/soc/amd/picasso/include/soc/soc_util.h
+++ b/src/soc/amd/picasso/include/soc/soc_util.h
@@ -11,12 +11,34 @@ enum socket_type {
SOCKET_FT5 = 3,
};
+enum silicon_type {
+ SILICON_RV1,
+ SILICON_PCO,
+ SILICON_RV2,
+ SILICON_UNKNOWN,
+};
+
+enum soc_type {
+ SOC_PICASSO,
+ SOC_DALI,
+ SOC_POLLOCK,
+ SOC_UNKNOWN,
+};
+
+enum socket_type get_socket_type(void);
+enum silicon_type get_silicon_type(void);
+enum soc_type get_soc_type(void);
+
void print_socket_type(void);
+void print_silicon_type(void);
+void print_soc_type(void);
+/* functions to determine the connectivity feature set */
bool soc_is_pollock(void);
bool soc_is_dali(void);
bool soc_is_picasso(void);
+
+/* function to determine the iGPU type */
bool soc_is_raven2(void);
-bool soc_is_zen_plus(void);
#endif /* __PICASSO_SOC_UTIL_H__ */