Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42833 )
Change subject: soc/amd/picasso/soc_util: add function to detect defeatured SKU ......................................................................
soc/amd/picasso/soc_util: add function to detect defeatured SKU
Change-Id: I9eb57595da6f806305552128b0c077ceeb7c4661 Signed-off-by: Felix Held felix-coreboot@felixheld.de --- M src/soc/amd/picasso/include/soc/soc_util.h M src/soc/amd/picasso/soc_util.c 2 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/42833/1
diff --git a/src/soc/amd/picasso/include/soc/soc_util.h b/src/soc/amd/picasso/include/soc/soc_util.h index 2459207..e7f13d4 100644 --- a/src/soc/amd/picasso/include/soc/soc_util.h +++ b/src/soc/amd/picasso/include/soc/soc_util.h @@ -39,4 +39,7 @@ /* function to determine the iGPU type */ bool soc_is_raven2(void);
+/* function to determine if SoC has less USB and PCIe lanes */ +bool soc_is_defeatured_sku(void); + #endif /* __PICASSO_SOC_UTIL_H__ */ diff --git a/src/soc/amd/picasso/soc_util.c b/src/soc/amd/picasso/soc_util.c index 2aa9daa..8a1f8ef 100644 --- a/src/soc/amd/picasso/soc_util.c +++ b/src/soc/amd/picasso/soc_util.c @@ -208,3 +208,8 @@ { return get_silicon_type() == SILICON_RV2; } + +bool soc_is_defeatured_sku(void) +{ + return get_silicon_type() == SILICON_RV2 || get_soc_type() == SOC_DALI; +}