From 412e55d440833747b9592c388a801617f161b93a Mon Sep 17 00:00:00 2001 From: Ren Kuo Date: Fri, 8 Sep 2023 11:51:40 +0800 Subject: [PATCH] mb/google/brya/var/craask: Add audio codec ALC5650 Add audio codec ALC5650 related settings. BUG=b:289969623 TEST=emerge-nissa coreboot confirm the device in kernel log. Change-Id: I4b8a19e6248bd91cfc31feb84c6108413cd719e2 Signed-off-by: Ren Kuo Reviewed-on: https://review.coreboot.org/c/coreboot/+/77701 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- .../google/brya/variants/craask/overridetree.cb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mainboard/google/brya/variants/craask/overridetree.cb b/src/mainboard/google/brya/variants/craask/overridetree.cb index 700543280c..e4a46c7ec0 100644 --- a/src/mainboard/google/brya/variants/craask/overridetree.cb +++ b/src/mainboard/google/brya/variants/craask/overridetree.cb @@ -19,6 +19,7 @@ fw_config end field AMP 6 7 option AMP_MX98360A 0 + option AMP_ALC5650 1 end field THERMAL_SOLUTION 10 12 option THERMAL_SOLUTION_6W 0 @@ -30,6 +31,7 @@ fw_config field CODEC 32 33 option CODEC_ALC5682I_VS 0 option CODEC_NAU8825 1 + option CODEC_ALC5650 2 end field TS_SOURCE 38 41 option TS_UNPROVISIONED 0 @@ -554,6 +556,19 @@ chip soc/intel/alderlake probe CODEC CODEC_ALC5682I_VS 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 CODEC CODEC_ALC5650 + end + end end device ref i2c5 on chip drivers/i2c/generic