summaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede
diff options
context:
space:
mode:
authorStanley Wu <stanley1.wu@lcfc.corp-partner.google.com>2021-04-14 16:31:44 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-05-12 00:50:15 +0000
commitd1bf408da8f0dde7f5f5c29aedd9ee57069311c1 (patch)
treebe11fd0e7471f4f90bf830730f71376645a6359e /src/mainboard/google/dedede
parentf9e776da84c4d62896c804b932e4c00273ec3ed4 (diff)
mb/google/dedede/var/boten: Probe and enable amplifier operation mode
Probe the fw_config for RT1015 speaker amplifier operation mode and enable it accordingly in the device tree. BUG=b:180570923 BRANCH=dedede TEST=ALC1015Q-VB drive speaker OK Change-Id: I756bfa6f604ed320de9a515821979aa95c869ebf Signed-off-by: Stanley Wu <stanley1.wu@lcfc.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52319 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r--src/mainboard/google/dedede/variants/boten/overridetree.cb19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/mainboard/google/dedede/variants/boten/overridetree.cb b/src/mainboard/google/dedede/variants/boten/overridetree.cb
index f914b82b79..cfb440ec53 100644
--- a/src/mainboard/google/dedede/variants/boten/overridetree.cb
+++ b/src/mainboard/google/dedede/variants/boten/overridetree.cb
@@ -230,13 +230,19 @@ chip soc/intel/jasperlake
register "hid" = ""10EC1015""
register "desc" = ""Realtek SPK AMP L""
register "uid" = "0"
- device i2c 28 on end
+ device i2c 28 on
+ probe AUDIO_AMP RT1015_I2C
+ probe AUDIO_AMP UNPROVISIONED
+ end
end
chip drivers/i2c/generic
register "hid" = ""10EC1015""
register "desc" = ""Realtek SPK AMP R""
register "uid" = "1"
- device i2c 29 on end
+ device i2c 29 on
+ probe AUDIO_AMP RT1015_I2C
+ probe AUDIO_AMP UNPROVISIONED
+ end
end
end # I2C 4
device pci 19.1 on
@@ -293,6 +299,13 @@ chip soc/intel/jasperlake
device i2c 28 on end
end
end # I2C 5
- device pci 1f.3 on end # Intel HDA
+ device pci 1f.3 on
+ chip drivers/generic/alc1015
+ register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
+ device generic 0 on
+ probe AUDIO_AMP RT1015P_AUTO
+ end
+ end
+ end # Intel HDA
end
end