Marc Jones has uploaded a new change for review. ( https://review.coreboot.org/19845 )
Change subject: google/kahlee: Add Realtek audio codec ASL ......................................................................
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/10EC5650: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 --- M src/mainboard/google/kahlee/acpi/mainboard.asl 1 file changed, 41 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/19845/1
diff --git a/src/mainboard/google/kahlee/acpi/mainboard.asl b/src/mainboard/google/kahlee/acpi/mainboard.asl index b7dbc14..569fed8 100644 --- a/src/mainboard/google/kahlee/acpi/mainboard.asl +++ b/src/mainboard/google/kahlee/acpi/mainboard.asl @@ -58,3 +58,44 @@ /* Allow device to power off in S0 */ Name (_S0W, 3) } + +/* Realtek Audio Codec */ +Device (RTEK) /* Audio Codec driver I2C */ +{ + 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, "I2SC1002") + Name (_CID, "I2SC1002") + } + + 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) + } +}