From 7c0a1fbe3086667d9b2dd42e890c8ead524a2ffd Mon Sep 17 00:00:00 2001 From: Leo Chou Date: Wed, 24 Aug 2022 17:16:59 +0800 Subject: mb/google/nissa/var/pujjo: Add FW_CONFIG probe for new audio devices Add FW_CONFIG probe for new audio sku: ALC5682I + MAX98357 BUG=b:243474931 TEST=Boot to OS and verify audio devices are set based on fw_config. Signed-off-by: Leo Chou Change-Id: I16af6cf4644c473034e184e95ff2038ca31b20de Reviewed-on: https://review.coreboot.org/c/coreboot/+/67016 Reviewed-by: Reka Norman Tested-by: build bot (Jenkins) --- .../google/brya/variants/pujjo/overridetree.cb | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src') diff --git a/src/mainboard/google/brya/variants/pujjo/overridetree.cb b/src/mainboard/google/brya/variants/pujjo/overridetree.cb index 16b6a136a6..5583c5067d 100644 --- a/src/mainboard/google/brya/variants/pujjo/overridetree.cb +++ b/src/mainboard/google/brya/variants/pujjo/overridetree.cb @@ -23,6 +23,7 @@ fw_config end field AUDIO 12 14 option ALC1019_ALC5682IVS 0 + option MAX98357_ALC5682I 1 end field EXT_VR 15 option EXT_VR_PRESENT 0 @@ -389,6 +390,20 @@ chip soc/intel/alderlake end end device ref i2c3 on + chip drivers/i2c/generic + register "hid" = ""10EC5682"" + register "name" = ""RT58"" + register "desc" = ""Headset Codec"" + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" + # Set the jd_src to RT5668_JD1 for jack detection + register "property_count" = "1" + register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" + register "property_list[0].name" = ""realtek,jd-src"" + register "property_list[0].integer" = "1" + device i2c 1a on + probe AUDIO MAX98357_ALC5682I + end + end chip drivers/i2c/generic register "hid" = ""RTL5682"" register "name" = ""RT58"" @@ -430,6 +445,16 @@ chip soc/intel/alderlake device i2c 0x2c on end end end + device ref hda on + chip drivers/generic/max98357a + register "hid" = ""MX98360A"" + register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" + register "sdmode_delay" = "5" + device generic 0 on + probe AUDIO MAX98357_ALC5682I + end + end + end device ref pcie_rp4 on # PCIe 4 WLAN register "pch_pcie_rp[PCH_RP(4)]" = "{ -- cgit v1.2.3