From 1b67362971c3e09cb4771043424fe205ceb3b52b Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Wed, 22 Dec 2021 10:13:08 -0600 Subject: [PATCH] mb/google/cyan: Adjust ACPI for Maxim audio - add HRV and GpioIO for coolstar's windows drivers - fix interrupt type for TI jack detect switch TEST=build/boot Win11, Linux on google/cyan; verify audio working OOTB under Linux, under Windows with coolstar's audio drivers. Change-Id: I6bf6bb9e9989ca8f42436800666d95dd05799838 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/76800 Reviewed-by: CoolStar Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes --- src/mainboard/google/cyan/acpi/codec_maxim.asl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/cyan/acpi/codec_maxim.asl b/src/mainboard/google/cyan/acpi/codec_maxim.asl index dd68904f9b..f526fc12da 100644 --- a/src/mainboard/google/cyan/acpi/codec_maxim.asl +++ b/src/mainboard/google/cyan/acpi/codec_maxim.asl @@ -9,6 +9,7 @@ Scope (\_SB.PCI0.I2C2) Name (_CID, AUDIO_CODEC_CID) Name (_DDN, AUDIO_CODEC_DDN) Name (_UID, 1) + Name (_HRV, 0x02) /* Add DT style bindings with _DSD */ Name (_DSD, Package () { @@ -31,8 +32,16 @@ Scope (\_SB.PCI0.I2C2) "\\_SB.PCI0.I2C2", /* ResourceSource: I2C bus controller name */ ) + /* For Linux driver */ GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault,, "\\_SB.GPSE") { BOARD_JACK_MAXIM_GPIO_INDEX } + + /* For coolstar's Windows driver */ + GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionInputOnly, + "\\_SB.GPSE", 0x00, ResourceConsumer, ,) + { + BOARD_JACK_MAXIM_GPIO_INDEX + } } ) Return (SBUF) } @@ -74,7 +83,7 @@ Scope (\_SB.PCI0.I2C2) "\\_SB.PCI0.I2C2", /* ResourceSource: I2C bus controller name */ ) - GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault,, + GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault,, "\\_SB.GPSW") { BOARD_JACK_TI_GPIO_INDEX } } )