From a1dfd39e040d0985b09819e32d264b9a342e8051 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 9 Jul 2025 07:28:20 +0000 Subject: [PATCH] mb/google/fatcat/var/kinmen: Add AUDIO_UNKNOWN and probe for ALC721 This commit enhances the Kinmen variant of the Fatcat mainboard by introducing an `fw_config` field for AUDIO. This field includes an `AUDIO_UNKNOWN` option, providing a clear state when no specific audio configuration is selected or known. Furthermore, a probe statement for `AUDIO_ALC721_SNDW` has been added to the `hda` device. This ensures that the system can correctly identify and initialize the Realtek ALC721 audio codec when present. These changes improve the flexibility and accuracy of audio configuration and detection for the Kinmen board. BUG=b:430205874 TEST=Able to boot google/kinmen to UI without valid Audio configuration. Change-Id: I86634a4a49c4006584fc808719b2891186953a51 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/88367 Reviewed-by: Kapil Porwal Reviewed-by: YH Lin Tested-by: build bot (Jenkins) --- .../google/fatcat/variants/kinmen/overridetree.cb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/fatcat/variants/kinmen/overridetree.cb b/src/mainboard/google/fatcat/variants/kinmen/overridetree.cb index ac48600b97..edf70986e9 100644 --- a/src/mainboard/google/fatcat/variants/kinmen/overridetree.cb +++ b/src/mainboard/google/fatcat/variants/kinmen/overridetree.cb @@ -1,3 +1,10 @@ +fw_config + field AUDIO 3 5 + option AUDIO_UNKNOWN 0 + option AUDIO_ALC721_SNDW 1 + end +end + chip soc/intel/pantherlake # The initial version temporarily uses the PTL-H, @@ -279,6 +286,7 @@ chip soc/intel/pantherlake device ref smbus on end device ref hda on + probe AUDIO AUDIO_ALC721_SNDW chip drivers/intel/soundwire device generic 0 on chip drivers/soundwire/alc711 @@ -287,7 +295,9 @@ chip soc/intel/pantherlake register "alc711_address.class" = "MIPI_CLASS_SDCA" register "alc711_address.part_id" = "MIPI_DEV_ID_REALTEK_ALC721" # SoundWire Link 3 ID 1 - device generic 3.1 on end + device generic 3.1 on + probe AUDIO AUDIO_ALC721_SNDW + end end end end