From 2fbc9b49c0b39b71352bd880ab2e0a2612213359 Mon Sep 17 00:00:00 2001 From: Daniel_Peng Date: Fri, 4 Oct 2024 15:24:38 +0800 Subject: mb/google/brya/var/glassway: Add audio codec ALC5650 1.Add AUDIO fw_config setting. 2.Add audio codec ALC5650 related settings for Gallida360 project. BUG=b:364798053 BRANCH=firmware-nissa-15217.B TEST=emerge-nissa coreboot Change-Id: I3761ca6d4cad18c74f5e1a056f0cb465dc4ac3ea Signed-off-by: Daniel_Peng Reviewed-on: https://review.coreboot.org/c/coreboot/+/84655 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Subrata Banik --- .../google/brya/variants/glassway/overridetree.cb | 25 ++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/brya/variants/glassway/overridetree.cb b/src/mainboard/google/brya/variants/glassway/overridetree.cb index 8d86609f9d..69d4e89e9f 100644 --- a/src/mainboard/google/brya/variants/glassway/overridetree.cb +++ b/src/mainboard/google/brya/variants/glassway/overridetree.cb @@ -3,6 +3,10 @@ fw_config option THERMAL_SOLUTION_PASSIVE 0 option THERMAL_SOLUTION_ACTIVE 1 end + field AUDIO 2 4 + option AUDIO_ALC1019_ALC5682IVS 0 + option AUDIO_ALC5650_ALC5650 1 + end field DB_USB 5 7 option DB_NONE 0 option DB_1C 1 @@ -371,12 +375,29 @@ chip soc/intel/alderlake 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 end + device i2c 1a on + probe AUDIO AUDIO_ALC1019_ALC5682IVS + end end chip drivers/generic/alc1015 register "hid" = ""RTL1019"" register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" - device generic 1 on end + device generic 1 on + probe AUDIO AUDIO_ALC1019_ALC5682IVS + end + end + chip drivers/i2c/generic + register "hid" = ""10EC5650"" + register "name" = ""RT58"" + register "desc" = ""Realtek RT5650"" + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)" + register "property_count" = "1" + register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" + register "property_list[0].name" = ""realtek,jd-mode"" + register "property_list[0].integer" = "2" + device i2c 1a on + probe AUDIO AUDIO_ALC5650_ALC5650 + end end end #I2C3 device ref i2c5 on -- cgit v1.2.3