diff options
author | Ivy Jian <ivy_jian@compal.com> | 2017-04-12 13:52:19 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-08-03 18:49:28 +0000 |
commit | 3a6b0ca60a2fc13b6e9abb2fb0d2361ebb6005b9 (patch) | |
tree | 7aef930daaa93cb3b75d6e8f67cbb3edd413354f /src/mainboard | |
parent | 2adab28ff6fb70b139628d4d7e28ea557e48bd5a (diff) | |
download | coreboot-3a6b0ca60a2fc13b6e9abb2fb0d2361ebb6005b9.tar.xz |
google/kahlee: Add Realtek audio codec ASL
Add the RT5650 codec ASL for proper Linux driver loading.
Devices visible to OS:
/sys/bus/acpi/devices/AMDI1002:00
/sys/bus/acpi/devices/I2SC1002:00
Change-Id: I60b256f68372c9d17d67c9cb2accaca616a0b9a5
Signed-off-by: Ivy Jian <ivy_jian@compal.com>
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/19845
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/kahlee/acpi/mainboard.asl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/acpi/mainboard.asl b/src/mainboard/google/kahlee/acpi/mainboard.asl index b7dbc147da..b870e9e791 100644 --- a/src/mainboard/google/kahlee/acpi/mainboard.asl +++ b/src/mainboard/google/kahlee/acpi/mainboard.asl @@ -58,3 +58,44 @@ Device (ETPA) /* Allow device to power off in S0 */ Name (_S0W, 3) } + +/* Realtek Audio Codec */ +Device (RTEK) /* Audio Codec driver I2CS*/ +{ + Name (_ADR, 0) + Name (_HID, "10EC5650") + Name (_CID, "10EC5650") + Name (_DDN, "RTEK Codec Controller ") + Name (_UID, 1) + + Device (I2S) /* I2S machine driver for RT5650 */ + { + Name (_ADR, 1) + Name (_HID, "AMDI1002") + Name (_CID, "AMDI1002") + } + + Method (_CRS, 0x0, NotSerialized) + { + Name (SBUF, ResourceTemplate () + { + I2CSerialBus( + 0x1A, /* SlaveAddress: bus address */ + ControllerInitiated, /* SlaveMode: default to ControllerInitiated */ + 400000, /* ConnectionSpeed: in Hz */ + AddressingMode7Bit, /* Addressing Mode: default to 7 bit */ + "\\_SB.I2CA", /* ResourceSource: I2C bus controller name */ + ) + + /* Jack Detect AGPIO90 */ + GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,, + "\\_SB.GPIO") { 90 } + }) + Return (SBUF) + } + + Method (_STA) + { + Return (0xF) + } +} |