From 3a6b0ca60a2fc13b6e9abb2fb0d2361ebb6005b9 Mon Sep 17 00:00:00 2001 From: Ivy Jian Date: Wed, 12 Apr 2017 13:52:19 +0800 Subject: 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 Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/19845 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/mainboard/google/kahlee/acpi/mainboard.asl | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'src') 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) + } +} -- cgit v1.2.3