summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2020-06-10 19:05:45 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-06-11 23:03:18 +0000
commitca428c3027cde0844daf823a7621db254ba23ba8 (patch)
tree9331e2b9cf8ed940ffa6c02a9316f25b385ed581 /src/mainboard
parent4d58083703726443e712541be42eb3ec264caea8 (diff)
downloadcoreboot-ca428c3027cde0844daf823a7621db254ba23ba8.tar.xz
vc/amd/fsp/platform_descriptors: drop prefix from PCIe/DDI structs
The picasso_ prefix on the fsp_pcie_descriptor and fsp_ddi_descriptor structs isn't needed, since this code is picasso-specific, so drop it. Change-Id: Ia6a0ddb411aa64becc3c23a876f2ea43cb68e028 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42252 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/zork/mainboard.c4
-rw-r--r--src/mainboard/google/zork/variants/baseboard/fsps_baseboard_dalboz.c10
-rw-r--r--src/mainboard/google/zork/variants/baseboard/fsps_baseboard_trembyle.c16
-rw-r--r--src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h8
-rw-r--r--src/mainboard/google/zork/variants/dalboz/variant.c8
-rw-r--r--src/mainboard/google/zork/variants/vilboz/variant.c6
6 files changed, 26 insertions, 26 deletions
diff --git a/src/mainboard/google/zork/mainboard.c b/src/mainboard/google/zork/mainboard.c
index 73ece65930..c6b4bdd0fc 100644
--- a/src/mainboard/google/zork/mainboard.c
+++ b/src/mainboard/google/zork/mainboard.c
@@ -187,9 +187,9 @@ static void mainboard_init(void *chip_info)
gpe_configure_sci(gpes, num);
}
-void mainboard_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor **pcie_descs,
+void mainboard_get_pcie_ddi_descriptors(const fsp_pcie_descriptor **pcie_descs,
size_t *pcie_num,
- const picasso_fsp_ddi_descriptor **ddi_descs,
+ const fsp_ddi_descriptor **ddi_descs,
size_t *ddi_num)
{
variant_get_pcie_ddi_descriptors(pcie_descs, pcie_num, ddi_descs, ddi_num);
diff --git a/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_dalboz.c b/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_dalboz.c
index e67755ccc5..b0037090c7 100644
--- a/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_dalboz.c
+++ b/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_dalboz.c
@@ -4,16 +4,16 @@
#include <baseboard/variants.h>
#include <commonlib/bsd/compiler.h>
-void __weak variant_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor **pcie_descs,
+void __weak variant_get_pcie_ddi_descriptors(const fsp_pcie_descriptor **pcie_descs,
size_t *pcie_num,
- const picasso_fsp_ddi_descriptor **ddi_descs,
+ const fsp_ddi_descriptor **ddi_descs,
size_t *ddi_num)
{
*pcie_descs = baseboard_get_pcie_descriptors(pcie_num);
*ddi_descs = baseboard_get_ddi_descriptors(ddi_num);
}
-static const picasso_fsp_pcie_descriptor pcie_descriptors[] = {
+static const fsp_pcie_descriptor pcie_descriptors[] = {
{
// NVME SSD
.port_present = true,
@@ -60,13 +60,13 @@ static const picasso_fsp_pcie_descriptor pcie_descriptors[] = {
}
};
-const picasso_fsp_pcie_descriptor *baseboard_get_pcie_descriptors(size_t *num)
+const fsp_pcie_descriptor *baseboard_get_pcie_descriptors(size_t *num)
{
*num = ARRAY_SIZE(pcie_descriptors);
return pcie_descriptors;
}
-const picasso_fsp_ddi_descriptor *baseboard_get_ddi_descriptors(size_t *num)
+const fsp_ddi_descriptor *baseboard_get_ddi_descriptors(size_t *num)
{
/* Different configurations of dalboz have different ddi configurations.
* Therefore, don't provide any baseboard defaults. */
diff --git a/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_trembyle.c b/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_trembyle.c
index fb96ff2537..f5f4842ed0 100644
--- a/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_trembyle.c
+++ b/src/mainboard/google/zork/variants/baseboard/fsps_baseboard_trembyle.c
@@ -5,9 +5,9 @@
#include <commonlib/bsd/compiler.h>
#include <soc/soc_util.h>
-void __weak variant_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor **pcie_descs,
+void __weak variant_get_pcie_ddi_descriptors(const fsp_pcie_descriptor **pcie_descs,
size_t *pcie_num,
- const picasso_fsp_ddi_descriptor **ddi_descs,
+ const fsp_ddi_descriptor **ddi_descs,
size_t *ddi_num)
{
*pcie_descs = baseboard_get_pcie_descriptors(pcie_num);
@@ -18,7 +18,7 @@ void __weak variant_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor *
* Type 1 parts, while reporting as Picasso through cpuid, are fused like a Dali.
* Those parts need to be configured as Type 2. */
-static const picasso_fsp_pcie_descriptor pco_pcie_descriptors[] = {
+static const fsp_pcie_descriptor pco_pcie_descriptors[] = {
{
// NVME SSD
.port_present = true,
@@ -64,7 +64,7 @@ static const picasso_fsp_pcie_descriptor pco_pcie_descriptors[] = {
}
};
-static const picasso_fsp_pcie_descriptor dali_pcie_descriptors[] = {
+static const fsp_pcie_descriptor dali_pcie_descriptors[] = {
{
// NVME SSD
.port_present = true,
@@ -111,7 +111,7 @@ static const picasso_fsp_pcie_descriptor dali_pcie_descriptors[] = {
}
};
-const picasso_fsp_pcie_descriptor *baseboard_get_pcie_descriptors(size_t *num)
+const fsp_pcie_descriptor *baseboard_get_pcie_descriptors(size_t *num)
{
/* Type 2 or Type 1 fused like Type 2. */
if (soc_is_dali()) {
@@ -125,7 +125,7 @@ const picasso_fsp_pcie_descriptor *baseboard_get_pcie_descriptors(size_t *num)
}
-static const picasso_fsp_ddi_descriptor pco_ddi_descriptors[] = {
+static const fsp_ddi_descriptor pco_ddi_descriptors[] = {
{
// DDI0, DP0, eDP
.connector_type = EDP,
@@ -152,7 +152,7 @@ static const picasso_fsp_ddi_descriptor pco_ddi_descriptors[] = {
}
};
-static const picasso_fsp_ddi_descriptor dali_ddi_descriptors[] = {
+static const fsp_ddi_descriptor dali_ddi_descriptors[] = {
{
// DDI0, DP0, eDP
.connector_type = EDP,
@@ -173,7 +173,7 @@ static const picasso_fsp_ddi_descriptor dali_ddi_descriptors[] = {
}
};
-const picasso_fsp_ddi_descriptor *baseboard_get_ddi_descriptors(size_t *num)
+const fsp_ddi_descriptor *baseboard_get_ddi_descriptors(size_t *num)
{
/* Type 2 or Type 1 fused like Type 2. */
if (soc_is_dali()) {
diff --git a/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h
index c682eca1a4..84a9e9c3d0 100644
--- a/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h
@@ -32,16 +32,16 @@ void variant_devtree_update(void);
/* Per variant FSP-S initialization, default implementation in baseboard and
* overrideable by the variant. */
-void variant_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor **pcie_descs,
+void variant_get_pcie_ddi_descriptors(const fsp_pcie_descriptor **pcie_descs,
size_t *pcie_num,
- const picasso_fsp_ddi_descriptor **ddi_descs,
+ const fsp_ddi_descriptor **ddi_descs,
size_t *ddi_num);
/* Provide the descriptors for the associated baseboard for the variant. These functions
* can be used for obtaining the baseboard's descriptors if the variant followed the
* baseboard. */
-const picasso_fsp_pcie_descriptor *baseboard_get_pcie_descriptors(size_t *num);
-const picasso_fsp_ddi_descriptor *baseboard_get_ddi_descriptors(size_t *num);
+const fsp_pcie_descriptor *baseboard_get_pcie_descriptors(size_t *num);
+const fsp_ddi_descriptor *baseboard_get_ddi_descriptors(size_t *num);
/* Retrieve attributes from FW_CONFIG in CBI. */
/* Return 1 if FW_CONFIG expected to be valid, else 0. */
diff --git a/src/mainboard/google/zork/variants/dalboz/variant.c b/src/mainboard/google/zork/variants/dalboz/variant.c
index aae8f03058..ceef2895a0 100644
--- a/src/mainboard/google/zork/variants/dalboz/variant.c
+++ b/src/mainboard/google/zork/variants/dalboz/variant.c
@@ -138,7 +138,7 @@ void variant_devtree_update(void)
}
/* FIXME: Comments seem to suggest these are not entirely correct. */
-static const picasso_fsp_ddi_descriptor non_hdmi_ddi_descriptors[] = {
+static const fsp_ddi_descriptor non_hdmi_ddi_descriptors[] = {
{
// DDI0, DP0, eDP
.connector_type = EDP,
@@ -160,7 +160,7 @@ static const picasso_fsp_ddi_descriptor non_hdmi_ddi_descriptors[] = {
}
};
-static const picasso_fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
+static const fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
{ // DDI0, DP0, eDP
.connector_type = EDP,
.aux_index = AUX1,
@@ -179,9 +179,9 @@ static const picasso_fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
}
};
-void variant_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor **pcie_descs,
+void variant_get_pcie_ddi_descriptors(const fsp_pcie_descriptor **pcie_descs,
size_t *pcie_num,
- const picasso_fsp_ddi_descriptor **ddi_descs,
+ const fsp_ddi_descriptor **ddi_descs,
size_t *ddi_num)
{
uint32_t board_sku = sku_id();
diff --git a/src/mainboard/google/zork/variants/vilboz/variant.c b/src/mainboard/google/zork/variants/vilboz/variant.c
index eb0ded993e..5573837f9d 100644
--- a/src/mainboard/google/zork/variants/vilboz/variant.c
+++ b/src/mainboard/google/zork/variants/vilboz/variant.c
@@ -3,7 +3,7 @@
#include <baseboard/variants.h>
#include <soc/pci_devs.h>
-static const picasso_fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
+static const fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
{ // DDI0, DP0, eDP
.connector_type = EDP,
.aux_index = AUX1,
@@ -21,9 +21,9 @@ static const picasso_fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
}
};
-void variant_get_pcie_ddi_descriptors(const picasso_fsp_pcie_descriptor **pcie_descs,
+void variant_get_pcie_ddi_descriptors(const fsp_pcie_descriptor **pcie_descs,
size_t *pcie_num,
- const picasso_fsp_ddi_descriptor **ddi_descs,
+ const fsp_ddi_descriptor **ddi_descs,
size_t *ddi_num)
{
*pcie_descs = baseboard_get_pcie_descriptors(pcie_num);