mb/google/dedede/var/kracko: Add fw_config probe for ALC5682-VD/ALC5682-VS
ALC5682-VD/ALC5682-VS use different kernel driver by different hid name. Update hid name depending on the AUDIO_CODEC_SOURCE field of fw_config. ALC5682-VD: _HID = "10EC5682" ALC5682I-VS: _HID = "RTL5682" BUG=b:275644832 TEST=emerge-dedede coreboot BRANCH=firmware-dedede-13606.B Change-Id: I644f3aa3187e08146d78abb70a568833bc9b9211 Signed-off-by: Robert Chen <robert.chen@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74060 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
parent
17cb21bf63
commit
6cb9993798
|
@ -1,3 +1,10 @@
|
||||||
|
fw_config
|
||||||
|
field AUDIO_CODEC_SOURCE 40 42
|
||||||
|
option AUDIO_CODEC_UNPROVISIONED 0
|
||||||
|
option AUDIO_CODEC_ALC5682 1
|
||||||
|
option AUDIO_CODEC_ALC5682I_VS 2
|
||||||
|
end
|
||||||
|
end
|
||||||
chip soc/intel/jasperlake
|
chip soc/intel/jasperlake
|
||||||
|
|
||||||
# USB Port Configuration
|
# USB Port Configuration
|
||||||
|
@ -219,7 +226,24 @@ chip soc/intel/jasperlake
|
||||||
register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
|
register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
|
||||||
register "property_list[0].name" = ""realtek,jd-src""
|
register "property_list[0].name" = ""realtek,jd-src""
|
||||||
register "property_list[0].integer" = "1"
|
register "property_list[0].integer" = "1"
|
||||||
device i2c 1a on end
|
device i2c 1a on
|
||||||
|
probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED
|
||||||
|
probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
|
||||||
|
end
|
||||||
|
end
|
||||||
|
chip drivers/i2c/generic
|
||||||
|
register "hid" = ""RTL5682""
|
||||||
|
register "name" = ""RT58""
|
||||||
|
register "desc" = ""Headset Codec""
|
||||||
|
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
|
||||||
|
# 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_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end #I2C 4
|
end #I2C 4
|
||||||
device pci 19.1 on
|
device pci 19.1 on
|
||||||
|
|
Loading…
Reference in New Issue