aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2021-05-12 13:03:21 -0600
committerMartin Roth <martinroth@google.com>2021-05-31 15:14:22 +0000
commit9d9dae1d960304656681864b558d899183a83834 (patch)
treef6f1282bf286eeddf3662efc4f8245b1ff1d29c3 /src/soc/amd/cezanne
parent43aa527eecbf272e179a09b0c3313636b0e6e19c (diff)
soc/amd/cezanne: Add pre-FSPM call to the mainboard
The Guybrush platform needs to set up some GPIOs immediately before the FSP-M runs. Add a platform specific call. This will be used in a follow-on commit. BUG=b:184796302, b:184598323 TEST=Build Signed-off-by: Martin Roth <martinroth@chromium.org> Change-Id: I37d2625ff426347852e98a9a50f15368e0213449 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54638 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/cezanne')
-rw-r--r--src/soc/amd/cezanne/fsp_m_params.c5
-rw-r--r--src/soc/amd/cezanne/include/soc/platform_descriptors.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/fsp_m_params.c b/src/soc/amd/cezanne/fsp_m_params.c
index 352aeef582..9546721f0e 100644
--- a/src/soc/amd/cezanne/fsp_m_params.c
+++ b/src/soc/amd/cezanne/fsp_m_params.c
@@ -36,6 +36,10 @@ static bool devtree_gfx_hda_dev_enabled(void)
return gfx_hda_dev->enabled;
}
+__weak void mb_pre_fspm(void)
+{
+}
+
static void fill_dxio_descriptors(FSP_M_CONFIG *mcfg,
const fsp_dxio_descriptor *descs, size_t num)
{
@@ -171,4 +175,5 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
fsp_fill_pcie_ddi_descriptors(mcfg);
fsp_assign_ioapic_upds(mcfg);
+ mb_pre_fspm();
}
diff --git a/src/soc/amd/cezanne/include/soc/platform_descriptors.h b/src/soc/amd/cezanne/include/soc/platform_descriptors.h
index d68cd7fab9..3a4bc62339 100644
--- a/src/soc/amd/cezanne/include/soc/platform_descriptors.h
+++ b/src/soc/amd/cezanne/include/soc/platform_descriptors.h
@@ -12,4 +12,6 @@ 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);
+void mb_pre_fspm(void);
+
#endif /* AMD_PICASSO_PLATFORM_DESCRIPTORS_H */