summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya
diff options
context:
space:
mode:
authorTyler Wang <tyler.wang@quanta.corp-partner.google.com>2022-06-09 14:34:08 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-06-17 14:25:40 +0000
commit3f52aa5518b4f53075674783d3c125024bd75c19 (patch)
treebd729fcdd8672830640ede1dc7eadaf4d0ebf5ed /src/mainboard/google/brya
parent129e6b7c09cbf24c343919ee11196b383428e4a7 (diff)
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>
Diffstat (limited to 'src/mainboard/google/brya')
-rw-r--r--src/mainboard/google/brya/variants/craask/overridetree.cb29
1 files changed, 27 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/variants/craask/overridetree.cb b/src/mainboard/google/brya/variants/craask/overridetree.cb
index a1ff69c710..0f19bc99d3 100644
--- a/src/mainboard/google/brya/variants/craask/overridetree.cb
+++ b/src/mainboard/google/brya/variants/craask/overridetree.cb
@@ -17,6 +17,13 @@ fw_config
option SD_GL9750S 0
option SD_ABSENT 1
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
chip soc/intel/alderlake
@@ -294,7 +301,23 @@ chip soc/intel/alderlake
register "short_key_debounce" = "2" # 100ms
register "jack_insert_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
device ref i2c5 on
@@ -321,7 +344,9 @@ chip soc/intel/alderlake
register "hid" = ""MX98360A""
register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)"
register "sdmode_delay" = "5"
- device generic 0 on end
+ device generic 0 on
+ probe AMP AMP_MX98360A
+ end
end
end
device ref pcie_rp7 on