summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso
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/soc/amd/picasso
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/soc/amd/picasso')
-rw-r--r--src/soc/amd/picasso/fsp_params.c16
-rw-r--r--src/soc/amd/picasso/include/soc/platform_descriptors.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/src/soc/amd/picasso/fsp_params.c b/src/soc/amd/picasso/fsp_params.c
index 2d83220c39..67fe7d8e97 100644
--- a/src/soc/amd/picasso/fsp_params.c
+++ b/src/soc/amd/picasso/fsp_params.c
@@ -56,13 +56,13 @@ static void fsps_update_emmc_config(FSP_S_CONFIG *scfg,
}
static void fill_pcie_descriptors(FSP_S_CONFIG *scfg,
- const picasso_fsp_pcie_descriptor *descs, size_t num)
+ const fsp_pcie_descriptor *descs, size_t num)
{
size_t i;
- picasso_fsp_pcie_descriptor *fsp_pcie;
+ fsp_pcie_descriptor *fsp_pcie;
/* FIXME: this violates C rules. */
- fsp_pcie = (picasso_fsp_pcie_descriptor *)(scfg->dxio_descriptor0);
+ fsp_pcie = (fsp_pcie_descriptor *)(scfg->dxio_descriptor0);
for (i = 0; i < num; i++) {
fsp_pcie[i] = descs[i];
@@ -70,13 +70,13 @@ static void fill_pcie_descriptors(FSP_S_CONFIG *scfg,
}
static void fill_ddi_descriptors(FSP_S_CONFIG *scfg,
- const picasso_fsp_ddi_descriptor *descs, size_t num)
+ const fsp_ddi_descriptor *descs, size_t num)
{
size_t i;
- picasso_fsp_ddi_descriptor *fsp_ddi;
+ fsp_ddi_descriptor *fsp_ddi;
/* FIXME: this violates C rules. */
- fsp_ddi = (picasso_fsp_ddi_descriptor *)&(scfg->ddi_descriptor0);
+ fsp_ddi = (fsp_ddi_descriptor *)&(scfg->ddi_descriptor0);
for (i = 0; i < num; i++) {
fsp_ddi[i] = descs[i];
@@ -84,8 +84,8 @@ static void fill_ddi_descriptors(FSP_S_CONFIG *scfg,
}
static void fsp_fill_pcie_ddi_descriptors(FSP_S_CONFIG *scfg)
{
- const picasso_fsp_pcie_descriptor *fsp_pcie;
- const picasso_fsp_ddi_descriptor *fsp_ddi;
+ const fsp_pcie_descriptor *fsp_pcie;
+ const fsp_ddi_descriptor *fsp_ddi;
size_t num_pcie;
size_t num_ddi;
diff --git a/src/soc/amd/picasso/include/soc/platform_descriptors.h b/src/soc/amd/picasso/include/soc/platform_descriptors.h
index 58d98c1a64..c217d75f6c 100644
--- a/src/soc/amd/picasso/include/soc/platform_descriptors.h
+++ b/src/soc/amd/picasso/include/soc/platform_descriptors.h
@@ -24,7 +24,7 @@
/* Mainboard callback to obtain PCIe and DDI descriptors. */
void mainboard_get_pcie_ddi_descriptors(
- const picasso_fsp_pcie_descriptor **pcie_descs, size_t *pcie_num,
- const picasso_fsp_ddi_descriptor **ddi_descs, size_t *ddi_num);
+ const fsp_pcie_descriptor **pcie_descs, size_t *pcie_num,
+ const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num);
#endif /* __PICASSO_PLATFORM_DESCRIPTORS_H__ */