diff options
author | Julian Schroeder <julianmarcusschroeder@gmail.com> | 2021-05-11 10:44:13 -0500 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-05-26 15:15:53 +0000 |
commit | d2f3308ad7efd01a2d23749aa4ccc6bc5efc8a56 (patch) | |
tree | 2200586bb2ba0a5dabf6acf60dcfedcdc40adbe0 /src/soc/amd/cezanne/fsp_m_params.c | |
parent | e84a014ee6121424593ded21591c3e759847b784 (diff) | |
download | coreboot-d2f3308ad7efd01a2d23749aa4ccc6bc5efc8a56.tar.gz coreboot-d2f3308ad7efd01a2d23749aa4ccc6bc5efc8a56.tar.bz2 coreboot-d2f3308ad7efd01a2d23749aa4ccc6bc5efc8a56.zip |
soc/amd/cezanne: add support for the changed AMD FSP API for USB PHY
The AMD FSP is using a new structure for USB and USB C phy settings.
This patch removes old, unused structures, adds the new one and
enables the devicetree interface for it.
Signed-off-by: Julian Schroeder <julianmarcusschroeder@gmail.com>
Change-Id: I011ca40a334e4fd26778ca7f18b653298b14019b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54065
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'src/soc/amd/cezanne/fsp_m_params.c')
-rw-r--r-- | src/soc/amd/cezanne/fsp_m_params.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/fsp_m_params.c b/src/soc/amd/cezanne/fsp_m_params.c index bd80e78249ca..1e6f5ac26b19 100644 --- a/src/soc/amd/cezanne/fsp_m_params.c +++ b/src/soc/amd/cezanne/fsp_m_params.c @@ -161,6 +161,11 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) mcfg->enable_nb_azalia = devtree_gfx_hda_dev_enabled(); + if (config->usb_phy_custom) + mcfg->usb_phy = (struct usb_phy_config *)&config->usb_phy; + else + mcfg->usb_phy = NULL; + fsp_fill_pcie_ddi_descriptors(mcfg); fsp_assign_ioapic_upds(mcfg); } |