From ed1592b2ec93bf1edf6c3183deb54aa64b543021 Mon Sep 17 00:00:00 2001 From: Patrick Huang Date: Tue, 20 Apr 2021 20:40:09 +0800 Subject: [PATCH] src/soc/amd/picasso: Add HDMI 2.0 disable setting hdmi2_disable bit0~3 is used to disable HDMI 2.0 function in DDI0~3 BUG=b:179170193 BRANCH=none TEST=Build; Verify the UPD was passed to system integrated table Signed-off-by: Patrick Huang Change-Id: I383bfd04e01f5202db093105662344869e475746 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52545 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Nikolai Vyssotski --- src/soc/amd/picasso/chip.h | 6 ++++++ src/soc/amd/picasso/fsp_m_params.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/soc/amd/picasso/chip.h b/src/soc/amd/picasso/chip.h index c70b89b67e..e84db3561e 100644 --- a/src/soc/amd/picasso/chip.h +++ b/src/soc/amd/picasso/chip.h @@ -174,6 +174,12 @@ struct soc_amd_picasso_config { uint32_t telemetry_vddcr_soc_slope_mA; uint32_t telemetry_vddcr_soc_offset; + /* + * HDMI 2.0 disable setting + * bit0~3: disable HDMI 2.0 DDI0~3 + */ + uint8_t hdmi2_disable; + struct { /* * SDHCI doesn't directly support eMMC. There is an implicit mapping between diff --git a/src/soc/amd/picasso/fsp_m_params.c b/src/soc/amd/picasso/fsp_m_params.c index fea16cd137..28803b32c3 100644 --- a/src/soc/amd/picasso/fsp_m_params.c +++ b/src/soc/amd/picasso/fsp_m_params.c @@ -111,6 +111,7 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) mcfg->telemetry_vddcr_soc_offset = config->telemetry_vddcr_soc_offset; mcfg->hd_audio_enable = devtree_hda_dev_enabled(); mcfg->sata_enable = devtree_sata_dev_enabled(); + mcfg->hdmi2_disable = config->hdmi2_disable; mainboard_updm_update(mcfg); }