mb/google/nissa/var/craask: Add ALC5682I-VS codec support

Add ALC5682I-VS related settings. And add codec/amplifier space in
fw_config.

BUG=b:229048361, b:235436515
TEST=emerge-nissa coreboot

Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Change-Id: I567d3567318c810e19ae9e9ba5e0dc8332517866
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65058
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Reka Norman <rekanorman@chromium.org>
This commit is contained in:
Tyler Wang 2022-06-09 14:34:08 +08:00 committed by Felix Held
parent 129e6b7c09
commit 3f52aa5518
1 changed files with 27 additions and 2 deletions

View File

@ -17,6 +17,13 @@ fw_config
option SD_GL9750S 0 option SD_GL9750S 0
option SD_ABSENT 1 option SD_ABSENT 1
end end
field CODEC 6 7
option CODEC_NAU8825 0
option CODEC_ALC5682I_VS 1
end
field AMP 8 9
option AMP_MX98360A 0
end
end end
chip soc/intel/alderlake chip soc/intel/alderlake
@ -294,7 +301,23 @@ chip soc/intel/alderlake
register "short_key_debounce" = "2" # 100ms register "short_key_debounce" = "2" # 100ms
register "jack_insert_debounce" = "7" # 512ms register "jack_insert_debounce" = "7" # 512ms
register "jack_eject_debounce" = "7" # 512ms register "jack_eject_debounce" = "7" # 512ms
device i2c 1a on end device i2c 1a on
probe CODEC CODEC_NAU8825
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_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 CODEC CODEC_ALC5682I_VS
end
end end
end end
device ref i2c5 on device ref i2c5 on
@ -321,7 +344,9 @@ chip soc/intel/alderlake
register "hid" = ""MX98360A"" register "hid" = ""MX98360A""
register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)"
register "sdmode_delay" = "5" register "sdmode_delay" = "5"
device generic 0 on end device generic 0 on
probe AMP AMP_MX98360A
end
end end
end end
device ref pcie_rp7 on device ref pcie_rp7 on