summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-07-21 17:09:31 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-07-23 13:47:39 +0000
commit86db2c74ffc38ad6ca92c62f0fb2858a2423c089 (patch)
tree546f8cc26eda84d97d2eff47c07defebe9393db4 /src/soc/amd/picasso
parenta19d98647b0b1862c28b362505b30f4551b2fe2c (diff)
amd/picasso: rename PCIe descriptor to DXIO descriptor
Most of the DXIO descriptors are used to configure PCIe engines and lanes, but on Picasso system some of the DXIO lanes can also be configured as SATA or XGBE ports. Change-Id: I28da1b21cf0de1813d87a6873b8d4ef3c1e0e9dd Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43675 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.c12
-rw-r--r--src/soc/amd/picasso/include/soc/platform_descriptors.h6
2 files changed, 9 insertions, 9 deletions
diff --git a/src/soc/amd/picasso/fsp_params.c b/src/soc/amd/picasso/fsp_params.c
index 80d43fb245..8683e9b836 100644
--- a/src/soc/amd/picasso/fsp_params.c
+++ b/src/soc/amd/picasso/fsp_params.c
@@ -55,8 +55,8 @@ static void fsps_update_emmc_config(FSP_S_CONFIG *scfg,
scfg->emmc0_mode = val;
}
-static void fill_pcie_descriptors(FSP_S_CONFIG *scfg,
- const fsp_pcie_descriptor *descs, size_t num)
+static void fill_dxio_descriptors(FSP_S_CONFIG *scfg,
+ const fsp_dxio_descriptor *descs, size_t num)
{
size_t i;
@@ -76,14 +76,14 @@ static void fill_ddi_descriptors(FSP_S_CONFIG *scfg,
}
static void fsp_fill_pcie_ddi_descriptors(FSP_S_CONFIG *scfg)
{
- const fsp_pcie_descriptor *fsp_pcie;
+ const fsp_dxio_descriptor *fsp_dxio;
const fsp_ddi_descriptor *fsp_ddi;
- size_t num_pcie;
+ size_t num_dxio;
size_t num_ddi;
- mainboard_get_pcie_ddi_descriptors(&fsp_pcie, &num_pcie,
+ mainboard_get_dxio_ddi_descriptors(&fsp_dxio, &num_dxio,
&fsp_ddi, &num_ddi);
- fill_pcie_descriptors(scfg, fsp_pcie, num_pcie);
+ fill_dxio_descriptors(scfg, fsp_dxio, num_dxio);
fill_ddi_descriptors(scfg, fsp_ddi, 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 c217d75f6c..0ea6f2b338 100644
--- a/src/soc/amd/picasso/include/soc/platform_descriptors.h
+++ b/src/soc/amd/picasso/include/soc/platform_descriptors.h
@@ -22,9 +22,9 @@
#define EMMC_HS400 10
#define EMMC_HS300 11
-/* Mainboard callback to obtain PCIe and DDI descriptors. */
-void mainboard_get_pcie_ddi_descriptors(
- const fsp_pcie_descriptor **pcie_descs, size_t *pcie_num,
+/* Mainboard callback to obtain DXI/PCIe and DDI descriptors. */
+void mainboard_get_dxio_ddi_descriptors(
+ const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num,
const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num);
#endif /* __PICASSO_PLATFORM_DESCRIPTORS_H__ */