Zhi7 Li has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/56930 )
Change subject: mb/google/dedede/var/sasukette: Update codec configration for codec ALC5682I-VD & VS ......................................................................
mb/google/dedede/var/sasukette: Update codec configration for codec ALC5682I-VD & VS
For codec ALC5682I-VD & VS compatibility, add fw_config for codec ALC5682I-VD & VS and use rt5682 driver to dynamically report HID instead of using generic i2c driver.
BUG=b:193623380 BRANCH=dedede TEST=ALC5682I-VD or VS audio codec can work normally
Signed-off-by: Zhi Li lizhi7@huaqin.corp-partner.google.com Change-Id: Ic8840454e4934162ea59c742634a56f70b153238 --- M src/mainboard/google/dedede/Kconfig M src/mainboard/google/dedede/variants/sasukette/overridetree.cb 2 files changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/30/56930/1
diff --git a/src/mainboard/google/dedede/Kconfig b/src/mainboard/google/dedede/Kconfig index aa72c32..0601710 100644 --- a/src/mainboard/google/dedede/Kconfig +++ b/src/mainboard/google/dedede/Kconfig @@ -7,6 +7,7 @@ select DRIVERS_I2C_GPIO_MUX select DRIVERS_I2C_HID select DRIVERS_I2C_SX9324 + select DRIVERS_I2C_RT5682 if BOARD_GOOGLE_SASUKETTE select DRIVERS_INTEL_DPTF select DRIVERS_SPI_ACPI select DRIVERS_USB_ACPI diff --git a/src/mainboard/google/dedede/variants/sasukette/overridetree.cb b/src/mainboard/google/dedede/variants/sasukette/overridetree.cb index 0624a0e..23994bf 100644 --- a/src/mainboard/google/dedede/variants/sasukette/overridetree.cb +++ b/src/mainboard/google/dedede/variants/sasukette/overridetree.cb @@ -1,3 +1,10 @@ +fw_config + field AUDIO_CODEC_SOURCE 41 43 + option AUDIO_CODEC_ALC5682 1 + option AUDIO_CODEC_ALC5682I_VS 3 + end +end + chip soc/intel/jasperlake
# Intel Common SoC Config @@ -175,7 +182,6 @@ end #I2C 0 device pci 19.0 on chip drivers/i2c/generic - register "hid" = ""10EC5682"" register "name" = ""RT58"" register "desc" = ""Realtek RT5682"" register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"