From 9432b66f5558581a5e0b0cc9e046c81a8a358f8f Mon Sep 17 00:00:00 2001 From: Varun Upadhyay Date: Sat, 9 Nov 2024 16:45:04 +0530 Subject: mb/google/fatcat: Add FW_CONFIG Support for ALC721 soundwire This change adds support for the ALC721 codec in the device tree and enables it based on the fw_config. BUG=b:368495490 TEST=Boot on google fatcat board Change-Id: If5ca1502942f0ca009db398589c4a243d9e2804c Signed-off-by: Varun Upadhyay Reviewed-on: https://review.coreboot.org/c/coreboot/+/85074 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/mainboard/google/fatcat/variants/fatcat/fw_config.c | 3 ++- src/mainboard/google/fatcat/variants/fatcat/overridetree.cb | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/fatcat/variants/fatcat/fw_config.c b/src/mainboard/google/fatcat/variants/fatcat/fw_config.c index 3162df4911..990049202a 100644 --- a/src/mainboard/google/fatcat/variants/fatcat/fw_config.c +++ b/src/mainboard/google/fatcat/variants/fatcat/fw_config.c @@ -551,7 +551,8 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table) GPIO_PADBASED_OVERRIDE(padbased_table, i2s_enable_pads); else if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_MAX98373_ALC5682_SNDW))) GPIO_PADBASED_OVERRIDE(padbased_table, sndw_external_codec_enable_pads); - else if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_ALC722_SNDW))) + else if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_ALC722_SNDW)) || + fw_config_probe(FW_CONFIG(AUDIO, AUDIO_ALC721_SNDW))) GPIO_PADBASED_OVERRIDE(padbased_table, sndw_alc722_enable_pads); else if (fw_config_probe(FW_CONFIG(AUDIO, AUDIO_ALC256_HDA))) GPIO_PADBASED_OVERRIDE(padbased_table, hda_enable_pads); diff --git a/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb b/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb index bed928ead6..0fd79d0a14 100644 --- a/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb +++ b/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb @@ -5,6 +5,7 @@ fw_config option AUDIO_ALC722_SNDW 2 option AUDIO_ALC256_HDA 3 option AUDIO_MAX98360_ALC5682I_I2S 4 + option AUDIO_ALC721_SNDW 5 end field WIFI 4 5 option WIFI_CNVI_6 0 @@ -623,6 +624,10 @@ chip soc/intel/pantherlake device generic 1.1 on probe AUDIO AUDIO_ALC722_SNDW end + # SoundWire Link 3 ID 1 + device generic 3.1 on + probe AUDIO AUDIO_ALC721_SNDW + end end end end -- cgit v1.2.3