From f4aeac42767d36d3df97a5ebe382dd4710957174 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Fri, 28 Nov 2025 16:35:24 +0100 Subject: [PATCH] soc/amd/glinda: Set FSP UPDs from devicetree for USB4 Use is_dev_enabled() on devicetree device to enable/disable USB4 devices by updating the corresponding FSP UPDs. Signed-off-by: Maximilian Brune Change-Id: If0ae88eaaf88954159b55fdf030eb96d74ee29f6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/90419 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/amd/glinda/fsp_m_params.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/amd/glinda/fsp_m_params.c b/src/soc/amd/glinda/fsp_m_params.c index 1d297d481d..32a708fd70 100644 --- a/src/soc/amd/glinda/fsp_m_params.c +++ b/src/soc/amd/glinda/fsp_m_params.c @@ -137,6 +137,11 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) mcfg->s0i3_enable = config->s0ix_enable; mcfg->iommu_support = is_devfn_enabled(IOMMU_DEVFN); + mcfg->Usb4Rt0En = is_dev_enabled(DEV_PTR(usb4_router_0)); + mcfg->Usb4Rt1En = is_dev_enabled(DEV_PTR(usb4_router_1)); + mcfg->Usb4Rt0XhciEn = is_dev_enabled(DEV_PTR(usb4_xhci_0)); + mcfg->Usb4Rt1XhciEn = is_dev_enabled(DEV_PTR(usb4_xhci_1)); + /* voltage regulator telemetry settings */ mcfg->telemetry_vddcrvddfull_scale_current = config->telemetry_vddcrvddfull_scale_current_mA;