summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Zhang <benzh@chromium.org>2015-06-26 17:17:53 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-07-24 15:13:34 +0200
commit1051bb40427ef1c9384cd5755ff245dc7378aca1 (patch)
tree5ab22db40d71b9ff193bfefe4409887273292b9f /src
parent05389de33b41d2a684ab311bdd0369af1b3f4fff (diff)
downloadcoreboot-1051bb40427ef1c9384cd5755ff245dc7378aca1.tar.xz
glados: Add ACPI configs for speaker amps and codec
The audio codec nau8825 and two ssm4567 speaker amps are instantiated via ACPI. BUG=chrome-os-partner:41280 BRANCH=none TEST=The devices are instantiated. Speaker/headphone playback works on glados. Change-Id: I1297c2435b3051dd749ad7de324b64ba1504cf09 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 59e5eb2682a2fc2cb58068dfcb6dd2415d43b286 Original-Change-Id: Ib7ec8c868251601f67cdf365cd3e935d256c8ac5 Original-Signed-off-by: Ben Zhang <benzh@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/282364 Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/11044 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/glados/acpi/mainboard.asl72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/mainboard/google/glados/acpi/mainboard.asl b/src/mainboard/google/glados/acpi/mainboard.asl
index ab40d62456..7c26e429b8 100644
--- a/src/mainboard/google/glados/acpi/mainboard.asl
+++ b/src/mainboard/google/glados/acpi/mainboard.asl
@@ -93,3 +93,75 @@ Scope (\_SB.PCI0.I2C1)
}
}
}
+
+Scope (\_SB.PCI0.I2C4)
+{
+ Device (CODC) // Codec for headset
+ {
+ Name (_HID, "10508825")
+ Name (_DDN, "NAU88L25 Codec")
+ Name (_UID, 1)
+
+ Name (_CRS, ResourceTemplate()
+ {
+ I2cSerialBus (
+ 0x1A, /* SlaveAddress */
+ ControllerInitiated, /* SlaveMode */
+ 400000, /* ConnectionSpeed */
+ AddressingMode7Bit, /* AddressingMode */
+ "\\_SB.PCI0.I2C4", /* ResourceSource */
+ )
+ })
+
+ Method (_STA)
+ {
+ Return (0xF)
+ }
+ }
+
+ Device (SPK0) // Left speaker Amp
+ {
+ Name (_HID, "INT343B")
+ Name (_DDN, "SSM4567 Speaker Amp")
+ Name (_UID, 0)
+
+ Name (_CRS, ResourceTemplate()
+ {
+ I2cSerialBus (
+ 0x34, /* SlaveAddress */
+ ControllerInitiated, /* SlaveMode */
+ 400000, /* ConnectionSpeed */
+ AddressingMode7Bit, /* AddressingMode */
+ "\\_SB.PCI0.I2C4", /* ResourceSource */
+ )
+ })
+
+ Method (_STA)
+ {
+ Return (0xF)
+ }
+ }
+
+ Device (SPK1) // Right speaker Amp
+ {
+ Name (_HID, "INT343B")
+ Name (_DDN, "SSM4567 Speaker Amp")
+ Name (_UID, 1)
+
+ Name (_CRS, ResourceTemplate()
+ {
+ I2cSerialBus (
+ 0x35, /* SlaveAddress */
+ ControllerInitiated, /* SlaveMode */
+ 400000, /* ConnectionSpeed */
+ AddressingMode7Bit, /* AddressingMode */
+ "\\_SB.PCI0.I2C4", /* ResourceSource */
+ )
+ })
+
+ Method (_STA)
+ {
+ Return (0xF)
+ }
+ }
+}