summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorVarun Upadhyay <varun.upadhyay@intel.com>2024-11-09 16:45:04 +0530
committerSubrata Banik <subratabanik@google.com>2024-11-13 03:31:34 +0000
commit9432b66f5558581a5e0b0cc9e046c81a8a358f8f (patch)
tree84e27f78ec7a1a567ac770a65be1a03d2ae1cb09 /src/mainboard
parent85d8962fdf9995d7204b9d40250f1af4519298c8 (diff)
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 <varun.upadhyay@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85074 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/fatcat/variants/fatcat/fw_config.c3
-rw-r--r--src/mainboard/google/fatcat/variants/fatcat/overridetree.cb5
2 files changed, 7 insertions, 1 deletions
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