Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63723 )
Change subject: mb/msi/ms7d25: Configure HD Audio ......................................................................
mb/msi/ms7d25: Configure HD Audio
Apply correct configuration of HD Audio.
TEST=Launch ubuntu 20.04 and launch a YouTube video, check if microphone detects an input in the system sound settings.
Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com Change-Id: I6acc22aa58f6cc99df1d48d651122e74fe08ec02 --- M src/mainboard/msi/ms7d25/devicetree.cb M src/mainboard/msi/ms7d25/romstage_fsp_params.c 2 files changed, 9 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/63723/1
diff --git a/src/mainboard/msi/ms7d25/devicetree.cb b/src/mainboard/msi/ms7d25/devicetree.cb index 7cbf7e9..052c566 100644 --- a/src/mainboard/msi/ms7d25/devicetree.cb +++ b/src/mainboard/msi/ms7d25/devicetree.cb @@ -211,7 +211,12 @@ end
device ref p2sb on end - device ref hda on end + device ref hda on + register "pch_hda_dsp_enable" = "1" + register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T" + register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ" + register "pch_hda_idisp_codec_enable" = "1" + end device ref smbus on end end end diff --git a/src/mainboard/msi/ms7d25/romstage_fsp_params.c b/src/mainboard/msi/ms7d25/romstage_fsp_params.c index 6b49b97..c6b4251 100644 --- a/src/mainboard/msi/ms7d25/romstage_fsp_params.c +++ b/src/mainboard/msi/ms7d25/romstage_fsp_params.c @@ -61,5 +61,8 @@ memupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1; memupd->FspmConfig.PchHdaSdiEnable[0] = 1;
+ memupd->FspmConfig.PchHdaAudioLinkHdaEnable = 1; + memupd->FspmConfig.PchHdaSdiEnable[0] = 1; + memcfg_init(memupd, &ddr4_mem_config, &dimm_module_spd_info, false); }