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>
This commit is contained in:
Ivy Jian 2017-04-12 13:52:19 +08:00 committed by Martin Roth
parent 2adab28ff6
commit 3a6b0ca60a
1 changed files with 41 additions and 0 deletions

View File

@ -58,3 +58,44 @@ Device (ETPA)
/* Allow device to power off in S0 */ /* Allow device to power off in S0 */
Name (_S0W, 3) 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)
}
}